File tree 2 files changed +20
-1
lines changed
2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,8 @@ module.exports = function (grunt) {
16
16
ngtemplates : 'grunt-angular-templates' ,
17
17
cdnify : 'grunt-google-cdn' ,
18
18
protractor : 'grunt-protractor-runner' ,
19
- injector : 'grunt-asset-injector'
19
+ injector : 'grunt-asset-injector' ,
20
+ buildcontrol : 'grunt-build-control'
20
21
} ) ;
21
22
22
23
// Time how long tasks take. Can help when optimizing build times
@@ -26,6 +27,7 @@ module.exports = function (grunt) {
26
27
grunt . initConfig ( {
27
28
28
29
// Project settings
30
+ pkg : grunt . file . readJSON ( 'package.json' ) ,
29
31
yeoman : {
30
32
// configurable paths
31
33
client : require ( './bower.json' ) . appPath || 'client' ,
@@ -407,6 +409,22 @@ module.exports = function (grunt) {
407
409
}
408
410
} ,
409
411
412
+ buildcontrol: {
413
+ options : {
414
+ dir : 'dist' ,
415
+ commit : true ,
416
+ push : true ,
417
+ message : 'Built %sourceName% from commit %sourceCommit% on branch %sourceBranch%'
418
+ } ,
419
+ heroku : {
420
+ options : {
421
+ remote : 'heroku' ,
422
+ branch : 'master' ,
423
+ tag : '<%%= pkg.version %>'
424
+ }
425
+ }
426
+ } ,
427
+
410
428
// Run some tasks in parallel to speed up the build process
411
429
concurrent: {
412
430
server : [ < % if ( filters . coffee ) { % >
Original file line number Diff line number Diff line change 59
59
"grunt-protractor-runner" : " ^1.1.0" ,
60
60
"grunt-asset-injector" : " ^0.1.0" ,
61
61
"grunt-karma" : " ~0.8.2" ,
62
+ "grunt-build-control" : " DaftMonk/grunt-build-control" ,
62
63
"grunt-mocha-test" : " ~0.10.2" ,<% if(filters.sass) { %>
63
64
"grunt-contrib-sass" : " ^0.7.3" ,<% } %><% if(filters.stylus) { %>
64
65
"grunt-contrib-stylus" : " latest" ,<% } %>
You can’t perform that action at this time.
0 commit comments