Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
Use ng-annotate instead of ngmin
Browse files Browse the repository at this point in the history
josephrace committed Sep 11, 2014
1 parent 2c319c5 commit 26d8a12
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions gruntfile.js
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
module.exports = function(grunt) {
// Unified Watch Object
var watchFiles = {
serverViews: ['app/views/**/*.*'],
serverViews: ['app/views/**/*.*'],
serverJS: ['gruntfile.js', 'server.js', 'config/**/*.js', 'app/**/*.js'],
clientViews: ['public/modules/**/views/**/*.html'],
clientJS: ['public/js/*.js', 'public/modules/**/*.js'],
@@ -105,7 +105,7 @@ module.exports = function(grunt) {
}
}
},
ngmin: {
ngAnnotate: {
production: {
files: {
'public/dist/application.js': '<%= applicationJavaScriptFiles %>'
@@ -138,7 +138,7 @@ module.exports = function(grunt) {
}
});

// Load NPM tasks
// Load NPM tasks
require('load-grunt-tasks')(grunt);

// Making grunt default to force in order not to break the project.
@@ -163,8 +163,8 @@ module.exports = function(grunt) {
grunt.registerTask('lint', ['jshint', 'csslint']);

// Build task(s).
grunt.registerTask('build', ['lint', 'loadConfig', 'ngmin', 'uglify', 'cssmin']);
grunt.registerTask('build', ['lint', 'loadConfig', 'ngAnnotate', 'uglify', 'cssmin']);

// Test task.
grunt.registerTask('test', ['env:test', 'mochaTest', 'karma:unit']);
};
};
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -54,7 +54,7 @@
"grunt-contrib-watch": "~0.6.1",
"grunt-contrib-jshint": "~0.10.0",
"grunt-contrib-csslint": "^0.2.0",
"grunt-ngmin": "0.0.3",
"grunt-ng-annotate": "~0.3.2",
"grunt-contrib-uglify": "~0.5.1",
"grunt-contrib-cssmin": "~0.10.0",
"grunt-nodemon": "~0.3.0",
@@ -69,4 +69,4 @@
"karma-firefox-launcher": "~0.1.3",
"karma-phantomjs-launcher": "~0.1.2"
}
}
}

0 comments on commit 26d8a12

Please sign in to comment.