-
-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
60 additions
and
47 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,70 +1,78 @@ | ||
'use strict'; | ||
|
||
var chalk = require('chalk'); | ||
|
||
module.exports = { | ||
help: { | ||
alias: 'h', | ||
type: 'boolean', | ||
desc: chalk.grey( | ||
'Show this help.'), | ||
}, | ||
version: { | ||
abbr: 'v', | ||
flag: true, | ||
help: 'Print the global and local gulp versions.', | ||
alias: 'v', | ||
type: 'boolean', | ||
desc: chalk.gray( | ||
'Print the global and local gulp versions.'), | ||
}, | ||
require: { | ||
list: true, | ||
metavar: '<module path>', | ||
help: | ||
type: 'string', | ||
requiresArg: true, | ||
desc: chalk.gray( | ||
'Will require a module before running the gulpfile. ' + | ||
'This is useful for transpilers but also has other applications.', | ||
'This is useful for transpilers but also has other applications.'), | ||
}, | ||
gulpfile: { | ||
metavar: '<gulpfile path>', | ||
help: | ||
type: 'string', | ||
requiresArg: true, | ||
desc: chalk.gray( | ||
'Manually set path of gulpfile. Useful if you have multiple gulpfiles. ' + | ||
'This will set the CWD to the gulpfile directory as well.', | ||
'This will set the CWD to the gulpfile directory as well.'), | ||
}, | ||
cwd: { | ||
metavar: '<dir path>', | ||
help: | ||
type: 'string', | ||
requiresArg: true, | ||
desc: chalk.gray( | ||
'Manually set the CWD. The search for the gulpfile, ' + | ||
'as well as the relativity of all requires will be from here.', | ||
'as well as the relativity of all requires will be from here.'), | ||
}, | ||
verify: { | ||
metavar: '<package.json path>', | ||
flag: true, | ||
help: | ||
desc: chalk.gray( | ||
'Will verify plugins referenced in project\'s package.json against ' + | ||
'the plugins blacklist.', | ||
'the plugins blacklist.'), | ||
}, | ||
tasks: { | ||
full: 'tasks', | ||
abbr: 'T', | ||
flag: true, | ||
help: 'Print the task dependency tree for the loaded gulpfile.', | ||
alias: 'T', | ||
type: 'boolean', | ||
desc: chalk.gray( | ||
'Print the task dependency tree for the loaded gulpfile.'), | ||
}, | ||
tasksSimple: { | ||
full: 'tasks-simple', | ||
flag: true, | ||
help: 'Print a plaintext list of tasks for the loaded gulpfile.', | ||
'tasks-simple': { | ||
type: 'boolean', | ||
desc: chalk.gray( | ||
'Print a plaintext list of tasks for the loaded gulpfile.'), | ||
}, | ||
tasksJson: { | ||
full: 'tasks-json', | ||
flag: true, | ||
help: | ||
'tasks-json': { | ||
type: 'boolean', | ||
desc: chalk.gray( | ||
'Print the task dependency tree, ' + | ||
'in JSON format, for the loaded gulpfile.', | ||
'in JSON format, for the loaded gulpfile.'), | ||
}, | ||
color: { | ||
flag: true, | ||
help: | ||
type: 'boolean', | ||
desc: chalk.gray( | ||
'Will force gulp and gulp plugins to display colors, ' + | ||
'even when no color support is detected.', | ||
'even when no color support is detected.'), | ||
}, | ||
noColor: { | ||
full: 'no-color', | ||
flag: true, | ||
help: | ||
'no-color': { | ||
type: 'boolean', | ||
desc: chalk.gray( | ||
'Will force gulp and gulp plugins to not display colors, ' + | ||
'even when color support is detected.', | ||
'even when color support is detected.'), | ||
}, | ||
silent: { | ||
flag: true, | ||
help: 'Suppress all gulp logging.', | ||
type: 'boolean', | ||
desc: chalk.gray( | ||
'Suppress all gulp logging.'), | ||
}, | ||
}; |
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