@@ -111,7 +111,7 @@ Cli.run = function run(processArgv) {
111111 //run with gulp hooks
112112 return runWithGulp ( argv , taskInstance ) ;
113113 } else if ( argv . v2 ) {
114- log . warn ( 'WARN: No node_modules directory found, do you need to run npm install?' ) ;
114+ log . warn ( 'WARN: No node_modules directory found, do you need to run npm install?' . yellow ) ;
115115 }
116116 }
117117 return Q . fcall ( taskInstance . run . bind ( taskInstance ) , Cli , argv ) ;
@@ -133,8 +133,8 @@ function runWithGulp(argv, taskInstance){
133133 var gulp = require ( path . resolve ( process . cwd ( ) + '/node_modules/gulp' ) ) ;
134134 } catch ( e ) {
135135 // Empty gulpfile (or one that doesn't require gulp?), and no gulp
136- log . error ( '\nGulpfile detected, but gulp is not installed' ) ;
137- log . error ( 'Do you need to run `npm install`?\n' ) ;
136+ log . error ( '\nGulpfile detected, but gulp is not installed' . red ) ;
137+ log . error ( 'Do you need to run `npm install`?\n' . red ) ;
138138 process . exit ( 1 ) ;
139139 }
140140 logEvents ( gulp , [ beforeHook , afterHook ] ) ;
@@ -151,17 +151,17 @@ function runWithGulp(argv, taskInstance){
151151 //if there is no hook task, but it's a v2 app and a command that usually needs a hook
152152 if ( e . missingTask && / s e r v e | b u i l d | r u n | e m u l a t e | u p l o a d / . test ( cmdName ) && argv . v2 ) {
153153 var taskName = ( cmdName === 'serve' ) ? 'watch' : 'build' ;
154- log . warn ( 'WARN: No \'' + beforeHook + '\' gulp task found!' ) ;
154+ log . warn ( ( 'WARN: No \'' + beforeHook + '\' gulp task found!' ) . yellow ) ;
155155
156156 //The task exists, but there are no hooks for it
157157 //They have the old config file, so we're safe to yell at them
158158 //With new config, may intentionally not have hooks if running their own build
159159 if ( gulp . tasks [ taskName ] && fs . existsSync ( 'ionic.config.js' ) ) {
160- log . info ( 'Your gulpfile contains a \'' + taskName + '\' task already! Add:\n' )
161- log . info ( ' gulp.task(\'' + cmdName + ':before\', [\'' + taskName + '\']);\n' ) ;
162- log . info ( 'to your gulpfile to have Ionic CLI run \'' + taskName + '\' before ' + cmdName + '.\n' ) ;
160+ log . info ( ( 'Your gulpfile contains a \'' + taskName + '\' task already! Add:\n' ) . cyan )
161+ log . info ( ( ' gulp.task(\'' + cmdName + ':before\', [\'' + taskName + '\']);\n' ) . cyan ) ;
162+ log . info ( ( 'to your gulpfile to have Ionic CLI run \'' + taskName + '\' before ' + cmdName + '.\n' ) . cyan ) ;
163163 } else {
164- log . warn ( 'If your app requires a build step, you may want to ensure it runs before ' + cmdName + '.\n' ) ;
164+ log . warn ( ( 'If your app requires a build step, you may want to ensure it runs before ' + cmdName + '.\n' ) . yellow ) ;
165165 }
166166 }
167167 // Only some commands return promises, so wrap it
0 commit comments