chore(build-system): update Gruntfile tasks

pull/879/head
Anthony Lapenna 2017-05-23 15:33:40 +02:00
parent 5b47427484
commit b9035659d2
2 changed files with 17 additions and 4 deletions

View File

@ -32,6 +32,22 @@ module.exports = function (grunt) {
'usemin', 'usemin',
'clean:tmp' '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', [ grunt.registerTask('release-linux-386', [
'config:prod', 'config:prod',
'clean:all', 'clean:all',
@ -152,11 +168,7 @@ module.exports = function (grunt) {
'clean:tmp' 'clean:tmp'
]); ]);
grunt.registerTask('lint', ['eslint']); 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-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']); grunt.registerTask('clear', ['clean:app']);
// Print a timestamp (useful for when watching) // Print a timestamp (useful for when watching)

View File

@ -27,6 +27,7 @@
"bower": "^1.5.2", "bower": "^1.5.2",
"eslint": "^3.19.0", "eslint": "^3.19.0",
"grunt": "~0.4.0", "grunt": "~0.4.0",
"grunt-cli": "^1.2.0",
"grunt-config": "^1.0.0", "grunt-config": "^1.0.0",
"grunt-contrib-clean": "~0.4.0", "grunt-contrib-clean": "~0.4.0",
"grunt-contrib-concat": "~0.1.3", "grunt-contrib-concat": "~0.1.3",