]> source.dussan.org Git - sonarqube.git/commitdiff
Skip uglification of JS source, only concatenate files
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Thu, 12 Jun 2014 11:42:54 +0000 (13:42 +0200)
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Thu, 12 Jun 2014 11:53:25 +0000 (13:53 +0200)
sonar-server/Gruntfile.coffee

index 4f798ddd1b6f6061b305821d6ad225307ad043e0..d98373f3c25bf36ef02c52909f0beb08deabe9d3 100644 (file)
@@ -84,12 +84,7 @@ module.exports = (grunt) ->
             '<%= pkg.assets %>js/issue.js'
             '<%= pkg.assets %>js/recent-history.js'
           ]
-
-
-    uglify:
       build:
-        options:
-          preserveComments: false # remove all comments
         files:
           '<%= pkg.assets %>build/js/sonar.js': [
             '<%= pkg.assets %>js/translate.js'
@@ -124,7 +119,8 @@ module.exports = (grunt) ->
     requirejs:
       options:
         baseUrl: '<%= pkg.assets %>js/'
-        preserveLicenseComments: false,
+        preserveLicenseComments: false
+        optimize: 'none'
 
         paths:
           'backbone': 'third-party/backbone'
@@ -271,7 +267,7 @@ module.exports = (grunt) ->
   grunt.registerTask 'default', ['clean:css', 'clean:js',
                                  'less:build',
                                  'coffee:build', 'handlebars:build', 'copy:js',
-                                 'uglify:build',
+                                 'concat:build',
                                  'requirejs', 'clean:js', 'copy:build', 'copy:requirejs', 'clean:build']
 
   grunt.registerTask 'test', ['coffee:build', 'handlebars:build', 'copy:js', 'concat:dev', 'karma:unit']