done-coding-create 0.11.8-alpha.0 → 0.11.9-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/es/cli.mjs +1 -1
- package/es/{index-098cffcb.js → index-b1c4cc2f.js} +2 -2
- package/es/index.mjs +1 -1
- package/package.json +6 -6
- package/types/cli.d.ts +1 -2
- package/types/index.d.ts +34 -3
- package/types/handler.d.ts +0 -3
- package/types/injectInfo.json.d.ts +0 -11
- package/types/main.d.ts +0 -9
- package/types/types/index.d.ts +0 -22
- package/types/utils/const.d.ts +0 -4
- package/types/utils/index.d.ts +0 -2
- package/types/utils/question.d.ts +0 -24
package/es/cli.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import { getConfigPath as Do, batchCompileHandler as Lo, MODULE_DEFAULT_CONFIG_R
|
|
|
7
7
|
import { getTargetRepoUrl as Mo } from "@done-coding/cli-git";
|
|
8
8
|
const Gn = "自定义模版路径", qn = "某个git平台用户仓库", St = {
|
|
9
9
|
name: "create-done-coding",
|
|
10
|
-
version: "0.11.
|
|
10
|
+
version: "0.11.9-alpha.0",
|
|
11
11
|
description: "项目创建命令行工具",
|
|
12
12
|
cliConfig: {
|
|
13
13
|
namespaceDir: ".done-coding",
|
|
@@ -3568,7 +3568,7 @@ const Jf = 3e4, In = Math.random(), po = {
|
|
|
3568
3568
|
}
|
|
3569
3569
|
}), go = {
|
|
3570
3570
|
name: "@done-coding/cli-git",
|
|
3571
|
-
version: "0.6.
|
|
3571
|
+
version: "0.6.2-alpha.0",
|
|
3572
3572
|
description: "git跨平台操作命令行工具",
|
|
3573
3573
|
cliConfig: {
|
|
3574
3574
|
namespaceDir: ".done-coding",
|
package/es/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "done-coding-create",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.9-alpha.0",
|
|
4
4
|
"description": "项目创建命令行工具",
|
|
5
5
|
"module": "es/index.mjs",
|
|
6
6
|
"type": "module",
|
|
@@ -40,11 +40,11 @@
|
|
|
40
40
|
"node": ">=18.0.0"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@done-coding/cli-git": "^0.6.
|
|
44
|
-
"@done-coding/cli-inject": "^0.5.
|
|
45
|
-
"@done-coding/cli-template": "^0.7.
|
|
46
|
-
"@done-coding/cli-utils": "^0.7.0"
|
|
43
|
+
"@done-coding/cli-git": "^0.6.2-alpha.0",
|
|
44
|
+
"@done-coding/cli-inject": "^0.5.10-alpha.0",
|
|
45
|
+
"@done-coding/cli-template": "^0.7.10-alpha.0",
|
|
46
|
+
"@done-coding/cli-utils": "^0.7.1-alpha.0"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "3376f5fbbf8b87c791316e76df06028afd650e08",
|
|
49
49
|
"scripts": {}
|
|
50
50
|
}
|
package/types/cli.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export {};
|
|
1
|
+
export { }
|
package/types/index.d.ts
CHANGED
|
@@ -1,3 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import type { CliHandlerArgv } from '@done-coding/cli-utils';
|
|
2
|
+
import { CommandModule } from 'yargs';
|
|
3
|
+
|
|
4
|
+
/** 作为子命令创建 */
|
|
5
|
+
export declare const crateAsSubcommand: () => CommandModule<{}, {}>;
|
|
6
|
+
|
|
7
|
+
export declare interface CreateConfigJson {
|
|
8
|
+
templateList: CreateTemplateChoiceItem[];
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/** 模版选项 */
|
|
12
|
+
export declare interface CreateTemplateChoiceItem {
|
|
13
|
+
/** 模板名 */
|
|
14
|
+
name: string;
|
|
15
|
+
/** 仓库地址 */
|
|
16
|
+
url?: string;
|
|
17
|
+
/** 描述 */
|
|
18
|
+
description?: string;
|
|
19
|
+
/** 目标分支 */
|
|
20
|
+
branch?: string;
|
|
21
|
+
/** 应用实例 */
|
|
22
|
+
instances?: string[];
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export declare const handler: (argv: CliHandlerArgv<Options>) => Promise<undefined>;
|
|
26
|
+
|
|
27
|
+
export declare interface Options {
|
|
28
|
+
/** 项目名称 */
|
|
29
|
+
projectName?: string;
|
|
30
|
+
/** 是否仅仅(从done-coding系列项目列表中)克隆远程仓库 */
|
|
31
|
+
justCloneFromDoneCoding?: boolean;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export { }
|
package/types/handler.d.ts
DELETED
package/types/main.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="yargs" />
|
|
2
|
-
/** 作为主命令创建 */
|
|
3
|
-
export declare const createCommand: () => Promise<void | {
|
|
4
|
-
[x: string]: unknown;
|
|
5
|
-
_: (string | number)[];
|
|
6
|
-
$0: string;
|
|
7
|
-
}>;
|
|
8
|
-
/** 作为子命令创建 */
|
|
9
|
-
export declare const crateAsSubcommand: () => import("yargs").CommandModule<{}, {}>;
|
package/types/types/index.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export interface Options {
|
|
2
|
-
/** 项目名称 */
|
|
3
|
-
projectName?: string;
|
|
4
|
-
/** 是否仅仅(从done-coding系列项目列表中)克隆远程仓库 */
|
|
5
|
-
justCloneFromDoneCoding?: boolean;
|
|
6
|
-
}
|
|
7
|
-
/** 模版选项 */
|
|
8
|
-
export interface CreateTemplateChoiceItem {
|
|
9
|
-
/** 模板名 */
|
|
10
|
-
name: string;
|
|
11
|
-
/** 仓库地址 */
|
|
12
|
-
url?: string;
|
|
13
|
-
/** 描述 */
|
|
14
|
-
description?: string;
|
|
15
|
-
/** 目标分支 */
|
|
16
|
-
branch?: string;
|
|
17
|
-
/** 应用实例 */
|
|
18
|
-
instances?: string[];
|
|
19
|
-
}
|
|
20
|
-
export interface CreateConfigJson {
|
|
21
|
-
templateList: CreateTemplateChoiceItem[];
|
|
22
|
-
}
|
package/types/utils/const.d.ts
DELETED
package/types/utils/index.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { type PromptObject } from "@done-coding/cli-utils";
|
|
2
|
-
import type { CreateTemplateChoiceItem } from '../types';
|
|
3
|
-
/** 获取模版选项 */
|
|
4
|
-
export declare const getTemplateList: () => Promise<CreateTemplateChoiceItem[]>;
|
|
5
|
-
/** 模版选项 */
|
|
6
|
-
export declare const getTemplateChoices: () => Promise<CreateTemplateChoiceItem[]>;
|
|
7
|
-
export declare const projectNameForm: PromptObject<string>;
|
|
8
|
-
export declare const getTemplateForm: () => Promise<PromptObject<string>>;
|
|
9
|
-
export declare const saveGitHistoryForm: {
|
|
10
|
-
type: "confirm";
|
|
11
|
-
name: string;
|
|
12
|
-
message: string;
|
|
13
|
-
initial: boolean;
|
|
14
|
-
};
|
|
15
|
-
/** 获取删除目录的表单 */
|
|
16
|
-
export declare const getRemoveDirForm: (message?: string) => {
|
|
17
|
-
type: "confirm";
|
|
18
|
-
name: string;
|
|
19
|
-
message: string;
|
|
20
|
-
};
|
|
21
|
-
/** 自定义模板路径表单 */
|
|
22
|
-
export declare const customUrlForm: PromptObject<string>;
|
|
23
|
-
/** 获取git提交信息表单 */
|
|
24
|
-
export declare const getGitCommitMessageForm: (projectName: string) => PromptObject<string>;
|