Skip to content

Commit

Permalink
Update storybook and pin nuxt module version
Browse files Browse the repository at this point in the history
  • Loading branch information
obulat committed Oct 9, 2024
1 parent 9c90950 commit 81254a6
Show file tree
Hide file tree
Showing 4 changed files with 550 additions and 2,241 deletions.
2 changes: 1 addition & 1 deletion frontend/.storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { StorybookConfig } from "@storybook-vue/nuxt"

const config: StorybookConfig = {
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
stories: ["../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
Expand Down
12 changes: 12 additions & 0 deletions frontend/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,16 @@ export default defineNuxtConfig({
trailingSlash: false,
vueI18n: "./src/vue-i18n",
},
/**
* Workaround for https://github.com/nuxt-modules/storybook/issues/776
* TODO: remove after Storybook v8.4 is released.
*/
storybook: {
port: 54000,
},
vite: {
optimizeDeps: {
include: ["jsdoc-type-pratt-parser"],
},
},
})
24 changes: 12 additions & 12 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"packageManager": "[email protected]",
"scripts": {
"predev": "pnpm install && pnpm i18n:en",
"dev": "run-p dev:only 'i18n:en --watch'",
"dev": "run-p build:clean dev:only 'i18n:en --watch'",
"dev:only": "nuxt dev --host 0.0.0.0",
"dev:secure": "LOCAL_SSL=enabled pnpm dev",
"build": "NODE_ENV=production nuxt build",
Expand All @@ -21,7 +21,7 @@
"prod:playwright": "pnpm i18n:copy-test-locales && pnpm prod",
"prod:storybook": "pnpm i18n:copy-test-locales && pnpm storybook:build && pnpm storybook:start",
"storybook": "storybook dev --port 54000",
"storybook:build": "pnpm i18n:copy-test-locales && storybook build",
"storybook:build": "pnpm build:clean && pnpm prepare:nuxt && pnpm i18n:copy-test-locales && storybook build",
"storybook:start": "pnpx http-server storybook-static -p 54000 -s",
"talkback": "node ./test/proxy.js",
"prepare:nuxt": "pnpm i18n:en && npx nuxi prepare",
Expand Down Expand Up @@ -88,9 +88,9 @@
"@babel/parser": "^7.24.8",
"@nuxt/test-utils": "^3.14.1",
"@nuxtjs/i18n": "8.5.5",
"@nuxtjs/storybook": "npm:@nuxtjs/storybook@nightly",
"@nuxtjs/storybook": "8.3.1",
"@playwright/test": "1.46.1",
"@storybook-vue/nuxt": "npm:@storybook-vue/nuxt@nightly",
"@storybook-vue/nuxt": "8.3.1",
"@testing-library/user-event": "^14.5.2",
"@testing-library/vue": "^8.1.0",
"@vitest/coverage-v8": "^2.0.5",
Expand All @@ -112,14 +112,14 @@
"vue": "3.5.0",
"vue-router": "^4.4.0",
"vue-tsc": "2.1.4",
"storybook": "8.2.9",
"@storybook/vue3": "8.2.9",
"@storybook/addon-links": "8.2.9",
"@storybook/builder-vite": "8.2.9",
"@storybook/addon-essentials": "8.2.9",
"@storybook/addon-interactions": "8.2.9",
"@storybook/test": "8.2.9",
"@storybook/blocks": "8.2.9"
"storybook": "8.3.5",
"@storybook/vue3": "8.3.5",
"@storybook/addon-links": "8.3.5",
"@storybook/builder-vite": "8.3.5",
"@storybook/addon-essentials": "8.3.5",
"@storybook/addon-interactions": "8.3.5",
"@storybook/test": "8.3.5",
"@storybook/blocks": "8.3.5"
},
"browserslist": [
"> 1%",
Expand Down
Loading

0 comments on commit 81254a6

Please sign in to comment.