diff --git a/templates/common/root/Gulpfile.js b/templates/common/root/_Gulpfile.js similarity index 97% rename from templates/common/root/Gulpfile.js rename to templates/common/root/_Gulpfile.js index 53f89a143..3d5cff184 100644 --- a/templates/common/root/Gulpfile.js +++ b/templates/common/root/_Gulpfile.js @@ -76,7 +76,7 @@ gulp.task('lint:scripts', function () { }); gulp.task('clean:tmp', function () { - return gulp.src('.tmp', {read: false}).pipe($.clean()); + return gulp.src('.tmp', {read: false}).pipe($.rimraf()); }); gulp.task('start:client', ['start:server', <% if (coffee) { %>'coffee', <% } %>'styles'], function () { @@ -170,7 +170,7 @@ gulp.task('build', function (callback) { }); gulp.task('clean:dist', function () { - return gulp.src('dist', {read: false}).pipe($.clean()); + return gulp.src('dist', {read: false}).pipe($.rimraf()); }); gulp.task('client:build', ['html', 'styles'], function () { @@ -180,7 +180,7 @@ gulp.task('client:build', ['html', 'styles'], function () { return gulp.src(paths.views.main) .pipe($.useref.assets({searchPath: [yeoman.app, '.tmp']})) .pipe(jsFilter) - .pipe($.ngmin()) + .pipe($.ngAnnotate()) .pipe($.uglify()) .pipe(jsFilter.restore()) .pipe(cssFilter)