diff --git a/gulpfile.js b/gulpfile.js index ab14ae7d8b..d713ff5e21 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -114,6 +114,8 @@ gulp.task('static', function () { .pipe(gulp.dest(paths.dist)); }); -gulp.task('install', [ 'static', 'scripts', 'stylesheets' ]); +gulp.task('install', [ 'static', 'scripts' ]); -gulp.task('verify', [ 'lint', 'test' ]); \ No newline at end of file +gulp.task('verify', [ 'lint', 'test' ]); + +gulp.task('build', [ 'verify', 'install' ]); diff --git a/package.json b/package.json index 2c3458956e..d5ecf8fbd3 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,8 @@ "jsdoc": "jsdoc -c jsdoc.json -r -d target/docs/api", "otherdoc": "node docs/gendocs.js --in docs/src --out target/docs --suppress-toc 'docs/src/index.md|docs/src/process/index.md'", "docs": "npm run jsdoc ; npm run otherdoc", - "postinstall": "./node_modules/bower/bin/bower install" + "postinstall": "./node_modules/bower/bin/bower install", + "prepublish": "./node_modules/gulp/bin/gulp.js build" }, "repository": { "type": "git",