File tree 1 file changed +10
-4
lines changed
1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -193,12 +193,13 @@ Generator.prototype.enableOpenShiftHotDeploy = function enableOpenshiftHotDeploy
193
193
} ) ;
194
194
} ;
195
195
196
- Generator . prototype . gruntBuild = function gruntBuild ( ) {
196
+ Generator . prototype . build = function build ( ) {
197
197
if ( this . abort || ! this . openshift_remote_exists ) return ;
198
198
var done = this . async ( ) ;
199
+ var buildCommand = this . filters . grunt ? 'grunt build' : 'gulp build' ;
199
200
200
201
this . log ( chalk . bold ( '\nBuilding dist folder, please wait...' ) ) ;
201
- var child = exec ( 'grunt build' , function ( err , stdout ) {
202
+ var child = exec ( buildCommand , function ( err , stdout ) {
202
203
if ( err ) {
203
204
this . log . error ( err ) ;
204
205
}
@@ -294,7 +295,12 @@ Generator.prototype.restartApp = function restartApp() {
294
295
this . log ( chalk . green ( '\nYou may need to address the issues mentioned above and restart the server for the app to work correctly \n\t' +
295
296
'rhc app-restart -a ' + this . deployedName ) ) ;
296
297
}
297
- this . log ( chalk . yellow ( 'After app modification run\n\t' + chalk . bold ( 'grunt build' ) +
298
- '\nThen deploy with\n\t' + chalk . bold ( 'grunt buildcontrol:openshift' ) ) ) ;
298
+
299
+ this . log ( chalk . yellow (
300
+ 'After app modification run\n\t' +
301
+ chalk . bold ( this . filters . grunt ? 'grunt build' : 'gulp build' ) +
302
+ '\nThen deploy with\n\t' +
303
+ chalk . bold ( this . filters . grunt ? 'grunt buildcontrol:openshift' : 'gulp buildcontrol:openshift' )
304
+ ) ) ;
299
305
} . bind ( this ) ) ;
300
306
} ;
You can’t perform that action at this time.
0 commit comments