Skip to content

Commit d42baeb

Browse files
committed
Merge pull request #24 from Leadformance/kan
feat(upload): add bower update in grunt upload
2 parents 19bb754 + 2e95535 commit d42baeb

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

app/templates/es6/Gruntfile.js

+10-2
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,9 @@ module.exports = function (grunt) {
292292
options: {
293293
callback: shellUploadCallback
294294
}
295+
},
296+
bowerUpdate: {
297+
command: 'bower update',
295298
}
296299
},
297300

@@ -393,11 +396,16 @@ module.exports = function (grunt) {
393396
var build = dev ? 'build-' + dev : 'build';
394397

395398
if (grunt.config.data.config.apiKey !== '') {
396-
grunt.task.run(
399+
var tasks = [
397400
build,
398401
'http_upload_with_fallback',
399402
'http_upload_nossl',
400-
'clean');
403+
'clean'
404+
];
405+
if (!dev) {
406+
tasks.unshift('shell:bowerUpdate');
407+
}
408+
grunt.task.run(tasks);
401409
} else {
402410
grunt.log.error('HEY, you can\'t use "grunt upload" because the API key is missing. Use "yo brige-template" to init one.');
403411
return false;

0 commit comments

Comments
 (0)