Skip to content

Commit

Permalink
Using gulp-ng-annotate instead of deprecated gulp-ngmin (Fixes #24)
Browse files Browse the repository at this point in the history
  • Loading branch information
joakimbeng committed Jul 21, 2014
1 parent 0f6dacc commit bb9c94a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions templates/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ gulp.task('coffee', function () {
* Scripts
*/
gulp.task('scripts-dist', ['templates-dist'], function () {
return appFiles().pipe(dist('js', bower.name, {ngmin: true}));
return appFiles().pipe(dist('js', bower.name, {ngAnnotate: true}));
});

/**
Expand Down Expand Up @@ -276,9 +276,9 @@ function dist (ext, name, opt) {
return lazypipe()
.pipe(g.concat, name + '.' + ext)
.pipe(gulp.dest, './dist')
.pipe(opt.ngmin ? g.ngmin : noop)
.pipe(opt.ngmin ? g.rename : noop, name + '.annotated.' + ext)
.pipe(opt.ngmin ? gulp.dest : noop, './dist')
.pipe(opt.ngAnnotate ? g.ngAnnotate : noop)
.pipe(opt.ngAnnotate ? g.rename : noop, name + '.annotated.' + ext)
.pipe(opt.ngAnnotate ? gulp.dest : noop, './dist')
.pipe(ext === 'js' ? g.uglify : g.minifyCss)
.pipe(g.rename, name + '.min.' + ext)
.pipe(gulp.dest, './dist')();
Expand Down
2 changes: 1 addition & 1 deletion templates/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"gulp-uglify": "~0.3.0",
"gulp-htmlmin": "~0.1.2",
"gulp-ng-html2js": "~0.1.7",
"gulp-ngmin": "~0.3.0",
"gulp-ng-annotate": "~0.2.0",
"gulp-karma": "~0.0.4",
"karma-chai": "~0.1.0",
"karma-mocha": "~0.1.3",
Expand Down

0 comments on commit bb9c94a

Please sign in to comment.