Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions app-min/src/my-app.stories.ext__if_storybook
Original file line number Diff line number Diff line change
@@ -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',
Expand Down Expand Up @@ -53,4 +51,4 @@ export const Default = () => ({
template: '<my-app></my-app>',
props: {}
});
/* @endif */
/* @endif */
1 change: 1 addition & 0 deletions babel/babel.config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"sourceMaps": true,
"presets": [
[/* @if !parcel */"@babel/preset-env"/* @endif *//* @if parcel */"@parcel/babel-preset-env"/* @endif */, {
"loose": true,
Expand Down
21 changes: 21 additions & 0 deletions common/.vscode/launch.json__if_vite_and_app
Original file line number Diff line number Diff line change
@@ -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}/*"
}
}
]
}
4 changes: 1 addition & 3 deletions plugin-min/src/hello-world.stories.ext__if_storybook
Original file line number Diff line number Diff line change
@@ -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',
Expand Down Expand Up @@ -43,4 +41,4 @@ export const NoMessage = {
render: () => ({
template: `<hello-world></hello-world>`
})
};
};
8 changes: 4 additions & 4 deletions storybook__if_storybook/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
- [Aurelia 2 Documentation](https://docs.aurelia.io)
21 changes: 7 additions & 14 deletions vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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": {
Expand All @@ -40,10 +38,5 @@
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
// @endif
},
"overrides": {
"vite-plugin-node-polyfills": {
"vite": "^6.0.0"
}
}
}
8 changes: 4 additions & 4 deletions webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down