Skip to content

Commit 2f85193

Browse files
committed
modify init
1 parent f77919f commit 2f85193

3 files changed

Lines changed: 13 additions & 6 deletions

File tree

.storybook/main.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
import type { StorybookConfig } from '@storybook-vue/nuxt'
1+
import type { StorybookConfig } from '@nuxtjs/storybook'
22

3-
const config: StorybookConfig = {
4-
stories: ['../components/**/*.mdx', '../components/**/*.stories.@(js|jsx|ts|tsx|mdx)'],
3+
const config = {
4+
stories: ['../app/**/*.stories.@(js|ts|mdx)'],
55
addons: ['@storybook/addon-a11y', '@storybook/addon-docs'],
66
framework: '@storybook-vue/nuxt',
7-
}
7+
features: {
8+
backgrounds: false,
9+
},
10+
} satisfies StorybookConfig
811
export default config

.storybook/preview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Preview } from '@storybook-vue/nuxt'
1+
import type { Preview } from '@nuxtjs/storybook'
22

33
const preview: Preview = {
44
parameters: {

.vscode/settings.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,9 @@
33
"editor.formatOnSave": true,
44
"i18n-ally.keystyle": "nested",
55
"i18n-ally.localesPaths": ["./i18n/locales"],
6-
"typescript.tsdk": "node_modules/typescript/lib"
6+
"typescript.tsdk": "node_modules/typescript/lib",
7+
"explorer.fileNesting.enabled": true,
8+
"explorer.fileNesting.patterns": {
9+
"*.vue": "${capture}.stories.ts"
10+
}
711
}

0 commit comments

Comments
 (0)