From 46a90a6950eb33d108e4f92ed20443df14d3fc95 Mon Sep 17 00:00:00 2001 From: yutent Date: Fri, 21 Oct 2022 11:59:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Readme.md | 14 ++++++++++++++ index.js | 6 +++--- 2 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 Readme.md diff --git a/Readme.md b/Readme.md new file mode 100644 index 0000000..3dc9b3f --- /dev/null +++ b/Readme.md @@ -0,0 +1,14 @@ +# create-vue-live +一个快速创建vue-live项目的小工具 + + +### 使用方式 + +```bash +npm create vue-live + +# 或者 +npm create vue-live@latest +``` + +注意: `@latest`可以确保你初始化的`vue-live`配置是最新的。 \ No newline at end of file diff --git a/index.js b/index.js index 2fa3bc5..06a9780 100755 --- a/index.js +++ b/index.js @@ -5,7 +5,7 @@ * @date 2022/10/10 15:17:36 */ -import { red, cyan } from 'kolorist' +import { red, cyan, blue } from 'kolorist' import prompts from 'prompts' import fs from 'iofs' import { resolve, join, dirname } from 'path' @@ -147,8 +147,8 @@ function printHelp() { console.log('[oooooooooo]', '100%') console.log(cyan('初始化完成, 可依次执行以下命令启动项目: ')) - console.log('npm i') - console.log('npm start') + console.log(blue('npm i')) + console.log(blue('npm start')) break }