From 436899cfdc9400e48aa4acacbae355aa7a5a5d8e Mon Sep 17 00:00:00 2001 From: harshil1793 Date: Tue, 31 Oct 2023 15:52:56 -0400 Subject: [PATCH] Created storybook gulp script to move assets --- config/gulp/build.js | 3 ++- config/gulp/storybook.js | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 config/gulp/storybook.js diff --git a/config/gulp/build.js b/config/gulp/build.js index 13b32e712..3a5334a8e 100644 --- a/config/gulp/build.js +++ b/config/gulp/build.js @@ -8,7 +8,8 @@ gulp.task('build', 'fonts', 'images', 'javascript', - 'css' + 'css', + 'storybook' ) // ) ); diff --git a/config/gulp/storybook.js b/config/gulp/storybook.js new file mode 100644 index 000000000..5c8623c80 --- /dev/null +++ b/config/gulp/storybook.js @@ -0,0 +1,10 @@ +var gulp = require('gulp'); + +gulp.task('move-assets', function () { + console.log("Moving assets from storybook to root assets directory."); + + return gulp.src('storybook/assets/**/*') + .pipe(gulp.dest('assets/')); +}); + +gulp.task('default', gulp.parallel('move-assets'));