File tree 1 file changed +9
-4
lines changed
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -112,12 +112,13 @@ Generator.prototype.copyProcfile = function copyProcfile() {
112
112
} ) ;
113
113
} ;
114
114
115
- Generator . prototype . gruntBuild = function gruntBuild ( ) {
115
+ Generator . prototype . build = function build ( ) {
116
116
if ( this . abort ) return ;
117
117
var done = this . async ( ) ;
118
+ var buildCommand = this . filters . grunt ? 'grunt build' : 'gulp build' ;
118
119
119
120
this . log ( chalk . bold ( '\nBuilding dist folder, please wait...' ) ) ;
120
- var child = exec ( 'grunt build' , function ( err , stdout ) {
121
+ var child = exec ( buildCommand , function ( err , stdout ) {
121
122
done ( ) ;
122
123
} . bind ( this ) ) ;
123
124
child . stdout . on ( 'data' , function ( data ) {
@@ -187,8 +188,12 @@ Generator.prototype.gitForcePush = function gitForcePush() {
187
188
this . log ( chalk . green ( '\nYou may need to address the issues mentioned above and restart the server for the app to work correctly.' ) ) ;
188
189
}
189
190
190
- this . log ( chalk . yellow ( 'After app modification run\n\t' + chalk . bold ( 'grunt build' ) +
191
- '\nThen deploy with\n\t' + chalk . bold ( 'grunt buildcontrol:heroku' ) ) ) ;
191
+ this . log ( chalk . yellow (
192
+ 'After app modification run\n\t' +
193
+ chalk . bold ( this . filters . grunt ? 'grunt build' : 'gulp build' ) +
194
+ '\nThen deploy with\n\t' +
195
+ chalk . bold ( this . filters . grunt ? 'grunt buildcontrol:heroku' : 'gulp buildcontrol:heroku' )
196
+ ) ) ;
192
197
}
193
198
done ( ) ;
194
199
} . bind ( this ) ) ;
You can’t perform that action at this time.
0 commit comments