Skip to content

Commit 2d64d87

Browse files
author
Ben Zörb
committed
fix(scripts): adds storybook:build script to run before storybook
this makes sure that all hugo related files have been created before storybook is started
1 parent b88334f commit 2d64d87

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/create-wekit-app/create-app.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,10 +210,11 @@ export async function createApp({ appPath }: { appPath: string }): Promise<void>
210210
prebuild: 'npm run content',
211211
build: 'hugo --gc --minify --environment production',
212212
scaffold: 'node tools/hygen scaffold new',
213-
'storybook:build': 'hugo --gc --environment storybook --watch',
213+
'storybook:build': 'hugo --gc --environment storybook',
214+
'storybook:watch': 'hugo --gc --environment storybook --watch',
214215
'storybook:run': 'start-storybook -p 6006',
215-
prestorybook: 'run-s clean cf:docs cf:argtypes',
216-
storybook: 'run-p storybook:build storybook:run',
216+
prestorybook: 'run-s clean cf:docs cf:argtypes storybook:build',
217+
storybook: 'run-p storybook:watch storybook:run',
217218
'prebuild-storybook': 'npm run clean && hugo --gc --environment storybook',
218219
'build-storybook': 'build-storybook',
219220
'debug:i18n': 'hugo --i18n-warnings | grep i18n',

0 commit comments

Comments
 (0)