Skip to content

Commit 3f76284

Browse files
committed
fix cli
1 parent 91c78af commit 3f76284

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

template/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
"blueimp-md5": "^2.7.0",
2222
"normalize.css": "^7.0.0",
2323
"qs": "^6.5.0",
24-
"vee-validate": "^2.0.0-rc.6",
2524
"vue": "^2.3.4",
2625
"vue-router": "^2.7.0",
2726
"vue-svgicon": "^1.2.0",

template/tools/cli.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ yargs.command(['add <componentPath>', 'a'], 'Add a component to project', {
2424
alias: 't',
2525
describe: 'The component type'
2626
},
27-
path: {
28-
alias: 'p',
29-
describe: 'The target path',
27+
root: {
28+
alias: 'r',
29+
describe: 'The component root path',
3030
default: 'src/components'
3131
},
3232
help: {
@@ -45,7 +45,7 @@ yargs.command(['add <componentPath>', 'a'], 'Add a component to project', {
4545
}
4646
}
4747

48-
componentPath = path.join(__dirname,'../' + args.path, componentPath)
48+
componentPath = path.join(__dirname,'../' + args.root, componentPath)
4949

5050
generate(type, componentPath, {
5151
type: type,

0 commit comments

Comments
 (0)