Skip to content

Commit

Permalink
Merge pull request #2238 from department-of-veterans-affairs/1977-sto…
Browse files Browse the repository at this point in the history
…rybook-assets

 Copy Storybook Assets to Root Directory using Gulp
  • Loading branch information
harshil1793 authored Nov 1, 2023
2 parents 812d85a + 245ae6c commit 71366a5
Show file tree
Hide file tree
Showing 3 changed files with 16 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',
)
// )
);
13 changes: 13 additions & 0 deletions config/gulp/storybook.js
Original file line number Diff line number Diff line change
@@ -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'));
1 change: 1 addition & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' );

0 comments on commit 71366a5

Please sign in to comment.