@done-coding/cli 0.3.1 → 0.4.2
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 +0 -0
- package/es/cli.mjs +0 -0
- package/es/index.mjs +18 -12
- package/es/injectInfo.json.mjs +1 -1
- package/es/main.mjs +15 -13
- package/package.json +10 -7
- package/types/cli.d.ts +0 -0
- package/types/index.d.ts +2 -0
- package/types/injectInfo.json.d.ts +1 -1
- package/types/main.d.ts +0 -0
package/README.md
CHANGED
|
File without changes
|
package/es/cli.mjs
CHANGED
|
File without changes
|
package/es/index.mjs
CHANGED
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { command as m, handler as
|
|
3
|
-
import { command as
|
|
4
|
-
import { command as l, handler as t } from "
|
|
5
|
-
import { command as c, handler as
|
|
2
|
+
import { command as m, handler as o } from "@done-coding/cli-init";
|
|
3
|
+
import { command as r, handler as d } from "@done-coding/cli-inject";
|
|
4
|
+
import { command as l, handler as t } from "create-done-coding";
|
|
5
|
+
import { command as c, handler as i } from "@done-coding/cli-publish";
|
|
6
|
+
import { command as f, handler as x } from "@done-coding/cli-template";
|
|
7
|
+
import { command as H, handler as b } from "@done-coding/cli-component";
|
|
6
8
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
l as browserCommand,
|
|
10
|
+
t as browserHandler,
|
|
11
|
+
H as componentCommand,
|
|
12
|
+
b as componentHandler,
|
|
13
|
+
m as initCommand,
|
|
14
|
+
o as initHandler,
|
|
15
|
+
r as injectCommand,
|
|
16
|
+
d as injectHandler,
|
|
17
|
+
c as publishCommand,
|
|
18
|
+
i as publishHandler,
|
|
19
|
+
f as templateCommand,
|
|
20
|
+
x as templateHandler
|
|
15
21
|
};
|
package/es/injectInfo.json.mjs
CHANGED
package/es/main.mjs
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import
|
|
3
|
-
import { hideBin as
|
|
4
|
-
import
|
|
2
|
+
import n from "yargs";
|
|
3
|
+
import { hideBin as r } from "yargs/helpers";
|
|
4
|
+
import a from "chalk";
|
|
5
|
+
import { command as c } from "@done-coding/cli-init";
|
|
5
6
|
import { command as e } from "@done-coding/cli-inject";
|
|
6
|
-
import { command as
|
|
7
|
-
import { command as
|
|
8
|
-
import { command as
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
7
|
+
import { command as i } from "create-done-coding";
|
|
8
|
+
import { command as s } from "@done-coding/cli-publish";
|
|
9
|
+
import { command as d } from "@done-coding/cli-template";
|
|
10
|
+
import { command as t } from "@done-coding/cli-component";
|
|
11
|
+
import l from "./injectInfo.json.mjs";
|
|
12
|
+
const p = (m, o) => {
|
|
13
|
+
console.log(m ? a.red(m) : a.red(o.message)), process.exit(1);
|
|
14
|
+
}, k = () => {
|
|
15
|
+
const m = r(process.argv);
|
|
16
|
+
return n(m).strict().usage("Usage: $0 <command> [options]").demandCommand(1).help("help").version(l.version).alias("h", "help").alias("v", "version").command(i).command(c).command(e).command(s).command(d).command(t).fail(p).argv;
|
|
15
17
|
};
|
|
16
18
|
export {
|
|
17
|
-
|
|
19
|
+
k as createCli
|
|
18
20
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@done-coding/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"description": "done-coding命令行工具",
|
|
5
5
|
"private": false,
|
|
6
6
|
"module": "es/cli.mjs",
|
|
@@ -32,7 +32,8 @@
|
|
|
32
32
|
"directory": "packages/cli"
|
|
33
33
|
},
|
|
34
34
|
"publishConfig": {
|
|
35
|
-
"access": "public"
|
|
35
|
+
"access": "public",
|
|
36
|
+
"registry": "https://registry.npmjs.org/"
|
|
36
37
|
},
|
|
37
38
|
"author": "JustSoSu",
|
|
38
39
|
"license": "MIT",
|
|
@@ -50,13 +51,15 @@
|
|
|
50
51
|
"node": ">=16.0.0"
|
|
51
52
|
},
|
|
52
53
|
"dependencies": {
|
|
53
|
-
"@done-coding/cli-
|
|
54
|
-
"@done-coding/cli-
|
|
55
|
-
"@done-coding/cli-
|
|
54
|
+
"@done-coding/cli-component": "^0.1.2",
|
|
55
|
+
"@done-coding/cli-init": "^0.0.2",
|
|
56
|
+
"@done-coding/cli-inject": "^0.2.2",
|
|
57
|
+
"@done-coding/cli-publish": "^0.3.2",
|
|
58
|
+
"@done-coding/cli-template": "^0.2.1",
|
|
56
59
|
"chalk": "^5.3.0",
|
|
57
|
-
"create-done-coding": "^0.4.
|
|
60
|
+
"create-done-coding": "^0.4.5",
|
|
58
61
|
"prompts": "^2.4.2",
|
|
59
62
|
"yargs": "^17.7.2"
|
|
60
63
|
},
|
|
61
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "4fd613ca2bbdf655edd94895996129dcbd8ebb41"
|
|
62
65
|
}
|
package/types/cli.d.ts
CHANGED
|
File without changes
|
package/types/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
export { command as initCommand, handler as initHandler, } from "@done-coding/cli-init";
|
|
1
2
|
export { command as injectCommand, handler as injectHandler, } from "@done-coding/cli-inject";
|
|
2
3
|
export { command as browserCommand, handler as browserHandler, } from "create-done-coding";
|
|
3
4
|
export { command as publishCommand, handler as publishHandler, } from "@done-coding/cli-publish";
|
|
4
5
|
export { command as templateCommand, handler as templateHandler, } from "@done-coding/cli-template";
|
|
6
|
+
export { command as componentCommand, handler as componentHandler, } from "@done-coding/cli-component";
|
package/types/main.d.ts
CHANGED
|
File without changes
|