create-unibest 3.0.7 → 3.0.9

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.
Files changed (3) hide show
  1. package/README.md +17 -5
  2. package/dist/index.js +12 -7
  3. 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
- best new my-project
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
- pnpm create unibest@latest new my-project
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
@@ -387,7 +387,7 @@ ${content}`;
387
387
  writeFileSync2(mainTsPath, content);
388
388
  }
389
389
  async function updateUniScss(projectPath, importCode) {
390
- const uniScssPath = join4(projectPath, "src", "style", "uni.scss");
390
+ const uniScssPath = join4(projectPath, "src", "uni.scss");
391
391
  if (!existsSync2(uniScssPath)) {
392
392
  const altPath = join4(projectPath, "uni.scss");
393
393
  if (existsSync2(altPath)) {
@@ -611,7 +611,7 @@ async function generateProject(options) {
611
611
  }
612
612
 
613
613
  // package.json
614
- var version = "3.0.7";
614
+ var version = "3.0.9";
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 \u5F97\u5230\u5168\u5C40 best \u547D\u4EE4"));
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 \u521B\u5EFA\u65B0\u7684unibest\u9879\u76EE"));
690
- console.log(color.green(" best -v \u67E5\u770B\u7248\u672C\u4FE1\u606F"));
691
- console.log(color.green(" best -h \u67E5\u770B\u5E2E\u52A9\u4FE1\u606F"));
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 new my-project"));
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
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-unibest",
3
3
  "type": "module",
4
- "version": "3.0.7",
4
+ "version": "3.0.9",
5
5
  "description": "快速创建unibest项目的脚手架工具",
6
6
  "author": "",
7
7
  "license": "ISC",