1 | const { path } = require('sherry-utils')
|
2 |
|
3 | module.exports = {
|
4 | templateDir: '.',
|
5 | actions: [
|
6 | {
|
7 | type: 'add',
|
8 | files: '**'
|
9 | }
|
10 | ],
|
11 | async completed() {
|
12 | await this.gitInit()
|
13 | const pkgPath = path.join(this.outDir, 'package.json')
|
14 | if (await this.fs.pathExists(pkgPath)) {
|
15 | await this.npmInstall()
|
16 | }
|
17 | this.showProjectTips()
|
18 | }
|
19 | }
|