Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Commit

Permalink
feat(ngmin): add grunt-ngmin
Browse files Browse the repository at this point in the history
- add grunt-ngmin task to pre-minify code

Closes #20
  • Loading branch information
0x-r4bbit committed May 3, 2013
1 parent 5785707 commit f630958
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 8 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-express');
grunt.loadNpmTasks('grunt-karma');
grunt.loadNpmTasks('grunt-conventional-changelog');
grunt.loadNpmTasks('grunt-ngmin');

grunt.initConfig({
pkg: grunt.file.readJSON('bower.json'),
Expand Down Expand Up @@ -65,6 +66,12 @@ module.exports = function (grunt) {
dest: 'CHANGELOG.md'
}
},
ngmin: {
ngTranslate: {
src: '<%= concat.ngTranslate.dest %>',
dest: '<%= concat.ngTranslate.dest %>'
}
},
express: {
server: {
options: {
Expand All @@ -78,6 +85,6 @@ module.exports = function (grunt) {

grunt.registerTask('default', ['jshint', 'karma']);
grunt.registerTask('test', ['karma']);
grunt.registerTask('build', ['jshint', 'karma', 'concat', 'copy:demo', 'uglify']);
grunt.registerTask('build', ['jshint', 'karma', 'concat', 'ngmin', 'copy:demo', 'uglify']);
grunt.registerTask('server', ['express', 'express-keepalive']);
};
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"grunt-karma": "~0.4.x",
"grunt-conventional-changelog": "0.0.12",
"grunt-express": "~0.3.3",
"grunt-contrib-copy": "~0.4.1"
"grunt-contrib-copy": "~0.4.1",
"grunt-ngmin": "0.0.2"
}
}

0 comments on commit f630958

Please sign in to comment.