Skip to content

Commit edbd2f5

Browse files
committed
fix(alita): 修复win平台下 控制台黑色背景 提示信息看不见的bug
1 parent c3e9ed5 commit edbd2f5

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/util/initProject.ts

+8-3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ import * as path from 'path'
1010
import fse from 'fs-extra'
1111
import child_process from 'child_process'
1212

13+
import * as chalk from 'chalk'
14+
15+
import configure from '../configure'
16+
1317

1418
export default function initProject(operands, typescript) {
1519
console.log(`alita init ${typescript ? 'typescript': ''} ...`.info)
@@ -52,7 +56,8 @@ export default function initProject(operands, typescript) {
5256
})
5357
}
5458

55-
console.log(' Run instructions for 小程序:'.blue)
56-
console.log(` • cd ${projectName}`.black)
57-
console.log(` • alita --dev (--dev 指定开发者模式)`.black)
59+
console.log(`${chalk.blue(`Run instructions for ${chalk.bold('小程序')}`)}:
60+
• alita --dev [--dev 指定开发模式].
61+
• 微信开发者工具从 ${configure.outputFullpath} 导入项目
62+
`)
5863
}

0 commit comments

Comments
 (0)