diff options
Diffstat (limited to 'js/Gruntfile.js')
-rw-r--r-- | js/Gruntfile.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/js/Gruntfile.js b/js/Gruntfile.js index 03a0c607c..d954d64c0 100644 --- a/js/Gruntfile.js +++ b/js/Gruntfile.js @@ -18,7 +18,7 @@ module.exports = function (grunt) { grunt.loadNpmTasks('grunt-phpunit'); grunt.loadNpmTasks('grunt-wrap'); grunt.loadNpmTasks('grunt-karma'); - grunt.loadNpmTasks('grunt-ngmin'); + grunt.loadNpmTasks('grunt-ng-annotate'); grunt.loadNpmTasks('grunt-traceur'); grunt.loadNpmTasks('grunt-protractor-runner'); grunt.loadNpmTasks('grunt-protractor-webdriver'); @@ -49,7 +49,7 @@ module.exports = function (grunt) { dest: '<%= meta.production %>app.js' } }, - ngmin: { + ngAnnotate: { app: { src: ['<%= meta.production %>app.js'], dest: '<%= meta.production %>app.js' @@ -57,13 +57,13 @@ module.exports = function (grunt) { }, traceur: { app: { - files: { - '<%= meta.production %>app.js': ['<%= meta.production %>app.js'] - } + files: [{ + src: ['<%= meta.production %>app.js'], + dest: '<%= meta.production %>app.js' + }] }, options: { blockBinding: true, - sourceMap: false, experimental: true, modules: 'inline' } @@ -166,7 +166,7 @@ module.exports = function (grunt) { }); // make tasks available under simpler commands - grunt.registerTask('default', ['jshint', 'concat', 'wrap', 'traceur', 'ngmin']); + grunt.registerTask('default', ['jshint', 'concat', 'wrap', 'traceur', 'ngAnnotate']); grunt.registerTask('dev', ['watch:concat']); grunt.registerTask('test', ['karma:unit']); grunt.registerTask('php', ['watch:phpunit']); |