UNPKG

1.47 kBJavaScriptView Raw
1"use strict";
2/**
3 * Created by user on 2019/5/16.
4 */
5Object.defineProperty(exports, "__esModule", { value: true });
6exports.setupToYargs = void 0;
7function setupToYargs(yargs) {
8 return yargs
9 .default({
10 //input: process.cwd(),
11 })
12 .option('npmClient', {
13 alias: ['N'],
14 requiresArg: true,
15 normalize: true,
16 description: 'npm, yarn, ...etc',
17 default: 'npm',
18 type: 'string',
19 })
20 .option('yes', {
21 alias: ['y', 'silent'],
22 // requiresArg: true,
23 // default: 'npm',
24 type: 'boolean',
25 })
26 .option('cwd', {
27 alias: ['C'],
28 requiresArg: true,
29 normalize: true,
30 // default: process.cwd(),
31 defaultDescription: process.cwd(),
32 type: 'string',
33 })
34 .option('skipCheckWorkspace', {
35 alias: ['W'],
36 type: 'boolean',
37 })
38 .option('force', {
39 alias: ['f'],
40 type: 'boolean',
41 })
42 .option('sort', {
43 type: 'boolean',
44 default: true,
45 })
46 .option('private', {
47 alias: ['p'],
48 type: 'boolean',
49 })
50 .option('createModule', {
51 alias: ['m'],
52 type: 'string',
53 })
54 .option('name', {
55 type: 'string',
56 })
57 .option('copyStatic', {
58 type: 'boolean',
59 });
60}
61exports.setupToYargs = setupToYargs;
62exports.default = setupToYargs;
63//# sourceMappingURL=yargs-setting.js.map
\No newline at end of file