Skip to content

Commit

Permalink
chore: update storybook to v8.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Romakita committed May 15, 2024
1 parent e183acc commit 6b01cfb
Show file tree
Hide file tree
Showing 4 changed files with 1,740 additions and 2,511 deletions.
34 changes: 21 additions & 13 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import type {StorybookConfig} from "@storybook/vue3-vite";
import {fileURLToPath} from "node:url";
import vuePlugin from "@vitejs/plugin-vue";

const config: StorybookConfig = {
stories: [
Expand All @@ -23,24 +25,30 @@ const config: StorybookConfig = {
"@storybook/addon-a11y",
"@storybook/addon-storysource",
"@storybook/addon-themes",
{
// eslint-disable-next-line storybook/no-uninstalled-addons
name: "storybook-addon-manual-mocks/vite",
options: {
mocksFolder: "__mocks__"
}
},
"@chromatic-com/storybook"
],
framework: {
name: "@storybook/vue3-vite",
options: {}
},
docs: {
autodocs: "tag"
options: {
docgen: "vue-component-meta"
}
},
viteFinal: (config) => {
config.optimizeDeps = {exclude: ["fsevents"]};
viteFinal(config) {
// @ts-ignore
config.plugins.push(vuePlugin());

config.resolve = {
...config.resolve,
alias: {
...config.resolve!.alias,
"vitepress/client": fileURLToPath(new URL("../test/vitepress.client.ts", import.meta.url))
}
};

config.define = {
"process.env": {}
};

return config;
}
};
Expand Down
32 changes: 14 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,24 @@
"@vueuse/core": "^10.9.0"
},
"devDependencies": {
"@chromatic-com/storybook": "^1",
"@chromatic-com/storybook": "^1.3.5",
"@commitlint/cli": "19.0.3",
"@commitlint/config-conventional": "19.0.3",
"@storybook/addon-a11y": "^7.6.19",
"@storybook/addon-essentials": "^7.6.19",
"@storybook/addon-interactions": "^7.6.19",
"@storybook/addon-links": "^7.6.19",
"@storybook/addon-storysource": "^7.6.19",
"@storybook/addon-themes": "^7.6.19",
"@storybook/blocks": "^7.6.19",
"@storybook/test": "^7.6.19",
"@storybook/vue3": "^7.6.19",
"@storybook/vue3-vite": "^7.6.19",
"@storybook/addon-a11y": "^8.1.0",
"@storybook/addon-essentials": "^8.1.0",
"@storybook/addon-interactions": "^8.1.0",
"@storybook/addon-links": "^8.1.0",
"@storybook/addon-storysource": "^8.1.0",
"@storybook/addon-themes": "^8.1.0",
"@storybook/blocks": "^8.1.0",
"@storybook/test": "^8.1.0",
"@storybook/vue3": "^8.1.0",
"@storybook/vue3-vite": "^8.1.0",
"@testing-library/jest-dom": "6.4.2",
"@testing-library/vue": "8.0.2",
"@types/react": "^18",
"@types/react-dom": "^18",
"@typescript-eslint/eslint-plugin": "7.1.1",
"@typescript-eslint/parser": "7.1.1",
"@vitejs/plugin-vue": "4.6.2",
"@vitejs/plugin-vue": "5.0.4",
"@vitest/coverage-v8": "^1.3.1",
"@vue/eslint-config-prettier": "9.0.0",
"@vue/eslint-config-typescript": "13.0.0",
Expand All @@ -62,14 +60,12 @@
"postcss": "^8.4.20",
"prettier": "3.2.5",
"prettier-plugin-tailwindcss": "0.5.11",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"storybook": "^7.6.17",
"storybook": "^8.1.0",
"storybook-addon-manual-mocks": "^1.0.4",
"tailwindcss": "3.4.1",
"ts-node": "10.9.2",
"typescript": "^5.3.3",
"vite": "5.1.5",
"vite": "5.2.11",
"vitepress": "1.0.1",
"vitest": "1.3.1",
"vue": "^3.4.19"
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@
"tailwind.preset.ts",
"tailwind.config.ts",
"vitest.config.ts",
"vitest.setup.ts"
"vitest.setup.ts",
".storybook/**/*.ts",
]
}
Loading

0 comments on commit 6b01cfb

Please sign in to comment.