diff --git a/app-min/src/my-app.stories.ext__if_storybook b/app-min/src/my-app.stories.ext__if_storybook index 2341971..85470d6 100644 --- a/app-min/src/my-app.stories.ext__if_storybook +++ b/app-min/src/my-app.stories.ext__if_storybook @@ -1,7 +1,5 @@ /* @if vite */ import { MyApp } from './my-app'; -//import { action } from '@storybook/addon-actions'; -//import { userEvent, within } from '@storybook/test'; const meta = { title: 'Example/MyApp', @@ -53,4 +51,4 @@ export const Default = () => ({ template: '', props: {} }); -/* @endif */ \ No newline at end of file +/* @endif */ diff --git a/babel/babel.config.json b/babel/babel.config.json index 5628c66..7d37b4f 100644 --- a/babel/babel.config.json +++ b/babel/babel.config.json @@ -1,4 +1,5 @@ { + "sourceMaps": true, "presets": [ [/* @if !parcel */"@babel/preset-env"/* @endif *//* @if parcel */"@parcel/babel-preset-env"/* @endif */, { "loose": true, diff --git a/common/.vscode/launch.json__if_vite_and_app b/common/.vscode/launch.json__if_vite_and_app new file mode 100644 index 0000000..23e08cc --- /dev/null +++ b/common/.vscode/launch.json__if_vite_and_app @@ -0,0 +1,21 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Vite: Chrome", + "type": "pwa-chrome", + "request": "launch", + "url": "http://localhost:9000", + "webRoot": "${workspaceFolder}", + "sourceMaps": true, + "resolveSourceMapLocations": [ + "${workspaceFolder}/**", + "!**/node_modules/**" + ], + "sourceMapPathOverrides": { + "/src/*": "${workspaceFolder}/src/*", + "/*": "${workspaceFolder}/*" + } + } + ] +} diff --git a/plugin-min/src/hello-world.stories.ext__if_storybook b/plugin-min/src/hello-world.stories.ext__if_storybook index c61c2f2..a1ea784 100644 --- a/plugin-min/src/hello-world.stories.ext__if_storybook +++ b/plugin-min/src/hello-world.stories.ext__if_storybook @@ -1,6 +1,4 @@ import { HelloWorld } from './hello-world'; -import { action } from '@storybook/addon-actions'; -import { userEvent, within } from '@storybook/test'; const meta = { title: 'Plugin/HelloWorld', @@ -43,4 +41,4 @@ export const NoMessage = { render: () => ({ template: `` }) -}; \ No newline at end of file +}; diff --git a/storybook__if_storybook/README.md b/storybook__if_storybook/README.md index 2291a88..9df427f 100644 --- a/storybook__if_storybook/README.md +++ b/storybook__if_storybook/README.md @@ -47,12 +47,12 @@ export const Default = { ## Features -- **Interactive Controls**: Use Storybook's Controls addon to dynamically change component properties -- **Actions**: Track and display component events using the Actions addon -- **Testing**: Write interaction tests using Storybook's testing utilities +- **Interactive Controls**: Use Storybook's Controls to dynamically change component properties +- **Links**: Navigate between stories with the Links addon +- **Actions & Testing**: Add optional addons if you want event logging or interaction tests ## Learn More - [Storybook Documentation](https://storybook.js.org/docs) - [Aurelia Storybook Integration](https://github.com/aurelia/storybook) -- [Aurelia 2 Documentation](https://docs.aurelia.io) \ No newline at end of file +- [Aurelia 2 Documentation](https://docs.aurelia.io) diff --git a/vite/package.json b/vite/package.json index d638c87..ae2513b 100644 --- a/vite/package.json +++ b/vite/package.json @@ -2,10 +2,10 @@ "type": "module", "devDependencies": { "@aurelia/vite-plugin": /* @if latest */"latest"/* @endif *//* @if dev */"dev"/* @endif */, - "vite": "^6.0.3", - "vite-plugin-node-polyfills": "^0.22.0", + "vite": "^7.3.1", + "vite-plugin-node-polyfills": "^0.25.0", // @if babel - "vite-plugin-babel": "^1.3.0", + "vite-plugin-babel": "^1.4.1", // @endif // @if typescript && plugin "vite-plugin-dts": "^4.4.0", @@ -22,12 +22,10 @@ "@tailwindcss/vite": "^4.1.10", // @endif // @if storybook - "@aurelia/storybook": "^1.0.2", - "storybook": "^9.0.0", - "@storybook/builder-vite": "^9.0.0", - "@storybook/addon-links": "^9.0.0", - "@storybook/addon-actions": "^9.0.0", - "@storybook/test": "^9.0.0-alpha.2", + "@aurelia/storybook": "^2.1.0", + "storybook": "^10.1.11", + "@storybook/builder-vite": "^10.1.11", + "@storybook/addon-links": "^10.1.11", // @endif }, "scripts": { @@ -40,10 +38,5 @@ "storybook": "storybook dev -p 6006", "build-storybook": "storybook build", // @endif - }, - "overrides": { - "vite-plugin-node-polyfills": { - "vite": "^6.0.0" - } } } diff --git a/webpack/package.json b/webpack/package.json index 80134fa..ba77e27 100644 --- a/webpack/package.json +++ b/webpack/package.json @@ -30,10 +30,10 @@ "webpack-node-externals": "^3.0.0", // @endif // @if storybook - "@aurelia/storybook": "^1.0.2", - "storybook": "^9.0.0", - "@storybook/builder-webpack5": "^9.0.0", - "@storybook/addon-links": "^9.0.0", + "@aurelia/storybook": "^2.1.0", + "storybook": "^10.1.11", + "@storybook/builder-webpack5": "^10.1.11", + "@storybook/addon-links": "^10.1.11", // @endif }, "scripts": {