aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-02-20 14:58:26 +0100
committerStas Vilchik <vilchiks@gmail.com>2015-02-20 15:00:29 +0100
commit0206fc12be197cca531bcfce97a8524fe1f0dd4d (patch)
treef07e575a573369254a43549932b1fd9b657fd269 /server
parent884231b56a62223f15a52e98eb9ad1fcc0dcaefe (diff)
downloadsonarqube-0206fc12be197cca531bcfce97a8524fe1f0dd4d.tar.gz
sonarqube-0206fc12be197cca531bcfce97a8524fe1f0dd4d.zip
speed up uglify js step
Diffstat (limited to 'server')
-rw-r--r--server/sonar-web/Gruntfile.coffee22
-rw-r--r--server/sonar-web/package.json2
2 files changed, 6 insertions, 18 deletions
diff --git a/server/sonar-web/Gruntfile.coffee b/server/sonar-web/Gruntfile.coffee
index 840d2784188..7b3be526566 100644
--- a/server/sonar-web/Gruntfile.coffee
+++ b/server/sonar-web/Gruntfile.coffee
@@ -1,4 +1,6 @@
module.exports = (grunt) ->
+ require('jit-grunt')(grunt);
+
pkg = grunt.file.readJSON('package.json')
expressPort = '<%= grunt.option("port") || 3000 %>'
@@ -348,7 +350,7 @@ module.exports = (grunt) ->
src: ['<%= grunt.option("file") %>']
- uglify:
+ uglify_parallel:
build:
files: [
expand: true
@@ -394,29 +396,13 @@ module.exports = (grunt) ->
- # Load grunt-contrib-* plugins
- grunt.loadNpmTasks 'grunt-contrib-less'
- grunt.loadNpmTasks 'grunt-css-url-rewrite'
- grunt.loadNpmTasks 'grunt-contrib-coffee'
- grunt.loadNpmTasks 'grunt-contrib-uglify'
- grunt.loadNpmTasks 'grunt-contrib-requirejs'
- grunt.loadNpmTasks 'grunt-contrib-handlebars'
- grunt.loadNpmTasks 'grunt-contrib-watch'
- grunt.loadNpmTasks 'grunt-contrib-clean'
- grunt.loadNpmTasks 'grunt-contrib-copy'
- grunt.loadNpmTasks 'grunt-contrib-concat'
- grunt.loadNpmTasks 'grunt-contrib-jshint'
- grunt.loadNpmTasks 'grunt-express-server'
- grunt.loadNpmTasks 'grunt-casper'
-
-
# Define tasks
grunt.registerTask 'dev',
['clean:css', 'clean:js', 'less:dev', 'coffee:build', 'handlebars:build', 'copy:js', 'concat:dev']
grunt.registerTask 'build',
['clean:css', 'clean:js', 'less:build', 'cssUrlRewrite:build', 'coffee:build', 'handlebars:build', 'copy:js',
- 'concat:build', 'requirejs', 'clean:js', 'copy:build', 'copy:requirejs', 'uglify:build', 'clean:build']
+ 'concat:build', 'requirejs', 'clean:js', 'copy:build', 'copy:requirejs', 'uglify_parallel:build', 'clean:build']
grunt.registerTask 'default',
['build']
diff --git a/server/sonar-web/package.json b/server/sonar-web/package.json
index 4dbf1d07fcf..f9beeb0882a 100644
--- a/server/sonar-web/package.json
+++ b/server/sonar-web/package.json
@@ -20,7 +20,9 @@
"grunt-contrib-watch": "0.5.3",
"grunt-css-url-rewrite": "0.3.5",
"grunt-express-server": "0.4.17",
+ "grunt-uglify-parallel": "0.0.1",
"jade": "1.4.2",
+ "jit-grunt": "0.9.1",
"phantomjs": "1.9.7-12",
"serve-static": "1.5.0"
},