diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-05-19 18:01:43 +0200 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-05-19 18:20:10 +0200 |
commit | 40af2e3e37684eb0d0ba1e33d419a61e4f477d7c (patch) | |
tree | da561d8f5df61816608780e1d5942f2a5a475141 /server/sonar-web/Gruntfile.coffee | |
parent | ffd9e106ac7657931ce0c1cf30a1e81199f8b996 (diff) | |
download | sonarqube-40af2e3e37684eb0d0ba1e33d419a61e4f477d7c.tar.gz sonarqube-40af2e3e37684eb0d0ba1e33d419a61e4f477d7c.zip |
sanitize gruntfile
Diffstat (limited to 'server/sonar-web/Gruntfile.coffee')
-rw-r--r-- | server/sonar-web/Gruntfile.coffee | 33 |
1 files changed, 8 insertions, 25 deletions
diff --git a/server/sonar-web/Gruntfile.coffee b/server/sonar-web/Gruntfile.coffee index 78e304799a0..d03a8d1825f 100644 --- a/server/sonar-web/Gruntfile.coffee +++ b/server/sonar-web/Gruntfile.coffee @@ -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'] |