mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 07:31:19 +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';
|
} from '../../helpers';
|
||||||
|
|
||||||
export default async (npmOptions, { storyFormat = 'csf' }) => {
|
export default async (npmOptions, { storyFormat = 'csf' }) => {
|
||||||
const [storybookVersion, actionsVersion, linksVersion, addonsVersion] = await getVersions(
|
const [
|
||||||
|
storybookVersion,
|
||||||
|
actionsVersion,
|
||||||
|
linksVersion,
|
||||||
|
knobsVersion,
|
||||||
|
addonsVersion,
|
||||||
|
] = await getVersions(
|
||||||
npmOptions,
|
npmOptions,
|
||||||
'@storybook/mithril',
|
'@storybook/mithril',
|
||||||
'@storybook/addon-actions',
|
'@storybook/addon-actions',
|
||||||
'@storybook/addon-links',
|
'@storybook/addon-links',
|
||||||
|
'@storybook/addon-knobs',
|
||||||
'@storybook/addons'
|
'@storybook/addons'
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -35,6 +42,7 @@ export default async (npmOptions, { storyFormat = 'csf' }) => {
|
|||||||
`@storybook/mithril@${storybookVersion}`,
|
`@storybook/mithril@${storybookVersion}`,
|
||||||
`@storybook/addon-actions@${actionsVersion}`,
|
`@storybook/addon-actions@${actionsVersion}`,
|
||||||
`@storybook/addon-links@${linksVersion}`,
|
`@storybook/addon-links@${linksVersion}`,
|
||||||
|
`@storybook/addon-knobs@${knobsVersion}`,
|
||||||
`@storybook/addons@${addonsVersion}`,
|
`@storybook/addons@${addonsVersion}`,
|
||||||
...babelDependencies,
|
...babelDependencies,
|
||||||
]);
|
]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user