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:
Gaëtan Maisse 2020-02-16 09:19:15 +01:00
parent f119fdf18c
commit e629f50924

View File

@ -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,
]);