diff --git a/bin/publish b/bin/publish index 6ae5604..c33a30c 100755 --- a/bin/publish +++ b/bin/publish @@ -14,6 +14,7 @@ git fetch 2> /dev/null git checkout gh-pages git pull rm -rf assets +gulp prepare-publish mv public/* . git add -A git commit -m "Site update" diff --git a/gulpfile.js b/gulpfile.js index 7afe84e..3a8479e 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -60,3 +60,7 @@ gulp.task('webpack:dev-server', function(callback) { gulp.task('dev', function(callback) { runSequence('webpack:build', 'copy-vendor', 'copy-examples', 'webpack:dev-server', callback); }); + +gulp.task('prepare-publish', function(callback){ + runSequence('webpack:build', 'copy-vendor', 'copy-examples', callback); +});