Permalink
Browse files

AUI-2090 Adds prepublish script

This makes sure that the build folder is up to date when AlloyUI is published.
  • Loading branch information...
1 parent d32eda4 commit a69d58d956f5c54141cb87703cfa82e8957a2337 @mairatma mairatma committed Oct 5, 2016
Showing with 8 additions and 1 deletion.
  1. +3 −0 package.json
  2. +5 −1 tasks/build.js
View
@@ -20,6 +20,9 @@
"commands",
"helpers"
],
+ "scripts": {
+ "prepublish": "gulp build-publish"
+ },
"files": [
"build"
],
View
@@ -36,6 +36,10 @@ gulp.task('build-loader', function(callback) {
run('loader-prebuild', 'aliases', 'build-base', 'loader-postbuild', callback);
});
+gulp.task('build-publish', function(callback) {
+ run('init-yui', 'build-aui', 'build-loader', callback);
+});
+
function build(cwd, callback) {
var args = [];
var cmd = 'shifter';
@@ -55,4 +59,4 @@ function build(cwd, callback) {
});
}
-module.exports = build;
+module.exports = build;

0 comments on commit a69d58d

Please sign in to comment.