-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(output): Add colors to output messages
Include chalk to add colors to output messages and include also error information on output
- Loading branch information
Showing
5 changed files
with
46 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,18 @@ | ||
var exec = require('child_process').exec, | ||
chalk = require('chalk'), | ||
epiq_dir = '../../../../../../profiles/recruiter/themes/epiq'; | ||
|
||
var cmd = 'cd node_modules/recruiter_epiq_deps && gulp build --epiq_dir ' + epiq_dir; | ||
|
||
console.log('Running build script - ' + chalk.yellow('gulp build')); | ||
exec(cmd, function (error, stdout, stderr) { | ||
// command output is in stdout | ||
console.log(stdout); | ||
if (!error) { | ||
console.log(chalk.green(stdout)); | ||
} | ||
else { | ||
console.log(chalk.white(stdout)); | ||
console.log(chalk.red(error)); | ||
} | ||
console.log(chalk.red(stderr)); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,18 @@ | ||
var exec = require('child_process').exec, | ||
chalk = require('chalk'), | ||
epiq_dir = '../../../../../../profiles/recruiter/themes/epiq'; | ||
|
||
var cmd = 'cd node_modules/recruiter_epiq_deps && gulp images --epiq_dir ' + epiq_dir; | ||
|
||
console.log('Running images script - ' + chalk.yellow('gulp images')); | ||
exec(cmd, function (error, stdout, stderr) { | ||
// command output is in stdout | ||
console.log(stdout); | ||
if (!error) { | ||
console.log(chalk.green(stdout)); | ||
} | ||
else { | ||
console.log(chalk.white(stdout)); | ||
console.log(chalk.red(error)); | ||
} | ||
console.log(chalk.red(stderr)); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,17 @@ | ||
var exec = require('child_process').exec, | ||
chalk = require('chalk'), | ||
epiq_dir = '../../../../../../profiles/recruiter/themes/epiq' | ||
cmd = 'cd node_modules/recruiter_epiq_deps && gulp styleguide-kss --epiq_dir ' + epiq_dir; | ||
|
||
console.log('Compiling styleguide - ' + chalk.yellow('gulp styleguide-kss')); | ||
exec(cmd, function (error, stdout, stderr) { | ||
// command output is in stdout | ||
console.log(stdout); | ||
if (!error) { | ||
console.log(chalk.green(stdout)); | ||
} | ||
else { | ||
console.log(chalk.white(stdout)); | ||
console.log(chalk.red(error)); | ||
} | ||
console.log(chalk.red(stderr)); | ||
}); |