Skip to content

Commit

Permalink
Created storybook gulp script to move assets
Browse files Browse the repository at this point in the history
  • Loading branch information
harshil1793 committed Oct 31, 2023
1 parent 812d85a commit 436899c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/gulp/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ gulp.task('build',
'fonts',
'images',
'javascript',
'css'
'css',
'storybook'
)
// )
);
10 changes: 10 additions & 0 deletions config/gulp/storybook.js
Original file line number Diff line number Diff line change
@@ -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'));

0 comments on commit 436899c

Please sign in to comment.