Skip to content

Commit 80cf508

Browse files
committed
tweaks
1 parent b3918b0 commit 80cf508

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

cli.js

100644100755
+1-3
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,8 @@ cli.command('*', 'Generate a new project', input => {
1212
const targetPath = path.resolve(folderName)
1313
console.log(`> Generating project in ${targetPath}`)
1414

15-
const templatePath = path.dirname(require.resolve('template-vue/package'))
16-
1715
return sao({
18-
template: templatePath,
16+
template: __dirname,
1917
targetPath
2018
})
2119
})

package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77
"ava": "ava test/test.js",
88
"lint": "xo"
99
},
10-
"bin": "cli.js",
10+
"bin": {
11+
"cva": "cli.js",
12+
"create-vue-app": "cli.js"
13+
},
1114
"files": [
1215
"sao.js",
1316
"cli.js",

0 commit comments

Comments
 (0)