From dd023fa5fd90b8b541b8cc60c87186ee619e4844 Mon Sep 17 00:00:00 2001 From: kingcody Date: Sat, 19 Jul 2014 20:10:36 -0400 Subject: [PATCH] fix(app-dependency): change ngmin to ng-annotate ngmin is now deprecated, the author has suggested ng-annotate as a replacement Changes: - switch dev-dependency from grunt-ngmin to grunt-ng-annotate - use ngAnnotate config instead of ngmin --- app/templates/Gruntfile.js | 4 ++-- app/templates/_package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/templates/Gruntfile.js b/app/templates/Gruntfile.js index 7dd57877d..afec6de71 100644 --- a/app/templates/Gruntfile.js +++ b/app/templates/Gruntfile.js @@ -316,7 +316,7 @@ module.exports = function (grunt) { // Allow the use of non-minsafe AngularJS files. Automatically makes it // minsafe compatible so Uglify does not destroy the ng references - ngmin: { + ngAnnotate: { dist: { files: [{ expand: true, @@ -782,7 +782,7 @@ module.exports = function (grunt) { 'autoprefixer', 'ngtemplates', 'concat', - 'ngmin', + 'ngAnnotate', 'copy:dist', 'cdnify', 'cssmin', diff --git a/app/templates/_package.json b/app/templates/_package.json index f87d5dc40..b0265239c 100644 --- a/app/templates/_package.json +++ b/app/templates/_package.json @@ -47,7 +47,7 @@ "grunt-contrib-less": "^0.11.0",<% } %> "grunt-google-cdn": "~0.4.0", "grunt-newer": "~0.7.0", - "grunt-ngmin": "~0.0.3", + "grunt-ng-annotate": "^0.2.3", "grunt-rev": "~0.1.0", "grunt-svgmin": "~0.4.0", "grunt-usemin": "~2.1.1",