Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Toolchain
sgc
Commits
ada3009e
Commit
ada3009e
authored
Jan 09, 2015
by
Philipp Nowinski
Browse files
[FEATURE] add some colors to the cli
parent
bcd6b950
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/templates/_package.json
View file @
ada3009e
...
...
@@ -17,7 +17,8 @@
"gulp-concat"
:
"^2.4.3"
,
"gulp-uglify"
:
"^1.0.2"
,
"require-dir"
:
"^0.1.0"
,
"yargs"
:
"^1.3.3"
"yargs"
:
"^1.3.3"
,
"chalk"
:
"^0.5.0"
}
}
app/templates/gulp/settings.js
View file @
ada3009e
...
...
@@ -4,9 +4,10 @@ module.exports = (function() {
var
argv
=
require
(
'
yargs
'
).
argv
,
path
=
require
(
'
path
'
),
chalk
=
require
(
'
chalk
'
),
extension
=
(
function
()
{
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
;
}()),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment