UNPKG

606 BJavaScriptView Raw
1/*
2 * Maps command name to a command plugin module. Each command plugin module
3 * must export a function that takes (documentation, parsedArgs), where
4 * documentation is just the main module (index.js), and parsedArgs is
5 * { inputs, options, command, commandOptions }
6 *
7 * Command modules should also export a `description`, which will be used in
8 * the main CLI help, and optionally a `parseArgs(yargs, parentArgv)` function
9 * to parse additional arguments.
10 */
11
12module.exports = {
13 build: require('./build'),
14 serve: require('./serve'),
15 lint: require('./lint'),
16 readme: require('./readme')
17};