From 9067499056861e3d0b55495ae0997ef040bed3ef Mon Sep 17 00:00:00 2001 From: arve0 Date: Tue, 20 May 2014 14:22:54 +0200 Subject: [PATCH] use ngmin, save some typing --- gruntfile.js | 13 ++++++++++--- package.json | 3 ++- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/gruntfile.js b/gruntfile.js index c338b7ef..fbda5761 100644 --- a/gruntfile.js +++ b/gruntfile.js @@ -55,13 +55,20 @@ module.exports = function(grunt) { src: ['public/modules/**/css/*.css'] } }, + ngmin: { + production: { + files: { + 'public/dist/application.js': '<%= applicationJavaScriptFiles %>' + } + } + }, uglify: { production: { options: { mangle: false }, files: { - 'public/dist/application.min.js': '<%= applicationJavaScriptFiles %>' + 'public/dist/application.min.js': 'public/dist/application.js' } } }, @@ -127,8 +134,8 @@ module.exports = function(grunt) { grunt.registerTask('lint', ['jshint', 'csslint']); // Build task(s). - grunt.registerTask('build', ['jshint', 'csslint', 'loadConfig' ,'uglify', 'cssmin']); + grunt.registerTask('build', ['jshint', 'csslint', 'loadConfig', 'ngmin', 'uglify', 'cssmin']); // Test task. grunt.registerTask('test', ['env:test', 'mochaTest', 'karma:unit']); -}; \ No newline at end of file +}; diff --git a/package.json b/package.json index bf7aed98..b75be96c 100755 --- a/package.json +++ b/package.json @@ -56,6 +56,7 @@ "grunt-nodemon": "~0.2.0", "grunt-concurrent": "~0.5.0", "grunt-mocha-test": "~0.10.0", + "grunt-ngmin": "0.0.3", "grunt-karma": "~0.8.2", "load-grunt-tasks": "~0.4.0", "karma": "~0.12.0", @@ -65,4 +66,4 @@ "karma-firefox-launcher": "~0.1.3", "karma-phantomjs-launcher": "~0.1.2" } -} \ No newline at end of file +}