generated from unplugin/unplugin-starter
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: upgrade storybook to v7 in example (#29)
* chore: upgrade storybook to v7 * add react peer dependencies for docs addon * node 14 support dropped, add 18 to tests
- Loading branch information
1 parent
7089e3c
commit f191d08
Showing
4 changed files
with
2,629 additions
and
6,139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,22 @@ | ||
import Inspect from 'vite-plugin-inspect' | ||
|
||
export default { | ||
stories: [ | ||
'../src/**/*.stories.mdx', | ||
'../src/**/*.stories.@(js|jsx|ts|tsx|vue)', | ||
], | ||
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx|vue)'], | ||
addons: [ | ||
'@storybook/addon-links', | ||
'@storybook/addon-essentials', | ||
'@storybook/addon-interactions', | ||
'../../../src/storybook.ts', | ||
], | ||
framework: '@storybook/vue3', | ||
core: { | ||
builder: '@storybook/builder-vite', | ||
framework: { | ||
name: '@storybook/vue3-vite', | ||
options: {}, | ||
}, | ||
features: { | ||
storyStoreV7: false, | ||
}, | ||
async viteFinal(config, { configType }) { | ||
// Inspect result can be found at subroute '/__inspect', e.g. http://127.0.0.1:6006/__inspect/ | ||
config.plugins.unshift(Inspect()) | ||
|
||
return config | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.