Commit ada3009e authored by Philipp Nowinski's avatar Philipp Nowinski
Browse files

[FEATURE] add some colors to the cli

parent bcd6b950
...@@ -17,7 +17,8 @@ ...@@ -17,7 +17,8 @@
"gulp-concat": "^2.4.3", "gulp-concat": "^2.4.3",
"gulp-uglify": "^1.0.2", "gulp-uglify": "^1.0.2",
"require-dir": "^0.1.0", "require-dir": "^0.1.0",
"yargs": "^1.3.3" "yargs": "^1.3.3",
"chalk": "^0.5.0"
} }
} }
...@@ -4,9 +4,10 @@ module.exports = (function() { ...@@ -4,9 +4,10 @@ module.exports = (function() {
var argv = require('yargs').argv, var argv = require('yargs').argv,
path = require('path'), path = require('path'),
chalk = require('chalk'),
extension = (function() { extension = (function() {
if (typeof argv.ext === 'undefined') { if (typeof argv.ext === 'undefined') {
throw new Error('You have to specify the extension you want to work on with the --ext option.'); throw new Error(chalk.red('You have to specify the extension you want to work on with the') + chalk.yellow(' --ext ') + chalk.red('option.'));
} }
return argv.ext; return argv.ext;
}()), }()),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment