File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -292,6 +292,9 @@ module.exports = function (grunt) {
292
292
options : {
293
293
callback : shellUploadCallback
294
294
}
295
+ } ,
296
+ bowerUpdate : {
297
+ command : 'bower update' ,
295
298
}
296
299
} ,
297
300
@@ -393,11 +396,16 @@ module.exports = function (grunt) {
393
396
var build = dev ? 'build-' + dev : 'build' ;
394
397
395
398
if ( grunt . config . data . config . apiKey !== '' ) {
396
- grunt . task . run (
399
+ var tasks = [
397
400
build ,
398
401
'http_upload_with_fallback' ,
399
402
'http_upload_nossl' ,
400
- 'clean' ) ;
403
+ 'clean'
404
+ ] ;
405
+ if ( ! dev ) {
406
+ tasks . unshift ( 'shell:bowerUpdate' ) ;
407
+ }
408
+ grunt . task . run ( tasks ) ;
401
409
} else {
402
410
grunt . log . error ( 'HEY, you can\'t use "grunt upload" because the API key is missing. Use "yo brige-template" to init one.' ) ;
403
411
return false ;
You can’t perform that action at this time.
0 commit comments