UNPKG

805 BJavaScriptView Raw
1module.exports = {
2 prompts: {
3 name: {
4 message: 'Project name',
5 default: ':folderName:'
6 },
7 description: {
8 message: 'Project description',
9 default: `My PWA App`
10 }
11 },
12
13 move: {
14 'gitignore': '.gitignore'
15 },
16
17 post ({ yarnInstall, gitInit, chalk, pm, isNewFolder, folderName }) {
18 gitInit()
19
20 yarnInstall()
21
22 const cd = () => {
23 if (isNewFolder) {
24 console.log(` ${chalk.cyan('cd')} ${folderName}`)
25 }
26 }
27
28 console.log()
29 console.log(chalk.bold(` To get started:\n`))
30 cd()
31 console.log(` ${chalk.cyan(pm)} run dev\n`)
32 console.log(chalk.bold(` To build for production:\n`))
33 cd()
34 console.log(` ${chalk.cyan(pm)} run build`)
35 console.log(` ${chalk.cyan(pm)} start`)
36 console.log()
37 }
38}