|
|
@@ -43,8 +43,8 @@ gulp
|
|
|
return gulp.src("src/web/index.html")
|
|
|
.pipe(plumber(errLogger))
|
|
|
.pipe(assets)
|
|
|
- .pipe(gulpif("*.js", babel({blacklist: ["useStrict"]})))
|
|
|
- .pipe(gulpif("*.js", ngAnnotate()))
|
|
|
+ .pipe(gulpif("index.min.js", babel({blacklist: ["useStrict"]})))
|
|
|
+ .pipe(gulpif("index.min.js", ngAnnotate()))
|
|
|
.pipe(gulpif("*.js", uglify()))
|
|
|
.pipe(gulpif("*.css", minifyCss()))
|
|
|
.pipe(assets.restore())
|
|
|
@@ -75,12 +75,18 @@ gulp
|
|
|
.pipe(gulp.dest(opts.buildDir + "/web/assets/scripts"));
|
|
|
})
|
|
|
|
|
|
-.task("default", ["minify", "parser", "generator"], function() {
|
|
|
+.task("default", ["parser", "generator"], function() {
|
|
|
return;
|
|
|
})
|
|
|
|
|
|
-.task("deploy", ["default"], function() {
|
|
|
- return gulp.src(opts.buildDir + "/**/*")
|
|
|
- .pipe(deploy());
|
|
|
+.task("build", ["minify", "parser", "generator"], function() {
|
|
|
+ return;
|
|
|
+})
|
|
|
+
|
|
|
+.task("deploy", ["build"], function() {
|
|
|
+ return gulp.src(opts.buildDir + "/web/**/*")
|
|
|
+ .pipe(deploy({
|
|
|
+ push: gutil.env.nopush ? false : true,
|
|
|
+ }));
|
|
|
})
|
|
|
;
|