| 14 | ); |
| 15 | |
| 16 | const webpackOptions = yargs => { |
| 17 | yargs.positional('config', { |
| 18 | describe: 'webpack configuration options', |
| 19 | type: 'string', |
| 20 | default: '{}', |
| 21 | }) |
| 22 | .positional('babel', { |
| 23 | describe: 'Babel configuration object', |
| 24 | type: 'string', |
| 25 | default: '{}', |
| 26 | }) |
| 27 | .positional('targets', { |
| 28 | describe: 'Browser targets in browserslist query', |
| 29 | type: 'string', |
| 30 | default: '> 0.25%, not dead', |
| 31 | }) |
| 32 | .positional('entry', { |
| 33 | describe: 'Library entry point', |
| 34 | type: 'string', |
| 35 | default: 'src/index', |
| 36 | }) |
| 37 | .positional('output', { |
| 38 | describe: 'Build destination directory', |
| 39 | type: 'string', |
| 40 | default: 'dist', |
| 41 | }) |
| 42 | } |
| 43 | |
| 44 | export const createCommands = (yargs) => { |
| 45 | return yargs |