@done-coding/cli 0.11.3-alpha.0 → 0.12.0-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 +13 -12
- package/es/index.mjs +21 -18
- package/package.json +10 -9
- package/types/index.d.ts +1 -0
- package/types/injectInfo.json.d.ts +1 -1
package/es/cli.mjs
CHANGED
|
@@ -4,23 +4,24 @@ import { hideBin as c } from "yargs/helpers";
|
|
|
4
4
|
import n from "chalk";
|
|
5
5
|
import { command as r } from "@done-coding/cli-init";
|
|
6
6
|
import { command as d } from "@done-coding/cli-inject";
|
|
7
|
+
import { command as i } from "@done-coding/cli-extract";
|
|
7
8
|
import { command as e } from "@done-coding/cli-git";
|
|
8
|
-
import { command as
|
|
9
|
-
import { command as
|
|
10
|
-
import { command as
|
|
11
|
-
import { command as
|
|
12
|
-
const
|
|
13
|
-
version: "0.
|
|
9
|
+
import { command as s } from "create-done-coding";
|
|
10
|
+
import { command as t } from "@done-coding/cli-publish";
|
|
11
|
+
import { command as l } from "@done-coding/cli-template";
|
|
12
|
+
import { command as p } from "@done-coding/cli-component";
|
|
13
|
+
const f = {
|
|
14
|
+
version: "0.12.0-alpha.0",
|
|
14
15
|
name: "@done-coding/cli",
|
|
15
16
|
description: "done-coding命令行工具",
|
|
16
17
|
cliConfig: {
|
|
17
18
|
namespaceDir: ".done-coding",
|
|
18
19
|
moduleName: "dc"
|
|
19
20
|
}
|
|
20
|
-
},
|
|
21
|
-
console.log(
|
|
22
|
-
},
|
|
23
|
-
const
|
|
24
|
-
return a(
|
|
21
|
+
}, g = (m, o) => {
|
|
22
|
+
console.log(m ? n.red(m) : n.red(o.message)), process.exit(1);
|
|
23
|
+
}, v = () => {
|
|
24
|
+
const m = c(process.argv);
|
|
25
|
+
return a(m).strict().usage("Usage: $0 <command> [options]").demandCommand(1).help("help").version(f.version).alias("h", "help").alias("v", "version").command(e).command(s).command(r).command(d).command(i).command(t).command(l).command(p).fail(g).argv;
|
|
25
26
|
};
|
|
26
|
-
|
|
27
|
+
v();
|
package/es/index.mjs
CHANGED
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { command as
|
|
3
|
-
import { command as r, handler as d } from "@done-coding/cli-
|
|
4
|
-
import { command as
|
|
5
|
-
import { command as
|
|
6
|
-
import { command as
|
|
7
|
-
import { command as H, handler as b } from "@done-coding/cli-
|
|
2
|
+
import { command as n, handler as e } from "@done-coding/cli-init";
|
|
3
|
+
import { command as r, handler as d } from "@done-coding/cli-extract";
|
|
4
|
+
import { command as s, handler as l } from "@done-coding/cli-inject";
|
|
5
|
+
import { command as p, handler as h } from "create-done-coding";
|
|
6
|
+
import { command as x, handler as f } from "@done-coding/cli-publish";
|
|
7
|
+
import { command as H, handler as b } from "@done-coding/cli-template";
|
|
8
|
+
import { command as j, handler as w } from "@done-coding/cli-component";
|
|
8
9
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
10
|
+
p as browserCommand,
|
|
11
|
+
h as browserHandler,
|
|
12
|
+
j as componentCommand,
|
|
13
|
+
w as componentHandler,
|
|
14
|
+
r as extractCommand,
|
|
15
|
+
d as extractHandler,
|
|
16
|
+
n as initCommand,
|
|
17
|
+
e as initHandler,
|
|
18
|
+
s as injectCommand,
|
|
19
|
+
l as injectHandler,
|
|
20
|
+
x as publishCommand,
|
|
21
|
+
f as publishHandler,
|
|
22
|
+
H as templateCommand,
|
|
23
|
+
b as templateHandler
|
|
21
24
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@done-coding/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0-alpha.0",
|
|
4
4
|
"description": "done-coding命令行工具",
|
|
5
5
|
"private": false,
|
|
6
6
|
"module": "es/cli.mjs",
|
|
@@ -51,16 +51,17 @@
|
|
|
51
51
|
"node": ">=18.0.0"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@done-coding/cli-component": "^0.2.
|
|
55
|
-
"@done-coding/cli-
|
|
56
|
-
"@done-coding/cli-
|
|
57
|
-
"@done-coding/cli-
|
|
58
|
-
"@done-coding/cli-
|
|
59
|
-
"@done-coding/cli-
|
|
54
|
+
"@done-coding/cli-component": "^0.2.3-alpha.0",
|
|
55
|
+
"@done-coding/cli-extract": "^0.0.1-alpha.0",
|
|
56
|
+
"@done-coding/cli-git": "^0.2.2-alpha.0",
|
|
57
|
+
"@done-coding/cli-init": "^0.0.12-alpha.0",
|
|
58
|
+
"@done-coding/cli-inject": "^0.4.6-alpha.0",
|
|
59
|
+
"@done-coding/cli-publish": "^0.4.5-alpha.0",
|
|
60
|
+
"@done-coding/cli-template": "^0.6.1-alpha.0",
|
|
60
61
|
"chalk": "^5.3.0",
|
|
61
|
-
"create-done-coding": "^0.9.
|
|
62
|
+
"create-done-coding": "^0.9.3-alpha.0",
|
|
62
63
|
"prompts": "^2.4.2",
|
|
63
64
|
"yargs": "^17.7.2"
|
|
64
65
|
},
|
|
65
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "21eb698f64179882cfec979bd8f19920b047dacb"
|
|
66
67
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { command as initCommand, handler as initHandler, } from "@done-coding/cli-init";
|
|
2
|
+
export { command as extractCommand, handler as extractHandler, } from "@done-coding/cli-extract";
|
|
2
3
|
export { command as injectCommand, handler as injectHandler, } from "@done-coding/cli-inject";
|
|
3
4
|
export { command as browserCommand, handler as browserHandler, } from "create-done-coding";
|
|
4
5
|
export { command as publishCommand, handler as publishHandler, } from "@done-coding/cli-publish";
|