diff --git a/config/gulp/build.js b/config/gulp/build.js index 13b32e712..230f972a5 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..7a39b7416 --- /dev/null +++ b/config/gulp/storybook.js @@ -0,0 +1,13 @@ +var gulp = require('gulp'); +var task = 'storybook'; + +gulp.task('move-assets', function (done) { + console.log("Moving assets from storybook to root assets directory."); + + var stream = gulp.src('./node_modules/@department-of-veterans-affairs/web-components/dist/assets/*') + .pipe(gulp.dest('./assets')); + + return stream; +}); + +gulp.task(task, gulp.parallel('move-assets')); diff --git a/gulpfile.js b/gulpfile.js index f6342f488..ad8e6ddd6 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -6,6 +6,7 @@ require( './config/gulp/images' ); require( './config/gulp/css' ); require( './config/gulp/javascript' ); require( './config/gulp/json' ); +require( './config/gulp/storybook' ); require( './config/gulp/build' ); var gulp = require( 'gulp' );