diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-08-04 14:40:25 +0200 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-08-04 14:40:25 +0200 |
commit | 5abbda8671afd4ba05653277e72b6a3005acff03 (patch) | |
tree | b71a4fd860f978c5d6dad29f2da85ab3a1a9ca33 /server/sonar-web/Gruntfile.coffee | |
parent | 0421e0a1699eef419ff6175278b5312bde2e8ccd (diff) | |
download | sonarqube-5abbda8671afd4ba05653277e72b6a3005acff03.tar.gz sonarqube-5abbda8671afd4ba05653277e72b6a3005acff03.zip |
compile .jsx files
Diffstat (limited to 'server/sonar-web/Gruntfile.coffee')
-rw-r--r-- | server/sonar-web/Gruntfile.coffee | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/server/sonar-web/Gruntfile.coffee b/server/sonar-web/Gruntfile.coffee index a495f84fdc1..d324e5b63fc 100644 --- a/server/sonar-web/Gruntfile.coffee +++ b/server/sonar-web/Gruntfile.coffee @@ -36,6 +36,17 @@ module.exports = (grunt) -> ] + babel: + build: + files: [ + expand: true + cwd: '<%= SOURCE_PATH %>/js' + src: ['**/*.jsx'] + dest: '<%= BUILD_PATH %>/js' + ext: '.js' + ] + + concat: build: files: @@ -300,6 +311,10 @@ module.exports = (grunt) -> files: '<%= SOURCE_PATH %>/js/**/*.js' tasks: ['copy:js', 'concat:build', 'copy:assets-all-js'] + jsx: + files: '<%= SOURCE_PATH %>/js/**/*.jsx' + tasks: ['babel:build', 'concat:build', 'copy:assets-all-js'] + handlebars: files: '<%= SOURCE_PATH %>/**/*.hbs' tasks: ['handlebars:build', 'copy:assets-all-js'] @@ -307,7 +322,7 @@ module.exports = (grunt) -> # Basic tasks grunt.registerTask 'prepare', - ['clean:css', 'clean:js', 'clean:build', 'less:build', 'handlebars:build', 'copy:js', 'concat:build'] + ['clean:css', 'clean:js', 'clean:build', 'less:build', 'handlebars:build', 'copy:js', 'babel:build', 'concat:build'] grunt.registerTask 'build-fast-suffix', ['copy:assets-css', 'copy:assets-all-js'] |