summaryrefslogtreecommitdiffstats
path: root/js/Gruntfile.js
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-09-05 14:00:24 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-09-05 14:00:24 +0200
commit59db6aebdee6c7c05e5bc741ffe2b85cbdce51d7 (patch)
tree87ef4f54b7e849edfd912bf1c25a345e36ab4e19 /js/Gruntfile.js
parentb752c690b4e75ffbe53e00526276d725d30a01d4 (diff)
fix backend sorting
Diffstat (limited to 'js/Gruntfile.js')
-rw-r--r--js/Gruntfile.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/js/Gruntfile.js b/js/Gruntfile.js
index d525c9ded..6ad6d7a1c 100644
--- a/js/Gruntfile.js
+++ b/js/Gruntfile.js
@@ -15,6 +15,7 @@ module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-contrib-jshint');
+ grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-phpunit');
grunt.loadNpmTasks('grunt-wrap');
grunt.loadNpmTasks('grunt-karma');
@@ -57,6 +58,13 @@ module.exports = function (grunt) {
dest: '<%= meta.production %>app.js'
}
},
+ uglify: {
+ app: {
+ files: {
+ '<%= meta.production %>app.min.js': ['<%= meta.production %>app.js']
+ }
+ }
+ },
// in place because grunt-traceur is buggy, remove when traceur 0.0.60
// is supported
shell: {
@@ -175,7 +183,7 @@ module.exports = function (grunt) {
});
// make tasks available under simpler commands
- grunt.registerTask('default', ['jshint', 'concat', 'wrap', 'shell:traceur', 'ngAnnotate']);
+ grunt.registerTask('default', ['jshint', 'concat', 'wrap', 'shell:traceur', 'ngAnnotate', 'uglify']);
grunt.registerTask('dev', ['watch:concat']);
grunt.registerTask('test', ['karma:unit']);
grunt.registerTask('php', ['watch:phpunit']);