diff --git a/docs-web/src/main/webapp/Gruntfile.js b/docs-web/src/main/webapp/Gruntfile.js index ec2c6404..589b6bec 100644 --- a/docs-web/src/main/webapp/Gruntfile.js +++ b/docs-web/src/main/webapp/Gruntfile.js @@ -7,12 +7,17 @@ module.exports = function(grunt) { init: ['dist'], after: ['dist/style.css', 'dist/docs.js', 'dist/share.js', 'dist/less.css', 'dist/app'] }, - ngmin: { + ngAnnotate: { + options: { + singleQuotes: true + }, dist: { - expand: true, - cwd: 'src', - src: ['app/**/*.js'], - dest: 'dist' + files: [{ + expand: true, + cwd: 'src', + src: ['app/**/*.js'], + dest: 'dist' + }] } }, concat: { @@ -110,12 +115,12 @@ module.exports = function(grunt) { grunt.loadNpmTasks('grunt-htmlrefs'); grunt.loadNpmTasks('grunt-css'); grunt.loadNpmTasks('grunt-contrib-less'); - grunt.loadNpmTasks('grunt-ngmin'); + grunt.loadNpmTasks('grunt-ng-annotate'); grunt.loadNpmTasks('grunt-text-replace'); grunt.loadNpmTasks('grunt-apidoc'); // Default tasks. - grunt.registerTask('default', ['clean:init', 'ngmin', 'concat:docs', 'concat:share', 'less', 'concat:css', 'cssmin', + grunt.registerTask('default', ['clean:init', 'ngAnnotate', 'concat:docs', 'concat:share', 'less', 'concat:css', 'cssmin', 'uglify:docs', 'uglify:share', 'copy', 'clean:after', 'cleanempty', 'htmlrefs:index', 'htmlrefs:share', 'replace', 'apidoc']); }; \ No newline at end of file diff --git a/docs-web/src/main/webapp/package.json b/docs-web/src/main/webapp/package.json index 97c22aee..3ab0e298 100644 --- a/docs-web/src/main/webapp/package.json +++ b/docs-web/src/main/webapp/package.json @@ -41,7 +41,7 @@ "grunt-contrib-uglify": "^1.0.1", "grunt-css": "^0.5.4", "grunt-htmlrefs": "^0.5.0", - "grunt-ngmin": "0.0.3", + "grunt-ng-annotate": "^2.0.2", "grunt-text-replace": "^0.4.0", "protractor": "^3.3.0", "selenium": "^2.20.0"