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 11, 2024
1 parent f91130f commit d5dffda
Show file tree
Hide file tree
Showing 5 changed files with 1,159 additions and 915 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"],
},
},
})
21 changes: 11 additions & 10 deletions frontend/package.json
Original file line number Diff line number Diff line change
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,15 @@
"vue": "3.5.0",
"vue-router": "^4.4.0",
"vue-tsc": "2.1.6",
"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.0-alpha.3",
"@storybook/vue3": "8.3.0-alpha.3",
"@storybook/vue3-vite": "8.3.0-alpha.3",
"@storybook/addon-links": "8.3.0-alpha.3",
"@storybook/builder-vite": "8.3.0-alpha.3",
"@storybook/addon-essentials": "8.3.0-alpha.3",
"@storybook/addon-interactions": "8.3.0-alpha.3",
"@storybook/test": "8.3.0-alpha.3",
"@storybook/blocks": "8.3.0-alpha.3"
},
"browserslist": [
"> 1%",
Expand Down
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,12 @@
"prettier-plugin-tailwindcss": "0.6.8",
"typescript": "5.5.4",
"vue-tsc": "2.1.6"
},
"pnpm": {
"overrides": {
"@storybook/builder-vite": "8.3.0-alpha.3",
"@storybook/vue3": "8.3.0-alpha.3",
"@storybook/vue3-vite": "8.3.0-alpha.3"
}
}
}
Loading

0 comments on commit d5dffda

Please sign in to comment.