-
-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New: Make log messages and colors configurable with theme.
- Loading branch information
Showing
44 changed files
with
1,186 additions
and
248 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
**/*.babel.js | ||
coverage | ||
docs |
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
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,122 +1,75 @@ | ||
'use strict'; | ||
|
||
var ansi = require('./ansi'); | ||
|
||
module.exports = { | ||
help: { | ||
alias: 'h', | ||
type: 'boolean', | ||
desc: ansi.gray( | ||
'Show this help.'), | ||
}, | ||
version: { | ||
alias: 'v', | ||
type: 'boolean', | ||
desc: ansi.gray( | ||
'Print the global and local gulp versions.'), | ||
}, | ||
require: { | ||
type: 'string', | ||
requiresArg: true, | ||
desc: ansi.gray( | ||
'Will require a module before running the gulpfile. ' + | ||
'This is useful for transpilers but also has other applications.'), | ||
}, | ||
gulpfile: { | ||
alias: 'f', | ||
type: 'string', | ||
requiresArg: true, | ||
desc: ansi.gray( | ||
'Manually set path of gulpfile. Useful if you have multiple gulpfiles. ' + | ||
'This will set the CWD to the gulpfile directory as well.'), | ||
}, | ||
cwd: { | ||
type: 'string', | ||
requiresArg: true, | ||
desc: ansi.gray( | ||
'Manually set the CWD. The search for the gulpfile, ' + | ||
'as well as the relativity of all requires will be from here.'), | ||
}, | ||
verify: { | ||
desc: ansi.gray( | ||
'Will verify plugins referenced in project\'s package.json against ' + | ||
'the plugins blacklist.'), | ||
}, | ||
tasks: { | ||
alias: 'T', | ||
type: 'boolean', | ||
desc: ansi.gray( | ||
'Print the task dependency tree for the loaded gulpfile.'), | ||
}, | ||
'tasks-simple': { | ||
type: 'boolean', | ||
desc: ansi.gray( | ||
'Print a plaintext list of tasks for the loaded gulpfile.'), | ||
}, | ||
'tasks-json': { | ||
desc: ansi.gray( | ||
'Print the task dependency tree, ' + | ||
'in JSON format, for the loaded gulpfile.'), | ||
}, | ||
'tasks-depth': { | ||
alias: 'depth', | ||
type: 'number', | ||
requiresArg: true, | ||
default: undefined, // To detect if this cli option is specified. | ||
desc: ansi.gray( | ||
'Specify the depth of the task dependency tree.'), | ||
}, | ||
'compact-tasks': { | ||
type: 'boolean', | ||
default: undefined, // To detect if this cli option is specified. | ||
desc: ansi.gray( | ||
'Reduce the output of task dependency tree by printing ' + | ||
'only top tasks and their child tasks.'), | ||
}, | ||
'sort-tasks': { | ||
type: 'boolean', | ||
default: undefined, // To detect if this cli option is specified. | ||
desc: ansi.gray( | ||
'Will sort top tasks of task dependency tree.'), | ||
}, | ||
color: { | ||
type: 'boolean', | ||
desc: ansi.gray( | ||
'Will force gulp and gulp plugins to display colors, ' + | ||
'even when no color support is detected.'), | ||
}, | ||
'no-color': { | ||
type: 'boolean', | ||
desc: ansi.gray( | ||
'Will force gulp and gulp plugins to not display colors, ' + | ||
'even when color support is detected.'), | ||
}, | ||
silent: { | ||
alias: 'S', | ||
type: 'boolean', | ||
default: undefined, // To detect if this cli option is specified. | ||
desc: ansi.gray( | ||
'Suppress all gulp logging.'), | ||
}, | ||
continue: { | ||
type: 'boolean', | ||
default: undefined, // To detect if this cli option is specified. | ||
desc: ansi.gray( | ||
'Continue execution of tasks upon failure.'), | ||
}, | ||
series: { | ||
type: 'boolean', | ||
default: undefined, // To detect if this cli option is specified. | ||
desc: ansi.gray( | ||
'Run tasks given on the CLI in series (the default is parallel).'), | ||
}, | ||
'log-level': { | ||
alias: 'L', | ||
// Type isn't needed because count acts as a boolean | ||
count: true, | ||
default: undefined, // To detect if this cli option is specified. | ||
desc: ansi.gray( | ||
'Set the loglevel. -L for least verbose and -LLLL for most verbose. ' + | ||
'-LLL is default.'), | ||
}, | ||
}; |
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
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
Oops, something went wrong.