done-coding-component 0.3.8-alpha.1 → 0.3.8
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
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import u from "node:path";
|
|
3
3
|
import p from "node:fs";
|
|
4
4
|
import x from "lodash.upperfirst";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import y from "lodash.camelcase";
|
|
6
|
+
import $ from "lodash.kebabcase";
|
|
7
7
|
import A from "lodash.lowerfirst";
|
|
8
8
|
import f from "lodash.template";
|
|
9
9
|
import { log as m, json5 as L, chalk as g, xPrompts as w, _curry as b, createSubcommand as M, createMainCommand as F } from "@done-coding/cli-utils";
|
|
10
|
-
import { OutputModeEnum as
|
|
10
|
+
import { OutputModeEnum as h, compileHandler as O } from "@done-coding/cli-template";
|
|
11
11
|
var a = /* @__PURE__ */ ((e) => (e.ADD = "add", e.REMOVE = "remove", e.LIST = "list", e))(a || {});
|
|
12
12
|
const T = (e, t) => {
|
|
13
13
|
if (!/^[a-zA-Z]+[a-zA-Z0-9-]*$/.test(e))
|
|
@@ -17,7 +17,7 @@ const T = (e, t) => {
|
|
|
17
17
|
保留名称: ${n.join(",")}`), process.exit(1)) : !0;
|
|
18
18
|
}, N = {
|
|
19
19
|
name: "@done-coding/cli-component",
|
|
20
|
-
version: "0.3.8
|
|
20
|
+
version: "0.3.8",
|
|
21
21
|
description: "组件命令行工具",
|
|
22
22
|
cliConfig: {
|
|
23
23
|
namespaceDir: ".done-coding",
|
|
@@ -27,7 +27,7 @@ const T = (e, t) => {
|
|
|
27
27
|
execDir: process.cwd(),
|
|
28
28
|
templateDir: I()
|
|
29
29
|
}), D = (e) => {
|
|
30
|
-
const { series: t, name: n } = e, o = x(
|
|
30
|
+
const { series: t, name: n } = e, o = x(y(n)), i = A(o), s = $(o), c = t ? x(y(t)) : "", l = c ? `${c}${o}` : "", r = $(l);
|
|
31
31
|
return {
|
|
32
32
|
series: c,
|
|
33
33
|
name: o,
|
|
@@ -96,7 +96,7 @@ const T = (e, t) => {
|
|
|
96
96
|
const d = {
|
|
97
97
|
...c,
|
|
98
98
|
envData: s,
|
|
99
|
-
mode:
|
|
99
|
+
mode: h.APPEND,
|
|
100
100
|
rollback: n === a.REMOVE,
|
|
101
101
|
/** 回滚时可以删除空文件 */
|
|
102
102
|
rollbackDelNullFile: !0,
|
|
@@ -112,7 +112,7 @@ const T = (e, t) => {
|
|
|
112
112
|
const d = {
|
|
113
113
|
...l,
|
|
114
114
|
envData: s,
|
|
115
|
-
mode:
|
|
115
|
+
mode: h.OVERWRITE,
|
|
116
116
|
rollback: n === a.REMOVE,
|
|
117
117
|
dealMarkdown: !0,
|
|
118
118
|
batch: !1,
|
package/es/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "done-coding-component",
|
|
3
|
-
"version": "0.3.8
|
|
3
|
+
"version": "0.3.8",
|
|
4
4
|
"description": "组件命令行工具",
|
|
5
5
|
"private": false,
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
"lib",
|
|
18
18
|
"types"
|
|
19
19
|
],
|
|
20
|
-
"scripts": {},
|
|
21
20
|
"repository": {
|
|
22
21
|
"type": "git",
|
|
23
22
|
"url": "https://gitee.com/justsosu/done-coding-cli.git",
|
|
@@ -31,7 +30,7 @@
|
|
|
31
30
|
"license": "MIT",
|
|
32
31
|
"sideEffects": false,
|
|
33
32
|
"devDependencies": {
|
|
34
|
-
"@done-coding/cli-inject": "^0.5.8
|
|
33
|
+
"@done-coding/cli-inject": "^0.5.8",
|
|
35
34
|
"@types/lodash.camelcase": "^4.3.8",
|
|
36
35
|
"@types/lodash.kebabcase": "^4.1.8",
|
|
37
36
|
"@types/lodash.lowerfirst": "^4.3.8",
|
|
@@ -48,13 +47,14 @@
|
|
|
48
47
|
"node": ">=18.0.0"
|
|
49
48
|
},
|
|
50
49
|
"dependencies": {
|
|
51
|
-
"@done-coding/cli-template": "^0.7.8
|
|
52
|
-
"@done-coding/cli-utils": "^0.
|
|
50
|
+
"@done-coding/cli-template": "^0.7.8",
|
|
51
|
+
"@done-coding/cli-utils": "^0.7.0",
|
|
53
52
|
"lodash.camelcase": "^4.3.0",
|
|
54
53
|
"lodash.kebabcase": "^4.1.1",
|
|
55
54
|
"lodash.lowerfirst": "^4.3.1",
|
|
56
55
|
"lodash.template": "^4.5.0",
|
|
57
56
|
"lodash.upperfirst": "^4.3.1"
|
|
58
57
|
},
|
|
59
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "b4fb4f2380a14f72597a1dbfd1bbce22287ef02f",
|
|
59
|
+
"scripts": {}
|
|
60
60
|
}
|