]> source.dussan.org Git - sonarqube.git/commitdiff
sanitize gruntfile
authorStas Vilchik <vilchiks@gmail.com>
Tue, 19 May 2015 16:01:43 +0000 (18:01 +0200)
committerStas Vilchik <vilchiks@gmail.com>
Tue, 19 May 2015 16:20:10 +0000 (18:20 +0200)
server/sonar-web/Gruntfile.coffee
server/sonar-web/package.json

index 78e304799a0abc6eb328653678c945be3bbb9244..d03a8d1825f80fbe09aa777860a0364446a7f4b4 100644 (file)
@@ -4,7 +4,6 @@ module.exports = (grunt) ->
     unzip: 'grunt-zip'
     replace: 'grunt-text-replace'
   });
-  require('time-grunt')(grunt);
 
   expressPort = '<%= grunt.option("port") || 3000 %>'
 
@@ -184,8 +183,7 @@ module.exports = (grunt) ->
           'requirejs:markdown'
         ]
       casper:
-        options:
-          grunt: true
+        options: grunt: true
         tasks: [
           'casper:apiDocumentation'
           'casper:application'
@@ -203,14 +201,6 @@ module.exports = (grunt) ->
           'casper:ui'
           'casper:workspace'
         ]
-      'build-test':
-        options:
-          grunt: true
-        tasks: ['build-suffix', 'test-suffix']
-      'build-coverage':
-        options:
-          grunt: true
-        tasks: ['build-suffix', 'coverage-suffix']
 
 
     handlebars:
@@ -224,7 +214,6 @@ module.exports = (grunt) ->
           pieces = name.split '/'
           fileName = pieces[pieces.length - 1]
           fileName.split('.')[0]
-
       build:
         files:
           '<%= BUILD_PATH %>/js/components/navigator/templates.js': [
@@ -311,12 +300,6 @@ module.exports = (grunt) ->
         concise: true
         'no-colors': true
         port: expressPort
-      test:
-        src: ['src/test/js/**/*.js']
-      testCoverage:
-        options:
-          'fail-fast': false
-        src: ['src/test/js/**/*.js']
       testCoverageLight:
         options:
           verbose: true
@@ -412,19 +395,19 @@ module.exports = (grunt) ->
 
       less:
         files: '<%= SOURCE_PATH %>/less/**/*.less'
-        tasks: ['less:build']
+        tasks: ['less:build', 'copy:assets-css']
 
       coffee:
         files: '<%= SOURCE_PATH %>/coffee/**/*.coffee'
-        tasks: ['coffee:build', 'copy:js', 'concat:build']
+        tasks: ['coffee:build', 'copy:js', 'concat:build', 'copy:assets-all-js']
 
       js:
         files: '<%= SOURCE_PATH %>/js/**/*.js'
-        tasks: ['copy:js', 'concat:build']
+        tasks: ['copy:js', 'concat:build', 'copy:assets-all-js']
 
       handlebars:
         files: '<%= SOURCE_PATH %>/hbs/**/*.hbs'
-        tasks: ['handlebars:build']
+        tasks: ['handlebars:build', 'copy:assets-all-js']
 
 
   # Basic tasks
@@ -441,7 +424,7 @@ module.exports = (grunt) ->
       ['express:test', 'parallel:casper']
 
   grunt.registerTask 'coverage-suffix',
-      ['express:testCoverage', 'curl:resetCoverage', 'casper:testCoverage', 'curl:downloadCoverage', 'unzip',
+      ['express:testCoverage', 'curl:resetCoverage', 'parallel:casper', 'curl:downloadCoverage', 'unzip',
        'replace:lcov']
 
   # Output tasks
@@ -452,10 +435,10 @@ module.exports = (grunt) ->
       ['prepare', 'build-suffix']
 
   grunt.registerTask 'build-test',
-      ['prepare', 'parallel:build-test']
+      ['prepare', 'build-suffix', 'test-suffix']
 
   grunt.registerTask 'build-coverage',
-      ['prepare', 'parallel:build-coverage']
+      ['prepare', 'build-suffix', 'coverage-suffix']
 
   grunt.registerTask 'test',
       ['prepare', 'test-suffix']
index e218bf1509134570237bfcbf337ed4dcb65c1f43..328f91ef38426df9b6070508b38e07fa83340c1a 100644 (file)
     "grunt-express-server": "0.4.17",
     "grunt-parallel": "0.4.1",
     "grunt-text-replace": "0.4.0",
-    "grunt-uglify-parallel": "0.0.1",
     "grunt-zip": "0.16.2",
     "istanbul": "0.3.5",
     "istanbul-middleware": "0.2.0",
     "jade": "1.4.2",
     "jit-grunt": "0.9.1",
-    "serve-static": "1.5.0",
-    "time-grunt": "1.2.0"
+    "serve-static": "1.5.0"
   },
   "scripts": {
     "build-fast": "./node_modules/.bin/grunt build-fast",