mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 12:41:06 +08:00
fix(cli): add @storybook/addon-knobs in sb init
on Mithril project as it is listed in SB config template
3dd714d353/lib/cli/src/generators/MITHRIL/template-csf/.storybook/main.js
This commit is contained in:
parent
f119fdf18c
commit
e629f50924
@ -8,11 +8,18 @@ import {
|
||||
} from '../../helpers';
|
||||
|
||||
export default async (npmOptions, { storyFormat = 'csf' }) => {
|
||||
const [storybookVersion, actionsVersion, linksVersion, addonsVersion] = await getVersions(
|
||||
const [
|
||||
storybookVersion,
|
||||
actionsVersion,
|
||||
linksVersion,
|
||||
knobsVersion,
|
||||
addonsVersion,
|
||||
] = await getVersions(
|
||||
npmOptions,
|
||||
'@storybook/mithril',
|
||||
'@storybook/addon-actions',
|
||||
'@storybook/addon-links',
|
||||
'@storybook/addon-knobs',
|
||||
'@storybook/addons'
|
||||
);
|
||||
|
||||
@ -35,6 +42,7 @@ export default async (npmOptions, { storyFormat = 'csf' }) => {
|
||||
`@storybook/mithril@${storybookVersion}`,
|
||||
`@storybook/addon-actions@${actionsVersion}`,
|
||||
`@storybook/addon-links@${linksVersion}`,
|
||||
`@storybook/addon-knobs@${knobsVersion}`,
|
||||
`@storybook/addons@${addonsVersion}`,
|
||||
...babelDependencies,
|
||||
]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user