done-coding-create 0.11.9 → 0.11.11-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/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { a as n, h as s } from "./index-890cd24a.js";
2
+ import { S as d, e as s, a as p, b as c, h as b, d as l } from "./index-58837c82.js";
3
3
  import "@done-coding/cli-utils";
4
4
  import "node:child_process";
5
5
  import "node:fs";
@@ -7,6 +7,10 @@ import "node:path";
7
7
  import "@done-coding/cli-template";
8
8
  import "@done-coding/cli-git";
9
9
  export {
10
- n as crateAsSubcommand,
11
- s as handler
10
+ d as SubcommandEnum,
11
+ s as commandCliInfo,
12
+ p as crateAsSubcommand,
13
+ c as createCommandCliInfo,
14
+ b as createHandler,
15
+ l as handler
12
16
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "done-coding-create",
3
- "version": "0.11.9",
3
+ "version": "0.11.11-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.2",
44
- "@done-coding/cli-inject": "^0.5.10",
45
- "@done-coding/cli-template": "^0.7.10",
46
- "@done-coding/cli-utils": "^0.7.1"
43
+ "@done-coding/cli-git": "^0.6.4-alpha.0",
44
+ "@done-coding/cli-inject": "^0.5.12-alpha.0",
45
+ "@done-coding/cli-template": "^0.7.12-alpha.0",
46
+ "@done-coding/cli-utils": "^0.7.3-alpha.0"
47
47
  },
48
- "gitHead": "299ab3991d6842c83d65816dfba6efd175aa885a",
48
+ "gitHead": "9d9a2e60f255038a0f065e3a4e6d6d35488408ae",
49
49
  "scripts": {}
50
50
  }
package/types/index.d.ts CHANGED
@@ -1,13 +1,28 @@
1
- import type { CliHandlerArgv } from '@done-coding/cli-utils';
1
+ import { CliHandlerArgv } from '@done-coding/cli-utils';
2
+ import { CliInfo } from '@done-coding/cli-utils';
2
3
  import { CommandModule } from 'yargs';
4
+ import type { SubCliInfo } from '@done-coding/cli-utils';
5
+
6
+ export declare const commandCliInfo: Omit<CliInfo, "usage">;
3
7
 
4
8
  /** 作为子命令创建 */
5
9
  export declare const crateAsSubcommand: () => CommandModule<{}, {}>;
6
10
 
11
+ export declare const createCommandCliInfo: SubCliInfo;
12
+
7
13
  export declare interface CreateConfigJson {
8
14
  templateList: CreateTemplateChoiceItem[];
9
15
  }
10
16
 
17
+ export declare const createHandler: (argv: CliHandlerArgv<CreateOptions>) => Promise<undefined>;
18
+
19
+ export declare interface CreateOptions {
20
+ /** 项目名称 */
21
+ projectName?: string;
22
+ /** 是否仅仅(从done-coding系列项目列表中)克隆远程仓库 */
23
+ justCloneFromDoneCoding?: boolean;
24
+ }
25
+
11
26
  /** 模版选项 */
12
27
  export declare interface CreateTemplateChoiceItem {
13
28
  /** 模板名 */
@@ -22,13 +37,10 @@ export declare interface CreateTemplateChoiceItem {
22
37
  instances?: string[];
23
38
  }
24
39
 
25
- export declare const handler: (argv: CliHandlerArgv<Options>) => Promise<undefined>;
40
+ export declare const handler: (command: SubcommandEnum, argv: CliHandlerArgv<any>) => Promise<undefined>;
26
41
 
27
- export declare interface Options {
28
- /** 项目名称 */
29
- projectName?: string;
30
- /** 是否仅仅(从done-coding系列项目列表中)克隆远程仓库 */
31
- justCloneFromDoneCoding?: boolean;
42
+ export declare enum SubcommandEnum {
43
+ CREATE = "create"
32
44
  }
33
45
 
34
46
  export { }