diff --git a/index.js b/index.js index 2ffbc27..804ff53 100755 --- a/index.js +++ b/index.js @@ -109,6 +109,7 @@ function printHelp() { } console.log(cyan('\n初始化项目...')) + console.log('[c---------]', '10%') fs.mkdir(join(targetDir, 'apps')) fs.mkdir(join(targetDir, 'models')) @@ -117,7 +118,7 @@ function printHelp() { fs.mkdir(join(targetDir, 'public')) fs.mkdir(join(targetDir, 'views')) - console.log('[c---------]', '10%') + console.log('[ooc-------]', '30%') writePackageJson(join(targetDir, 'package.json'), res.projectName) writeGitIgnore(join(targetDir, '.gitignore')) @@ -132,8 +133,6 @@ function printHelp() { cluster: false }) - console.log('[ooc-------]', '30%') - console.log('[oooooc----]', '60%') writeMainJs(join(targetDir, 'app.js')) @@ -142,9 +141,11 @@ function printHelp() { console.log('[oooooooooo]', '100%') console.log(cyan('初始化完成, 可依次执行以下命令启动项目: ')) + console.log(blue('cd ' + res.projectName)) console.log(blue('npm i')) console.log(blue('pm2 start app.dev.yaml'), gray('# 开发模式')) console.log(blue('pm2 start app.yaml'), gray('# 生产模式')) + console.log('访问地址: ', cyan('http://127.0.0.1:3000')) break } diff --git a/package.json b/package.json index 1898884..622c170 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "create-five", "description": "一个快速创建Five.js项目的小工具", "type": "module", - "version": "1.0.1", + "version": "1.0.2", "author": "yutent ", "bin": { "create-five": "index.js"