create-done-coding 0.11.24 → 0.11.26-alpha.0
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 +11 -2
- package/es/cli.mjs +1 -1
- package/es/{index-16ca177d.js → index-4f7f06f3.js} +2 -2
- package/es/index.mjs +1 -1
- package/package.json +7 -7
- package/types/index.d.ts +1 -14
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://
|
|
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
|
@@ -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.
|
|
9
|
+
version: "0.11.26-alpha.0",
|
|
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.
|
|
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-
|
|
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-4f7f06f3.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": "create-done-coding",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.26-alpha.0",
|
|
4
4
|
"description": "项目创建命令行工具",
|
|
5
5
|
"module": "es/index.mjs",
|
|
6
6
|
"type": "module",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"repository": {
|
|
28
28
|
"type": "git",
|
|
29
|
-
"url": "https://
|
|
29
|
+
"url": "https://github.com/done-coding/done-coding-cli.git",
|
|
30
30
|
"directory": "packages/create"
|
|
31
31
|
},
|
|
32
32
|
"publishConfig": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"license": "MIT",
|
|
38
38
|
"sideEffects": false,
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@done-coding/cli-inject": "0.5.
|
|
40
|
+
"@done-coding/cli-inject": "0.5.23",
|
|
41
41
|
"@types/node": "^18.0.0",
|
|
42
42
|
"@types/yargs": "^17.0.28",
|
|
43
43
|
"typescript": "^5.8.3",
|
|
@@ -45,12 +45,12 @@
|
|
|
45
45
|
"vite-plugin-dts": "^3.6.0"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@done-coding/cli-git": "0.6.
|
|
49
|
-
"@done-coding/cli-template": "0.8.
|
|
50
|
-
"@done-coding/cli-utils": "0.8.
|
|
48
|
+
"@done-coding/cli-git": "0.6.15",
|
|
49
|
+
"@done-coding/cli-template": "0.8.10",
|
|
50
|
+
"@done-coding/cli-utils": "0.8.4"
|
|
51
51
|
},
|
|
52
52
|
"engines": {
|
|
53
53
|
"node": ">=18.0.0"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "d82a176b550e6da106b93d811f16789ef2f142b4"
|
|
56
56
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { CliHandlerArgv } from '@done-coding/cli-utils';
|
|
2
2
|
import { CliInfo } from '@done-coding/cli-utils';
|
|
3
3
|
import { CommandModule } from 'yargs';
|
|
4
|
-
import { McpCommonToolParams } from '@done-coding/mcp-utils';
|
|
5
4
|
import type { SubCliInfo } from '@done-coding/cli-utils';
|
|
6
5
|
|
|
7
6
|
export declare const commandCliInfo: Omit<CliInfo, "usage">;
|
|
@@ -121,7 +120,7 @@ export declare const handler: (command: SubcommandEnum, argv: CliHandlerArgv<any
|
|
|
121
120
|
|
|
122
121
|
export declare const injectInfo: {
|
|
123
122
|
"name": "create-done-coding",
|
|
124
|
-
"version": "0.11.
|
|
123
|
+
"version": "0.11.26-alpha.0",
|
|
125
124
|
"description": "项目创建命令行工具",
|
|
126
125
|
"bin": {
|
|
127
126
|
"create-done-coding": "es/cli.mjs"
|
|
@@ -132,18 +131,6 @@ export declare const injectInfo: {
|
|
|
132
131
|
}
|
|
133
132
|
};
|
|
134
133
|
|
|
135
|
-
/**
|
|
136
|
-
* mcp项目创建工具参数
|
|
137
|
-
*/
|
|
138
|
-
export declare interface McpCreateToolParams extends McpCommonToolParams {
|
|
139
|
-
/** 项目名称 */
|
|
140
|
-
[FormNameEnum.PROJECT_NAME]: string;
|
|
141
|
-
/** 模板仓库地址 */
|
|
142
|
-
[FormNameEnum.TEMPLATE_GIT_PATH]: string;
|
|
143
|
-
/** 模板仓库分支 */
|
|
144
|
-
[FormNameEnum.TEMPLATE_GIT_BRANCH]?: string;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
134
|
export declare enum SubcommandEnum {
|
|
148
135
|
CREATE = "create"
|
|
149
136
|
}
|