create-unibest 3.0.7 → 3.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -5
- package/dist/index.js +11 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -15,15 +15,27 @@
|
|
|
15
15
|
|
|
16
16
|
## 🚤 快速使用
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
### 全局安装
|
|
19
19
|
|
|
20
20
|
```shell
|
|
21
|
-
npm i -g create-unibest
|
|
22
|
-
|
|
21
|
+
npm i -g create-unibest # 全局安装,得到 best 命令
|
|
22
|
+
npm update -g create-unibest # 更新 create-unibest 包
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
安装后可使用的命令:
|
|
26
26
|
|
|
27
27
|
```shell
|
|
28
|
-
|
|
28
|
+
best <command> [options] # 基本命令格式
|
|
29
|
+
best new my-project # 创建新的unibest项目
|
|
30
|
+
best -v # 查看版本信息
|
|
31
|
+
best -h # 查看帮助信息
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### 临时使用
|
|
35
|
+
|
|
36
|
+
```shell
|
|
37
|
+
pnpm create unibest <command> [options] # 基本命令格式
|
|
38
|
+
pnpm create unibest new my-project # 创建新的unibest项目
|
|
39
|
+
pnpm create unibest -v # 查看版本信息
|
|
40
|
+
pnpm create unibest -h # 查看帮助信息
|
|
29
41
|
```
|
package/dist/index.js
CHANGED
|
@@ -611,7 +611,7 @@ async function generateProject(options) {
|
|
|
611
611
|
}
|
|
612
612
|
|
|
613
613
|
// package.json
|
|
614
|
-
var version = "3.0.
|
|
614
|
+
var version = "3.0.8";
|
|
615
615
|
|
|
616
616
|
// src/commands/create.ts
|
|
617
617
|
import { intro, log } from "@clack/prompts";
|
|
@@ -684,15 +684,20 @@ function printHelp() {
|
|
|
684
684
|
console.log(color.green("\ncreate-unibest - \u8DE8\u5E73\u53F0\u5F00\u53D1\u6846\u67B6\u811A\u624B\u67B6"));
|
|
685
685
|
console.log("");
|
|
686
686
|
console.log(color.blue("\u5168\u5C40\u5B89\u88C5:"));
|
|
687
|
-
console.log(color.green(" npm i -g create-unibest
|
|
687
|
+
console.log(color.green(" npm i -g create-unibest \u5168\u5C40\u5B89\u88C5\uFF0C\u5F97\u5230 best \u547D\u4EE4"));
|
|
688
|
+
console.log(color.green(" npm update -g create-unibest \u66F4\u65B0 create-unibest \u5305"));
|
|
689
|
+
console.log("");
|
|
688
690
|
console.log(color.green(" best <command> [options]"));
|
|
689
|
-
console.log(color.green(" best new my-project
|
|
690
|
-
console.log(color.green(" best -v
|
|
691
|
-
console.log(color.green(" best -h
|
|
691
|
+
console.log(color.green(" best new my-project \u521B\u5EFA\u65B0\u7684unibest\u9879\u76EE"));
|
|
692
|
+
console.log(color.green(" best -v \u67E5\u770B\u7248\u672C\u4FE1\u606F"));
|
|
693
|
+
console.log(color.green(" best -h \u67E5\u770B\u5E2E\u52A9\u4FE1\u606F"));
|
|
692
694
|
console.log("");
|
|
693
695
|
console.log("");
|
|
694
696
|
console.log(color.blue("\u4E34\u65F6\u4F7F\u7528:"));
|
|
695
|
-
console.log(color.green(" pnpm create unibest
|
|
697
|
+
console.log(color.green(" pnpm create unibest <command> [options]"));
|
|
698
|
+
console.log(color.green(" pnpm create unibest new my-project \u521B\u5EFA\u65B0\u7684unibest\u9879\u76EE"));
|
|
699
|
+
console.log(color.green(" pnpm create unibest -v \u67E5\u770B\u7248\u672C\u4FE1\u606F"));
|
|
700
|
+
console.log(color.green(" pnpm create unibest -h \u67E5\u770B\u5E2E\u52A9\u4FE1\u606F"));
|
|
696
701
|
console.log("");
|
|
697
702
|
}
|
|
698
703
|
|