Skip to content

Commit

Permalink
Manually bind this for gitInit and npmInstall
Browse files Browse the repository at this point in the history
  • Loading branch information
KsRyY committed Feb 12, 2020
1 parent 95834b2 commit 4d6e6d5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions saofile.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ module.exports = {
]
},
async completed() {
const { logger, gitInit, npmInstall, chalk, isNewFolder, folderName } = this
const { logger, gitInit, npmInstall, chalk, isNewFolder, outFolder } = this

gitInit()
await npmInstall()
gitInit.call(this)
await npmInstall.call(this)

logger.success(`Your new Vue project has been successfully generated in ${chalk.underline(folderName)}!`)
logger.success(`Your new Vue project has been successfully generated in ${chalk.underline(outFolder)}!`)
console.log()
console.log(chalk.bold(` To get started:\n`))
if (isNewFolder) console.log(` cd ${folderName}`)
console.log(` cd ${outFolder}`)
console.log(` yarn`)
console.log(` yarn dev\n`)
console.log(chalk.bold(` To build for production:\n`))
Expand Down

0 comments on commit 4d6e6d5

Please sign in to comment.