UNPKG

356 BJavaScriptView Raw
1const path = require('path')
2
3module.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}