done-coding-create 0.11.24 → 0.11.25

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 CHANGED
@@ -8,6 +8,7 @@
8
8
  ## 安装
9
9
 
10
10
  ### 使用 npm create(推荐)
11
+
11
12
  ```bash
12
13
  npm create done-coding
13
14
  # 或指定项目名称
@@ -15,6 +16,7 @@ npm create done-coding my-project
15
16
  ```
16
17
 
17
18
  ### 使用 pnpm create
19
+
18
20
  ```bash
19
21
  pnpm create done-coding
20
22
  # 或指定项目名称
@@ -22,6 +24,7 @@ pnpm create done-coding my-project
22
24
  ```
23
25
 
24
26
  ### 作为 done-coding CLI 的一部分
27
+
25
28
  ```bash
26
29
  npm install -g @done-coding/cli
27
30
  # 然后使用
@@ -54,6 +57,7 @@ npm create done-coding my-project -- -c
54
57
  ### 基础命令
55
58
 
56
59
  #### `create-done-coding [projectName]`
60
+
57
61
  创建新项目
58
62
 
59
63
  ```bash
@@ -68,9 +72,11 @@ create-done-coding my-project -c
68
72
  ```
69
73
 
70
74
  **参数说明**:
75
+
71
76
  - `projectName`: 项目名称(可选)
72
77
 
73
78
  **选项说明**:
79
+
74
80
  - `-c, --justCloneFromDoneCoding`: 是否仅仅从 done-coding 系列项目列表中克隆远程仓库,默认为 `false`
75
81
 
76
82
  ## 使用示例
@@ -130,6 +136,7 @@ npm create done-coding my-project -- -c
130
136
  ### 常见问题
131
137
 
132
138
  **Q: 项目创建失败**
139
+
133
140
  ```bash
134
141
  # 检查网络连接
135
142
  ping registry.npmjs.org
@@ -142,6 +149,7 @@ npm cache clean --force
142
149
  ```
143
150
 
144
151
  **Q: Git 克隆失败**
152
+
145
153
  ```bash
146
154
  # 检查 Git 是否安装
147
155
  git --version
@@ -154,6 +162,7 @@ create-done-coding my-project --verbose
154
162
  ```
155
163
 
156
164
  **Q: 权限错误**
165
+
157
166
  ```bash
158
167
  # 检查目录权限
159
168
  ls -la .
@@ -187,7 +196,7 @@ create-done-coding --help
187
196
 
188
197
  ```bash
189
198
  # 克隆仓库
190
- git clone https://gitee.com/done-coding/done-coding-cli.git
199
+ git clone https://github.com/done-coding/done-coding-cli.git
191
200
  cd done-coding-cli/packages/create
192
201
 
193
202
  # 安装依赖
@@ -217,4 +226,4 @@ MIT © [JustSoSu](https://gitee.com/done-coding)
217
226
  - [模板处理工具](https://www.npmjs.com/package/@done-coding/cli-template) - 本包依赖的模板引擎
218
227
  - [信息注入工具](https://www.npmjs.com/package/@done-coding/cli-inject) - 本包依赖的信息注入功能
219
228
  - [Gitee 仓库](https://gitee.com/done-coding/done-coding-cli)
220
- - [更新日志](./CHANGELOG.md)
229
+ - [更新日志](./CHANGELOG.md)
package/es/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { c as m } from "./index-16ca177d.js";
2
+ import { c as m } from "./index-cb50bb18.js";
3
3
  import "@done-coding/cli-utils";
4
4
  import "node:fs";
5
5
  import "node:path";
@@ -6,7 +6,7 @@ import { getConfigPath as zo, batchCompileHandler as Vo, MODULE_DEFAULT_CONFIG_R
6
6
  import { getTargetRepoUrl as Qo } from "@done-coding/cli-git";
7
7
  const ie = {
8
8
  name: "create-done-coding",
9
- version: "0.11.24",
9
+ version: "0.11.25",
10
10
  description: "项目创建命令行工具",
11
11
  bin: {
12
12
  "create-done-coding": "es/cli.mjs"
@@ -3607,7 +3607,7 @@ const lp = 3e4, Kn = Math.random(), Ro = {
3607
3607
  }
3608
3608
  }), tn = {
3609
3609
  name: "@done-coding/cli-git",
3610
- version: "0.6.14",
3610
+ version: "0.6.15",
3611
3611
  description: "git跨平台操作命令行工具",
3612
3612
  bin: {
3613
3613
  "dc-git": "es/cli.mjs"
package/es/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { F as s, G as t, S as d, e as c, a as p, b as u, h as l, d as b, i as f } from "./index-16ca177d.js";
2
+ import { F as s, G as t, S as d, e as c, a as p, b as u, h as l, d as b, i as f } from "./index-cb50bb18.js";
3
3
  import "@done-coding/cli-utils";
4
4
  import "node:fs";
5
5
  import "node:path";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "done-coding-create",
3
- "version": "0.11.24",
3
+ "version": "0.11.25",
4
4
  "description": "项目创建命令行工具",
5
5
  "module": "es/index.mjs",
6
6
  "type": "module",
@@ -19,7 +19,7 @@
19
19
  ],
20
20
  "repository": {
21
21
  "type": "git",
22
- "url": "https://gitee.com/done-coding/done-coding-cli.git",
22
+ "url": "https://github.com/done-coding/done-coding-cli.git",
23
23
  "directory": "packages/create"
24
24
  },
25
25
  "publishConfig": {
@@ -30,7 +30,7 @@
30
30
  "license": "MIT",
31
31
  "sideEffects": false,
32
32
  "devDependencies": {
33
- "@done-coding/cli-inject": "0.5.22",
33
+ "@done-coding/cli-inject": "0.5.23",
34
34
  "@types/node": "^18.0.0",
35
35
  "@types/yargs": "^17.0.28",
36
36
  "typescript": "^5.8.3",
@@ -38,13 +38,13 @@
38
38
  "vite-plugin-dts": "^3.6.0"
39
39
  },
40
40
  "dependencies": {
41
- "@done-coding/cli-git": "0.6.14",
42
- "@done-coding/cli-template": "0.8.9",
43
- "@done-coding/cli-utils": "0.8.3"
41
+ "@done-coding/cli-git": "0.6.15",
42
+ "@done-coding/cli-template": "0.8.10",
43
+ "@done-coding/cli-utils": "0.8.4"
44
44
  },
45
45
  "engines": {
46
46
  "node": ">=18.0.0"
47
47
  },
48
- "gitHead": "4893b466954ef5925151d8dfc8fc8aa558ce654c",
48
+ "gitHead": "d90f437c0a716f3e62bd92a221341838710869ad",
49
49
  "scripts": {}
50
50
  }
package/types/index.d.ts CHANGED
@@ -121,7 +121,7 @@ export declare const handler: (command: SubcommandEnum, argv: CliHandlerArgv<any
121
121
 
122
122
  export declare const injectInfo: {
123
123
  "name": "create-done-coding",
124
- "version": "0.11.24",
124
+ "version": "0.11.25",
125
125
  "description": "项目创建命令行工具",
126
126
  "bin": {
127
127
  "create-done-coding": "es/cli.mjs"