From b9035659d24e2f1c487bdabc8dbe0765012da957 Mon Sep 17 00:00:00 2001 From: Anthony Lapenna Date: Tue, 23 May 2017 15:33:40 +0200 Subject: [PATCH] chore(build-system): update Gruntfile tasks --- gruntfile.js | 20 ++++++++++++++++---- package.json | 1 + 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/gruntfile.js b/gruntfile.js index 11bcdd5e4..2d07fbae5 100644 --- a/gruntfile.js +++ b/gruntfile.js @@ -32,6 +32,22 @@ module.exports = function (grunt) { 'usemin', 'clean:tmp' ]); + grunt.registerTask('build-webapp', [ + 'config:prod', + 'clean:all', + 'html2js', + 'useminPrepare:release', + 'recess:build', + 'concat', + 'clean:tmpl', + 'cssmin', + 'replace', + 'uglify', + 'copy:assets', + 'filerev', + 'usemin', + 'clean:tmp' + ]); grunt.registerTask('release-linux-386', [ 'config:prod', 'clean:all', @@ -152,11 +168,7 @@ module.exports = function (grunt) { 'clean:tmp' ]); grunt.registerTask('lint', ['eslint']); - grunt.registerTask('run', ['if:linuxAmd64BinaryNotExist', 'build', 'shell:buildImage', 'shell:run']); - grunt.registerTask('run-swarm', ['if:linuxAmd64BinaryNotExist', 'build', 'shell:buildImage', 'shell:runSwarm', 'watch:buildSwarm']); - grunt.registerTask('run-swarm-local', ['if:linuxAmd64BinaryNotExist', 'build', 'shell:buildImage', 'shell:runSwarmLocal', 'watch:buildSwarm']); grunt.registerTask('run-dev', ['if:linuxAmd64BinaryNotExist', 'shell:buildImage', 'shell:run', 'watch:build']); - grunt.registerTask('run-ssl', ['if:linuxAmd64BinaryNotExist', 'shell:buildImage', 'shell:runSsl', 'watch:buildSsl']); grunt.registerTask('clear', ['clean:app']); // Print a timestamp (useful for when watching) diff --git a/package.json b/package.json index 40f2bbadb..9324212c8 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "bower": "^1.5.2", "eslint": "^3.19.0", "grunt": "~0.4.0", + "grunt-cli": "^1.2.0", "grunt-config": "^1.0.0", "grunt-contrib-clean": "~0.4.0", "grunt-contrib-concat": "~0.1.3",