Skip to content
Draft
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
2 changes: 2 additions & 0 deletions docs/content/1.getting-started/1.setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ npm install -D @nuxtjs/storybook

::

By default, the module comes with the latest version of Storybook preinstalled. So you don't need to add it manually in your project. Similarly, all [essential addons](https://storybook.js.org/docs/essentials) as well as the packages [`@storybook/test`](https://storybook.js.org/docs/writing-tests/component-testing) and [`@storybook/blocks`](https://storybook.js.org/docs/writing-docs/doc-blocks) are included. You can always install additional addons as needed.

2. If not using `nuxi` above, add the module `@nuxtjs/storybook` to your Nuxt configuration:

```ts [nuxt.config.ts]
Expand Down
6 changes: 1 addition & 5 deletions examples/showcase/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
"devDependencies": {
"@chromatic-com/storybook": "3.2.6",
"@nuxtjs/storybook": "latest",
"@storybook/addon-essentials": "8.6.12",
"@storybook/addon-links": "8.6.12",
"@storybook/blocks": "8.6.12",
"@storybook/test": "8.6.12",
"storybook": "8.6.12"
"@storybook/addon-links": "8.6.12"
}
}
8 changes: 1 addition & 7 deletions examples/starter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@
},
"devDependencies": {
"@chromatic-com/storybook": "3.2.6",
"@nuxtjs/storybook": "latest",
"@storybook/addon-essentials": "8.6.12",
"@storybook/addon-interactions": "8.6.12",
"@storybook/blocks": "8.6.12",
"@storybook/test": "8.6.12",
"@storybook/vue3": "8.6.12",
"storybook": "8.6.12"
"@nuxtjs/storybook": "latest"
}
}
5 changes: 0 additions & 5 deletions examples/tailwind/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@
"devDependencies": {
"@chromatic-com/storybook": "3.2.6",
"@nuxtjs/storybook": "latest",
"@storybook/addon-essentials": "8.6.12",
"@storybook/addon-links": "8.6.12",
"@storybook/blocks": "8.6.12",
"@storybook/test": "8.6.12",
"storybook": "8.6.12",
"tailwindcss": "3.4.17"
}
}
3 changes: 3 additions & 0 deletions packages/nuxt-module/bin/storybook.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env node

import 'storybook/internal/cli/bin'
6 changes: 5 additions & 1 deletion packages/nuxt-module/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,14 @@
"require": "./dist/module.cjs"
}
},
"bin": {
"storybook": "./bin/storybook.mjs"
},
"main": "./dist/module.cjs",
"types": "./dist/types.d.ts",
"files": [
"dist"
"dist",
"bin"
],
"engines": {
"node": ">=18.0.0"
Expand Down
2 changes: 2 additions & 0 deletions packages/storybook-addon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@
"@nuxt/schema": "^3.13.0",
"@nuxt/vite-builder": "^3.13.0",
"@rollup/plugin-replace": "^6.0.0",
"@storybook/addon-essentials": "8.6.12",
"@storybook/builder-vite": "8.6.12",
"@storybook/test": "8.6.12",
"@storybook/vue3": "8.6.12",
"@storybook/vue3-vite": "8.6.12",
"json-stable-stringify": "^1.2.0",
Expand Down
4 changes: 0 additions & 4 deletions playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@
"@nuxtjs/storybook": "workspace:*",
"@storybook/addon-essentials": "8.6.12",
"@storybook/addon-interactions": "8.6.12",
"@storybook/blocks": "8.6.12",
"@storybook/test": "8.6.12",
"@storybook/vue3": "8.6.12",
"storybook": "8.6.12",
"vite-plugin-inspect": "11.0.0",
"@nuxtjs/i18n": "9.5.2"
}
Expand Down
63 changes: 6 additions & 57 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading