create-done-coding 0.11.17 → 0.11.19-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-4bae0d72.js → index-e840639c.js} +133 -117
- package/es/index.mjs +1 -1
- package/package.json +2 -2
package/es/cli.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { readCliConfig as To, log as R, HooksNameEnum as v, createSubcommand as St, getRootScriptName as Gn, xPrompts as
|
|
3
|
-
import { execSync as
|
|
2
|
+
import { readCliConfig as To, log as R, HooksNameEnum as v, createSubcommand as St, getRootScriptName as Gn, xPrompts as S, getConfigFileCommonOptions as Tt, addHuskyHooks as Co, initHandlerCommon as Ao, readConfigFile as ge, lookForParentTarget as qn, decryptAES as $o, encryptAES as No, getCurrentBranchName as Po, getCommitByHookName as jo, resolveMergeInfoByGitReflogAction as xo, checkCurrentIsRebasing as Fo, resolveMergeInfoByCommitMsg as Bo, getCurrentBranchLastCommitList as Uo, getLastReflogList as Do, createMainCommand as Lo } from "@done-coding/cli-utils";
|
|
3
|
+
import { execSync as q } from "node:child_process";
|
|
4
4
|
import gt, { existsSync as on, rmSync as je } from "node:fs";
|
|
5
5
|
import Ee, { resolve as Io } from "node:path";
|
|
6
6
|
import { getConfigPath as Mo, batchCompileHandler as ko, MODULE_DEFAULT_CONFIG_RELATIVE_PATH as Ho } from "@done-coding/cli-template";
|
|
7
7
|
import { getTargetRepoUrl as Go } from "@done-coding/cli-git";
|
|
8
8
|
const Kn = "自定义模版路径", Wn = "某个git平台用户仓库", se = {
|
|
9
9
|
name: "create-done-coding",
|
|
10
|
-
version: "0.11.
|
|
10
|
+
version: "0.11.19-alpha.0",
|
|
11
11
|
description: "项目创建命令行工具",
|
|
12
12
|
bin: "es/cli.mjs",
|
|
13
13
|
cliConfig: {
|
|
@@ -187,7 +187,7 @@ var Os = Array.prototype, ws = Function.prototype, Ge = Object.prototype, ut = $
|
|
|
187
187
|
}(), Zn = ws.toString, ie = Ge.hasOwnProperty, Pt = Ge.toString, vs = RegExp(
|
|
188
188
|
"^" + Zn.call(ie).replace(is, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
189
189
|
), an = $t.Symbol, Ss = Qn(Object.getPrototypeOf, Object), Ts = Ge.propertyIsEnumerable, Cs = Os.splice, cn = an ? an.isConcatSpreadable : void 0, yt = Object.getOwnPropertySymbols, un = Math.max, As = er($t, "Map"), Oe = er(Object, "create");
|
|
190
|
-
function
|
|
190
|
+
function z(e) {
|
|
191
191
|
var t = -1, n = e ? e.length : 0;
|
|
192
192
|
for (this.clear(); ++t < n; ) {
|
|
193
193
|
var r = e[t];
|
|
@@ -216,11 +216,11 @@ function xs(e, t) {
|
|
|
216
216
|
var n = this.__data__;
|
|
217
217
|
return n[e] = Oe && t === void 0 ? At : t, this;
|
|
218
218
|
}
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
219
|
+
z.prototype.clear = $s;
|
|
220
|
+
z.prototype.delete = Ns;
|
|
221
|
+
z.prototype.get = Ps;
|
|
222
|
+
z.prototype.has = js;
|
|
223
|
+
z.prototype.set = xs;
|
|
224
224
|
function ae(e) {
|
|
225
225
|
var t = -1, n = e ? e.length : 0;
|
|
226
226
|
for (this.clear(); ++t < n; ) {
|
|
@@ -263,9 +263,9 @@ function ce(e) {
|
|
|
263
263
|
}
|
|
264
264
|
function Is() {
|
|
265
265
|
this.__data__ = {
|
|
266
|
-
hash: new
|
|
266
|
+
hash: new z(),
|
|
267
267
|
map: new (As || ae)(),
|
|
268
|
-
string: new
|
|
268
|
+
string: new z()
|
|
269
269
|
};
|
|
270
270
|
}
|
|
271
271
|
function Ms(e) {
|
|
@@ -672,11 +672,11 @@ function Gi(e) {
|
|
|
672
672
|
}
|
|
673
673
|
var qi = Hi;
|
|
674
674
|
const pn = /* @__PURE__ */ Ct(qi);
|
|
675
|
-
var Ki = "Expected a function", hn = "__lodash_placeholder__",
|
|
675
|
+
var Ki = "Expected a function", hn = "__lodash_placeholder__", J = 1, Je = 2, Wi = 4, W = 8, be = 16, te = 32, we = 64, dr = 128, zi = 256, mr = 512, dn = 1 / 0, Ji = 9007199254740991, Vi = 17976931348623157e292, mn = NaN, Xi = [
|
|
676
676
|
["ary", dr],
|
|
677
|
-
["bind",
|
|
677
|
+
["bind", J],
|
|
678
678
|
["bindKey", Je],
|
|
679
|
-
["curry",
|
|
679
|
+
["curry", W],
|
|
680
680
|
["curryRight", be],
|
|
681
681
|
["flip", mr],
|
|
682
682
|
["partial", te],
|
|
@@ -789,7 +789,7 @@ function Na(e, t) {
|
|
|
789
789
|
return t;
|
|
790
790
|
}
|
|
791
791
|
function Pa(e, t, n) {
|
|
792
|
-
var r = t &
|
|
792
|
+
var r = t & J, o = ve(e);
|
|
793
793
|
function s() {
|
|
794
794
|
var i = this && this !== $e && this instanceof s ? o : e;
|
|
795
795
|
return i.apply(r ? n : this, arguments);
|
|
@@ -846,13 +846,13 @@ function ja(e, t, n) {
|
|
|
846
846
|
return o;
|
|
847
847
|
}
|
|
848
848
|
function Ft(e, t, n, r, o, s, i, a, u, f) {
|
|
849
|
-
var c = t & dr, p = t &
|
|
849
|
+
var c = t & dr, p = t & J, g = t & Je, m = t & (W | be), h = t & mr, y = g ? void 0 : ve(e);
|
|
850
850
|
function d() {
|
|
851
851
|
for (var b = arguments.length, E = Array(b), O = b; O--; )
|
|
852
852
|
E[O] = arguments[O];
|
|
853
853
|
if (m)
|
|
854
|
-
var $ = Or(d),
|
|
855
|
-
if (r && (E = Aa(E, r, o, m)), s && (E = $a(E, s, i, m)), b -=
|
|
854
|
+
var $ = Or(d), T = Ea(E, $);
|
|
855
|
+
if (r && (E = Aa(E, r, o, m)), s && (E = $a(E, s, i, m)), b -= T, m && b < f) {
|
|
856
856
|
var F = yr(E, $);
|
|
857
857
|
return Rr(
|
|
858
858
|
e,
|
|
@@ -873,7 +873,7 @@ function Ft(e, t, n, r, o, s, i, a, u, f) {
|
|
|
873
873
|
return d;
|
|
874
874
|
}
|
|
875
875
|
function xa(e, t, n, r) {
|
|
876
|
-
var o = t &
|
|
876
|
+
var o = t & J, s = ve(e);
|
|
877
877
|
function i() {
|
|
878
878
|
for (var a = -1, u = arguments.length, f = -1, c = r.length, p = Array(c + u), g = this && this !== $e && this instanceof i ? s : e; ++f < c; )
|
|
879
879
|
p[f] = r[f];
|
|
@@ -884,8 +884,8 @@ function xa(e, t, n, r) {
|
|
|
884
884
|
return i;
|
|
885
885
|
}
|
|
886
886
|
function Rr(e, t, n, r, o, s, i, a, u, f) {
|
|
887
|
-
var c = t &
|
|
888
|
-
t |= c ? te : we, t &= ~(c ? we : te), t & Wi || (t &= ~(
|
|
887
|
+
var c = t & W, p = c ? i : void 0, g = c ? void 0 : i, m = c ? s : void 0, h = c ? void 0 : s;
|
|
888
|
+
t |= c ? te : we, t &= ~(c ? we : te), t & Wi || (t &= ~(J | Je));
|
|
889
889
|
var y = n(e, t, o, m, p, h, g, a, u, f);
|
|
890
890
|
return y.placeholder = r, wr(y, e, t);
|
|
891
891
|
}
|
|
@@ -910,10 +910,10 @@ function Fa(e, t, n, r, o, s, i, a) {
|
|
|
910
910
|
i,
|
|
911
911
|
a
|
|
912
912
|
];
|
|
913
|
-
if (e = g[0], t = g[1], n = g[2], r = g[3], o = g[4], a = g[9] = g[9] == null ? u ? 0 : e.length : Le(g[9] - f, 0), !a && t & (
|
|
913
|
+
if (e = g[0], t = g[1], n = g[2], r = g[3], o = g[4], a = g[9] = g[9] == null ? u ? 0 : e.length : Le(g[9] - f, 0), !a && t & (W | be) && (t &= ~(W | be)), !t || t == J)
|
|
914
914
|
var m = Pa(e, t, n);
|
|
915
915
|
else
|
|
916
|
-
t ==
|
|
916
|
+
t == W || t == be ? m = ja(e, t, a) : (t == te || t == (J | te)) && !o.length ? m = xa(e, t, n, r) : m = Ft.apply(void 0, g);
|
|
917
917
|
return wr(m, e, t);
|
|
918
918
|
}
|
|
919
919
|
function Or(e) {
|
|
@@ -976,7 +976,7 @@ function ka(e, t) {
|
|
|
976
976
|
}
|
|
977
977
|
function Bt(e, t, n) {
|
|
978
978
|
t = n ? void 0 : t;
|
|
979
|
-
var r = Fa(e,
|
|
979
|
+
var r = Fa(e, W, void 0, void 0, void 0, void 0, void 0, t);
|
|
980
980
|
return r.placeholder = Bt.placeholder, r;
|
|
981
981
|
}
|
|
982
982
|
function Ha(e) {
|
|
@@ -1248,7 +1248,7 @@ var wc = Array.prototype, vc = Function.prototype, Ve = Object.prototype, ft = D
|
|
|
1248
1248
|
}(), Ar = vc.toString, ue = Ve.hasOwnProperty, It = Ve.toString, Sc = RegExp(
|
|
1249
1249
|
"^" + Ar.call(ue).replace(ac, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1250
1250
|
), Rn = Dt.Symbol, Tc = Cr(Object.getPrototypeOf, Object), Cc = Ve.propertyIsEnumerable, Ac = wc.splice, On = Rn ? Rn.isConcatSpreadable : void 0, Et = Object.getOwnPropertySymbols, wn = Math.max, $c = Nr(Dt, "Map"), Se = Nr(Object, "create");
|
|
1251
|
-
function
|
|
1251
|
+
function V(e) {
|
|
1252
1252
|
var t = -1, n = e ? e.length : 0;
|
|
1253
1253
|
for (this.clear(); ++t < n; ) {
|
|
1254
1254
|
var r = e[t];
|
|
@@ -1277,11 +1277,11 @@ function Fc(e, t) {
|
|
|
1277
1277
|
var n = this.__data__;
|
|
1278
1278
|
return n[e] = Se && t === void 0 ? Ut : t, this;
|
|
1279
1279
|
}
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1280
|
+
V.prototype.clear = Nc;
|
|
1281
|
+
V.prototype.delete = Pc;
|
|
1282
|
+
V.prototype.get = jc;
|
|
1283
|
+
V.prototype.has = xc;
|
|
1284
|
+
V.prototype.set = Fc;
|
|
1285
1285
|
function le(e) {
|
|
1286
1286
|
var t = -1, n = e ? e.length : 0;
|
|
1287
1287
|
for (this.clear(); ++t < n; ) {
|
|
@@ -1324,9 +1324,9 @@ function fe(e) {
|
|
|
1324
1324
|
}
|
|
1325
1325
|
function Mc() {
|
|
1326
1326
|
this.__data__ = {
|
|
1327
|
-
hash: new
|
|
1327
|
+
hash: new V(),
|
|
1328
1328
|
map: new ($c || le)(),
|
|
1329
|
-
string: new
|
|
1329
|
+
string: new V()
|
|
1330
1330
|
};
|
|
1331
1331
|
}
|
|
1332
1332
|
function kc(e) {
|
|
@@ -1556,7 +1556,7 @@ var Bu = Array.prototype, Uu = Function.prototype, Lr = Object.prototype, pt = H
|
|
|
1556
1556
|
}(), Ir = Uu.toString, Gt = Lr.hasOwnProperty, Mr = Lr.toString, Du = RegExp(
|
|
1557
1557
|
"^" + Ir.call(Gt).replace(Au, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1558
1558
|
), Sn = Ht.Symbol, Lu = Bu.splice, Iu = kr(Ht, "Map"), Te = kr(Object, "create"), Tn = Sn ? Sn.prototype : void 0, Cn = Tn ? Tn.toString : void 0;
|
|
1559
|
-
function
|
|
1559
|
+
function X(e) {
|
|
1560
1560
|
var t = -1, n = e ? e.length : 0;
|
|
1561
1561
|
for (this.clear(); ++t < n; ) {
|
|
1562
1562
|
var r = e[t];
|
|
@@ -1585,11 +1585,11 @@ function qu(e, t) {
|
|
|
1585
1585
|
var n = this.__data__;
|
|
1586
1586
|
return n[e] = Te && t === void 0 ? Ur : t, this;
|
|
1587
1587
|
}
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1588
|
+
X.prototype.clear = Mu;
|
|
1589
|
+
X.prototype.delete = ku;
|
|
1590
|
+
X.prototype.get = Hu;
|
|
1591
|
+
X.prototype.has = Gu;
|
|
1592
|
+
X.prototype.set = qu;
|
|
1593
1593
|
function pe(e) {
|
|
1594
1594
|
var t = -1, n = e ? e.length : 0;
|
|
1595
1595
|
for (this.clear(); ++t < n; ) {
|
|
@@ -1623,7 +1623,7 @@ pe.prototype.delete = Wu;
|
|
|
1623
1623
|
pe.prototype.get = zu;
|
|
1624
1624
|
pe.prototype.has = Ju;
|
|
1625
1625
|
pe.prototype.set = Vu;
|
|
1626
|
-
function
|
|
1626
|
+
function Z(e) {
|
|
1627
1627
|
var t = -1, n = e ? e.length : 0;
|
|
1628
1628
|
for (this.clear(); ++t < n; ) {
|
|
1629
1629
|
var r = e[t];
|
|
@@ -1632,9 +1632,9 @@ function Q(e) {
|
|
|
1632
1632
|
}
|
|
1633
1633
|
function Xu() {
|
|
1634
1634
|
this.__data__ = {
|
|
1635
|
-
hash: new
|
|
1635
|
+
hash: new X(),
|
|
1636
1636
|
map: new (Iu || pe)(),
|
|
1637
|
-
string: new
|
|
1637
|
+
string: new X()
|
|
1638
1638
|
};
|
|
1639
1639
|
}
|
|
1640
1640
|
function Qu(e) {
|
|
@@ -1649,11 +1649,11 @@ function Yu(e) {
|
|
|
1649
1649
|
function el(e, t) {
|
|
1650
1650
|
return Ye(this, e).set(e, t), this;
|
|
1651
1651
|
}
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1652
|
+
Z.prototype.clear = Xu;
|
|
1653
|
+
Z.prototype.delete = Qu;
|
|
1654
|
+
Z.prototype.get = Zu;
|
|
1655
|
+
Z.prototype.has = Yu;
|
|
1656
|
+
Z.prototype.set = el;
|
|
1657
1657
|
function Ze(e, t) {
|
|
1658
1658
|
for (var n = e.length; n--; )
|
|
1659
1659
|
if (fl(e[n][0], t))
|
|
@@ -1740,9 +1740,9 @@ function qt(e, t) {
|
|
|
1740
1740
|
var i = e.apply(this, r);
|
|
1741
1741
|
return n.cache = s.set(o, i), i;
|
|
1742
1742
|
};
|
|
1743
|
-
return n.cache = new (qt.Cache ||
|
|
1743
|
+
return n.cache = new (qt.Cache || Z)(), n;
|
|
1744
1744
|
}
|
|
1745
|
-
qt.Cache =
|
|
1745
|
+
qt.Cache = Z;
|
|
1746
1746
|
function fl(e, t) {
|
|
1747
1747
|
return e === t || e !== e && t !== t;
|
|
1748
1748
|
}
|
|
@@ -1880,7 +1880,7 @@ function Jr(e, t) {
|
|
|
1880
1880
|
return o;
|
|
1881
1881
|
return null;
|
|
1882
1882
|
}
|
|
1883
|
-
const
|
|
1883
|
+
const K = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), Vr = (e) => !Ce(e) && e !== K;
|
|
1884
1884
|
function _t() {
|
|
1885
1885
|
const { caseless: e } = Vr(this) && this || {}, t = {}, n = (r, o) => {
|
|
1886
1886
|
const s = e && Jr(t, o) || o;
|
|
@@ -1991,14 +1991,14 @@ const Zl = (e) => {
|
|
|
1991
1991
|
return r;
|
|
1992
1992
|
};
|
|
1993
1993
|
return n(e, 0);
|
|
1994
|
-
}, Yl = x("AsyncFunction"), ef = (e) => e && (nt(e) || A(e)) && A(e.then) && A(e.catch), Qr = ((e, t) => e ? setImmediate : t ? ((n, r) => (
|
|
1995
|
-
o ===
|
|
1994
|
+
}, Yl = x("AsyncFunction"), ef = (e) => e && (nt(e) || A(e)) && A(e.then) && A(e.catch), Qr = ((e, t) => e ? setImmediate : t ? ((n, r) => (K.addEventListener("message", ({ source: o, data: s }) => {
|
|
1995
|
+
o === K && s === n && r.length && r.shift()();
|
|
1996
1996
|
}, !1), (o) => {
|
|
1997
|
-
r.push(o),
|
|
1997
|
+
r.push(o), K.postMessage(n, "*");
|
|
1998
1998
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
1999
1999
|
typeof setImmediate == "function",
|
|
2000
|
-
A(
|
|
2001
|
-
), tf = typeof queueMicrotask < "u" ? queueMicrotask.bind(
|
|
2000
|
+
A(K.postMessage)
|
|
2001
|
+
), tf = typeof queueMicrotask < "u" ? queueMicrotask.bind(K) : typeof process < "u" && process.nextTick || Qr, l = {
|
|
2002
2002
|
isArray: he,
|
|
2003
2003
|
isArrayBuffer: Wr,
|
|
2004
2004
|
isBuffer: _l,
|
|
@@ -2047,7 +2047,7 @@ const Zl = (e) => {
|
|
|
2047
2047
|
noop: Vl,
|
|
2048
2048
|
toFiniteNumber: Xl,
|
|
2049
2049
|
findKey: Jr,
|
|
2050
|
-
global:
|
|
2050
|
+
global: K,
|
|
2051
2051
|
isContextDefined: Vr,
|
|
2052
2052
|
isSpecCompliantForm: Ql,
|
|
2053
2053
|
toJSONObject: Zl,
|
|
@@ -2307,14 +2307,14 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(),
|
|
|
2307
2307
|
hasStandardBrowserWebWorkerEnv: hf,
|
|
2308
2308
|
navigator: Rt,
|
|
2309
2309
|
origin: df
|
|
2310
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2310
|
+
}, Symbol.toStringTag, { value: "Module" })), C = {
|
|
2311
2311
|
...mf,
|
|
2312
2312
|
...ff
|
|
2313
2313
|
};
|
|
2314
2314
|
function gf(e, t) {
|
|
2315
|
-
return rt(e, new
|
|
2315
|
+
return rt(e, new C.classes.URLSearchParams(), Object.assign({
|
|
2316
2316
|
visitor: function(n, r, o, s) {
|
|
2317
|
-
return
|
|
2317
|
+
return C.isNode && l.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
|
|
2318
2318
|
}
|
|
2319
2319
|
}, t));
|
|
2320
2320
|
}
|
|
@@ -2409,8 +2409,8 @@ const Vt = {
|
|
|
2409
2409
|
maxContentLength: -1,
|
|
2410
2410
|
maxBodyLength: -1,
|
|
2411
2411
|
env: {
|
|
2412
|
-
FormData:
|
|
2413
|
-
Blob:
|
|
2412
|
+
FormData: C.classes.FormData,
|
|
2413
|
+
Blob: C.classes.Blob
|
|
2414
2414
|
},
|
|
2415
2415
|
validateStatus: function(t) {
|
|
2416
2416
|
return t >= 200 && t < 300;
|
|
@@ -2703,10 +2703,10 @@ const Me = (e, t, n = 3) => {
|
|
|
2703
2703
|
total: e,
|
|
2704
2704
|
loaded: r
|
|
2705
2705
|
}), t[1]];
|
|
2706
|
-
}, Fn = (e) => (...t) => l.asap(() => e(...t)), $f =
|
|
2707
|
-
new URL(
|
|
2708
|
-
|
|
2709
|
-
) : () => !0, Nf =
|
|
2706
|
+
}, Fn = (e) => (...t) => l.asap(() => e(...t)), $f = C.hasStandardBrowserEnv ? ((e, t) => (n) => (n = new URL(n, C.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
|
|
2707
|
+
new URL(C.origin),
|
|
2708
|
+
C.navigator && /(msie|trident)/i.test(C.navigator.userAgent)
|
|
2709
|
+
) : () => !0, Nf = C.hasStandardBrowserEnv ? (
|
|
2710
2710
|
// Standard browser envs support document.cookie
|
|
2711
2711
|
{
|
|
2712
2712
|
write(e, t, n, r, o, s) {
|
|
@@ -2744,7 +2744,7 @@ function ao(e, t, n) {
|
|
|
2744
2744
|
return e && (r || n == !1) ? jf(e, t) : t;
|
|
2745
2745
|
}
|
|
2746
2746
|
const Bn = (e) => e instanceof j ? { ...e } : e;
|
|
2747
|
-
function
|
|
2747
|
+
function Q(e, t) {
|
|
2748
2748
|
t = t || {};
|
|
2749
2749
|
const n = {};
|
|
2750
2750
|
function r(f, c, p, g) {
|
|
@@ -2811,7 +2811,7 @@ function X(e, t) {
|
|
|
2811
2811
|
}), n;
|
|
2812
2812
|
}
|
|
2813
2813
|
const co = (e) => {
|
|
2814
|
-
const t =
|
|
2814
|
+
const t = Q({}, e);
|
|
2815
2815
|
let { data: n, withXSRFToken: r, xsrfHeaderName: o, xsrfCookieName: s, headers: i, auth: a } = t;
|
|
2816
2816
|
t.headers = i = j.from(i), t.url = no(ao(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), a && i.set(
|
|
2817
2817
|
"Authorization",
|
|
@@ -2819,14 +2819,14 @@ const co = (e) => {
|
|
|
2819
2819
|
);
|
|
2820
2820
|
let u;
|
|
2821
2821
|
if (l.isFormData(n)) {
|
|
2822
|
-
if (
|
|
2822
|
+
if (C.hasStandardBrowserEnv || C.hasStandardBrowserWebWorkerEnv)
|
|
2823
2823
|
i.setContentType(void 0);
|
|
2824
2824
|
else if ((u = i.getContentType()) !== !1) {
|
|
2825
2825
|
const [f, ...c] = u ? u.split(";").map((p) => p.trim()).filter(Boolean) : [];
|
|
2826
2826
|
i.setContentType([f || "multipart/form-data", ...c].join("; "));
|
|
2827
2827
|
}
|
|
2828
2828
|
}
|
|
2829
|
-
if (
|
|
2829
|
+
if (C.hasStandardBrowserEnv && (r && l.isFunction(r) && (r = r(t)), r || r !== !1 && $f(t.url))) {
|
|
2830
2830
|
const f = o && s && Nf.read(s);
|
|
2831
2831
|
f && i.set(o, f);
|
|
2832
2832
|
}
|
|
@@ -2847,7 +2847,7 @@ const co = (e) => {
|
|
|
2847
2847
|
return;
|
|
2848
2848
|
const O = j.from(
|
|
2849
2849
|
"getAllResponseHeaders" in d && d.getAllResponseHeaders()
|
|
2850
|
-
),
|
|
2850
|
+
), T = {
|
|
2851
2851
|
data: !a || a === "text" || a === "json" ? d.responseText : d.response,
|
|
2852
2852
|
status: d.status,
|
|
2853
2853
|
statusText: d.statusText,
|
|
@@ -2859,7 +2859,7 @@ const co = (e) => {
|
|
|
2859
2859
|
n(B), y();
|
|
2860
2860
|
}, function(B) {
|
|
2861
2861
|
r(B), y();
|
|
2862
|
-
},
|
|
2862
|
+
}, T), d = null;
|
|
2863
2863
|
}
|
|
2864
2864
|
"onloadend" in d ? d.onloadend = b : d.onreadystatechange = function() {
|
|
2865
2865
|
!d || d.readyState !== 4 || d.status === 0 && !(d.responseURL && d.responseURL.indexOf("file:") === 0) || setTimeout(b);
|
|
@@ -2869,20 +2869,20 @@ const co = (e) => {
|
|
|
2869
2869
|
r(new _("Network Error", _.ERR_NETWORK, e, d)), d = null;
|
|
2870
2870
|
}, d.ontimeout = function() {
|
|
2871
2871
|
let $ = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
|
|
2872
|
-
const
|
|
2872
|
+
const T = o.transitional || ro;
|
|
2873
2873
|
o.timeoutErrorMessage && ($ = o.timeoutErrorMessage), r(new _(
|
|
2874
2874
|
$,
|
|
2875
|
-
|
|
2875
|
+
T.clarifyTimeoutError ? _.ETIMEDOUT : _.ECONNABORTED,
|
|
2876
2876
|
e,
|
|
2877
2877
|
d
|
|
2878
2878
|
)), d = null;
|
|
2879
|
-
}, s === void 0 && i.setContentType(null), "setRequestHeader" in d && l.forEach(i.toJSON(), function($,
|
|
2880
|
-
d.setRequestHeader(
|
|
2879
|
+
}, s === void 0 && i.setContentType(null), "setRequestHeader" in d && l.forEach(i.toJSON(), function($, T) {
|
|
2880
|
+
d.setRequestHeader(T, $);
|
|
2881
2881
|
}), l.isUndefined(o.withCredentials) || (d.withCredentials = !!o.withCredentials), a && a !== "json" && (d.responseType = o.responseType), f && ([g, h] = Me(f, !0), d.addEventListener("progress", g)), u && d.upload && ([p, m] = Me(u), d.upload.addEventListener("progress", p), d.upload.addEventListener("loadend", m)), (o.cancelToken || o.signal) && (c = (O) => {
|
|
2882
2882
|
d && (r(!O || O.type ? new de(null, e, d) : O), d.abort(), d = null);
|
|
2883
2883
|
}, o.cancelToken && o.cancelToken.subscribe(c), o.signal && (o.signal.aborted ? c() : o.signal.addEventListener("abort", c)));
|
|
2884
2884
|
const E = Tf(o.url);
|
|
2885
|
-
if (E &&
|
|
2885
|
+
if (E && C.protocols.indexOf(E) === -1) {
|
|
2886
2886
|
r(new _("Unsupported protocol " + E + ":", _.ERR_BAD_REQUEST, e));
|
|
2887
2887
|
return;
|
|
2888
2888
|
}
|
|
@@ -2976,7 +2976,7 @@ const co = (e) => {
|
|
|
2976
2976
|
}
|
|
2977
2977
|
}, kf = uo && lo(() => {
|
|
2978
2978
|
let e = !1;
|
|
2979
|
-
const t = new Request(
|
|
2979
|
+
const t = new Request(C.origin, {
|
|
2980
2980
|
body: new ReadableStream(),
|
|
2981
2981
|
method: "POST",
|
|
2982
2982
|
get duplex() {
|
|
@@ -3000,7 +3000,7 @@ const Hf = async (e) => {
|
|
|
3000
3000
|
if (l.isBlob(e))
|
|
3001
3001
|
return e.size;
|
|
3002
3002
|
if (l.isSpecCompliantForm(e))
|
|
3003
|
-
return (await new Request(
|
|
3003
|
+
return (await new Request(C.origin, {
|
|
3004
3004
|
method: "POST",
|
|
3005
3005
|
body: e
|
|
3006
3006
|
}).arrayBuffer()).byteLength;
|
|
@@ -3034,17 +3034,17 @@ const Hf = async (e) => {
|
|
|
3034
3034
|
let d;
|
|
3035
3035
|
try {
|
|
3036
3036
|
if (u && kf && n !== "get" && n !== "head" && (d = await Gf(c, r)) !== 0) {
|
|
3037
|
-
let
|
|
3037
|
+
let T = new Request(t, {
|
|
3038
3038
|
method: "POST",
|
|
3039
3039
|
body: r,
|
|
3040
3040
|
duplex: "half"
|
|
3041
3041
|
}), F;
|
|
3042
|
-
if (l.isFormData(r) && (F =
|
|
3042
|
+
if (l.isFormData(r) && (F = T.headers.get("content-type")) && c.setContentType(F), T.body) {
|
|
3043
3043
|
const [B, I] = xn(
|
|
3044
3044
|
d,
|
|
3045
3045
|
Me(Fn(u))
|
|
3046
3046
|
);
|
|
3047
|
-
r = Un(
|
|
3047
|
+
r = Un(T.body, Dn, B, I);
|
|
3048
3048
|
}
|
|
3049
3049
|
}
|
|
3050
3050
|
l.isString(p) || (p = p ? "include" : "omit");
|
|
@@ -3061,9 +3061,9 @@ const Hf = async (e) => {
|
|
|
3061
3061
|
let E = await fetch(h);
|
|
3062
3062
|
const O = Ot && (f === "stream" || f === "response");
|
|
3063
3063
|
if (Ot && (a || O && y)) {
|
|
3064
|
-
const
|
|
3064
|
+
const T = {};
|
|
3065
3065
|
["status", "statusText", "headers"].forEach((rn) => {
|
|
3066
|
-
|
|
3066
|
+
T[rn] = E[rn];
|
|
3067
3067
|
});
|
|
3068
3068
|
const F = l.toFiniteNumber(E.headers.get("content-length")), [B, I] = a && xn(
|
|
3069
3069
|
F,
|
|
@@ -3073,13 +3073,13 @@ const Hf = async (e) => {
|
|
|
3073
3073
|
Un(E.body, Dn, B, () => {
|
|
3074
3074
|
I && I(), y && y();
|
|
3075
3075
|
}),
|
|
3076
|
-
|
|
3076
|
+
T
|
|
3077
3077
|
);
|
|
3078
3078
|
}
|
|
3079
3079
|
f = f || "text";
|
|
3080
3080
|
let $ = await ke[l.findKey(ke, f) || "text"](E, e);
|
|
3081
|
-
return !O && y && y(), await new Promise((
|
|
3082
|
-
io(
|
|
3081
|
+
return !O && y && y(), await new Promise((T, F) => {
|
|
3082
|
+
io(T, F, {
|
|
3083
3083
|
data: $,
|
|
3084
3084
|
headers: j.from(E.headers),
|
|
3085
3085
|
status: E.status,
|
|
@@ -3245,7 +3245,7 @@ class He {
|
|
|
3245
3245
|
}
|
|
3246
3246
|
}
|
|
3247
3247
|
_request(t, n) {
|
|
3248
|
-
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n =
|
|
3248
|
+
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = Q(this.defaults, n);
|
|
3249
3249
|
const { transitional: r, paramsSerializer: o, headers: s } = n;
|
|
3250
3250
|
r !== void 0 && Be.assertOptions(r, {
|
|
3251
3251
|
silentJSONParsing: U.transitional(U.boolean),
|
|
@@ -3307,14 +3307,14 @@ class He {
|
|
|
3307
3307
|
return c;
|
|
3308
3308
|
}
|
|
3309
3309
|
getUri(t) {
|
|
3310
|
-
t =
|
|
3310
|
+
t = Q(this.defaults, t);
|
|
3311
3311
|
const n = ao(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
3312
3312
|
return no(n, t.params, t.paramsSerializer);
|
|
3313
3313
|
}
|
|
3314
3314
|
}
|
|
3315
3315
|
l.forEach(["delete", "get", "head", "options"], function(t) {
|
|
3316
3316
|
He.prototype[t] = function(n, r) {
|
|
3317
|
-
return this.request(
|
|
3317
|
+
return this.request(Q(r || {}, {
|
|
3318
3318
|
method: t,
|
|
3319
3319
|
url: n,
|
|
3320
3320
|
data: (r || {}).data
|
|
@@ -3324,7 +3324,7 @@ l.forEach(["delete", "get", "head", "options"], function(t) {
|
|
|
3324
3324
|
l.forEach(["post", "put", "patch"], function(t) {
|
|
3325
3325
|
function n(r) {
|
|
3326
3326
|
return function(s, i, a) {
|
|
3327
|
-
return this.request(
|
|
3327
|
+
return this.request(Q(a || {}, {
|
|
3328
3328
|
method: t,
|
|
3329
3329
|
headers: r ? {
|
|
3330
3330
|
"Content-Type": "multipart/form-data"
|
|
@@ -3492,7 +3492,7 @@ const Xf = vt;
|
|
|
3492
3492
|
function ho(e) {
|
|
3493
3493
|
const t = new Ue(e), n = Kr(Ue.prototype.request, t);
|
|
3494
3494
|
return l.extend(n, Ue.prototype, t, { allOwnKeys: !0 }), l.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
|
|
3495
|
-
return ho(
|
|
3495
|
+
return ho(Q(e, o));
|
|
3496
3496
|
}, n;
|
|
3497
3497
|
}
|
|
3498
3498
|
const w = ho(Xt);
|
|
@@ -3509,14 +3509,14 @@ w.all = function(t) {
|
|
|
3509
3509
|
};
|
|
3510
3510
|
w.spread = Jf;
|
|
3511
3511
|
w.isAxiosError = Vf;
|
|
3512
|
-
w.mergeConfig =
|
|
3512
|
+
w.mergeConfig = Q;
|
|
3513
3513
|
w.AxiosHeaders = j;
|
|
3514
3514
|
w.formToJSON = (e) => oo(l.isHTMLForm(e) ? new FormData(e) : e);
|
|
3515
3515
|
w.getAdapter = fo.getAdapter;
|
|
3516
3516
|
w.HttpStatusCode = Xf;
|
|
3517
3517
|
w.default = w;
|
|
3518
3518
|
const Qf = w;
|
|
3519
|
-
var
|
|
3519
|
+
var Y = /* @__PURE__ */ ((e) => (e.INIT = "init", e.CLONE = "clone", e.HOOKS = "hooks", e.CHECK = "check", e))(Y || {}), ne = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.CLONE_CONFIG = "cloneConfig", e))(ne || {}), L = /* @__PURE__ */ ((e) => (e.GITHUB = "github", e.GITEE = "gitee", e))(L || {}), Pe = /* @__PURE__ */ ((e) => (e.REVERSE_MERGE = "reverseMerge", e))(Pe || {}), D = /* @__PURE__ */ ((e) => (e.REFLOG_ACTION = "reflog-action", e.COMMIT_MSG = "commit-msg", e.COMMIT_RECORD = "commit-record", e.PRE_REBASE = "pre-rebase", e))(D || {});
|
|
3520
3520
|
const Zf = 3e4, kn = Math.random(), mo = {
|
|
3521
3521
|
timeout: Zf,
|
|
3522
3522
|
getBusinessCode() {
|
|
@@ -3648,7 +3648,7 @@ const Zf = 3e4, kn = Math.random(), mo = {
|
|
|
3648
3648
|
platform: e,
|
|
3649
3649
|
username: t
|
|
3650
3650
|
};
|
|
3651
|
-
e || (n.platform = (await
|
|
3651
|
+
e || (n.platform = (await S(en())).platform), t || (n.username = (await S(tn())).username);
|
|
3652
3652
|
const { platform: r, username: o } = n;
|
|
3653
3653
|
let s = [];
|
|
3654
3654
|
const i = sp({
|
|
@@ -3688,7 +3688,7 @@ const Zf = 3e4, kn = Math.random(), mo = {
|
|
|
3688
3688
|
return;
|
|
3689
3689
|
} else
|
|
3690
3690
|
R.stage(`共${s.length}个仓库`);
|
|
3691
|
-
const { repoUrl: f } = await
|
|
3691
|
+
const { repoUrl: f } = await S({
|
|
3692
3692
|
name: "repoUrl",
|
|
3693
3693
|
type: "select",
|
|
3694
3694
|
message: "选择仓库",
|
|
@@ -3715,7 +3715,7 @@ const Zf = 3e4, kn = Math.random(), mo = {
|
|
|
3715
3715
|
v.PRE_REBASE
|
|
3716
3716
|
], at = (e) => {
|
|
3717
3717
|
const {
|
|
3718
|
-
[
|
|
3718
|
+
[Y.CHECK]: { [Pe.REVERSE_MERGE]: t }
|
|
3719
3719
|
} = e;
|
|
3720
3720
|
return t;
|
|
3721
3721
|
}, fp = (e) => Math.max(
|
|
@@ -3752,7 +3752,7 @@ const Zf = 3e4, kn = Math.random(), mo = {
|
|
|
3752
3752
|
);
|
|
3753
3753
|
return s || R.skip(`跳过: 允许${r} => ${o}`), s;
|
|
3754
3754
|
}, hp = {
|
|
3755
|
-
[
|
|
3755
|
+
[Y.CHECK]: {
|
|
3756
3756
|
[Pe.REVERSE_MERGE]: {
|
|
3757
3757
|
[/^test$/.source]: {
|
|
3758
3758
|
includeRebase: !0,
|
|
@@ -3772,7 +3772,7 @@ const Zf = 3e4, kn = Math.random(), mo = {
|
|
|
3772
3772
|
default: ne.DEFAULT
|
|
3773
3773
|
}
|
|
3774
3774
|
}), mp = (e) => {
|
|
3775
|
-
|
|
3775
|
+
q(`npm pkg set scripts.postprepare="${e} init"`);
|
|
3776
3776
|
}, gp = async (e) => {
|
|
3777
3777
|
const { type: t } = e;
|
|
3778
3778
|
switch (t) {
|
|
@@ -3789,7 +3789,7 @@ const Zf = 3e4, kn = Math.random(), mo = {
|
|
|
3789
3789
|
});
|
|
3790
3790
|
}
|
|
3791
3791
|
case ne.CLONE_CONFIG: {
|
|
3792
|
-
const { rootDir: n } = e, { platform: r } = await
|
|
3792
|
+
const { rootDir: n } = e, { platform: r } = await S(en()), { username: o } = await S(tn()), { accessToken: s } = await S(ap);
|
|
3793
3793
|
return ip({
|
|
3794
3794
|
rootDir: n,
|
|
3795
3795
|
platform: r,
|
|
@@ -3801,7 +3801,7 @@ const Zf = 3e4, kn = Math.random(), mo = {
|
|
|
3801
3801
|
throw new Error(`未知的初始化类型: ${t}`);
|
|
3802
3802
|
}
|
|
3803
3803
|
}, yp = {
|
|
3804
|
-
command:
|
|
3804
|
+
command: Y.INIT,
|
|
3805
3805
|
describe: "初始化配置文件",
|
|
3806
3806
|
options: dp(),
|
|
3807
3807
|
handler: gp
|
|
@@ -3823,12 +3823,12 @@ const Zf = 3e4, kn = Math.random(), mo = {
|
|
|
3823
3823
|
}
|
|
3824
3824
|
}), Ro = async (e) => {
|
|
3825
3825
|
const t = await cp(e), { projectName: n } = e;
|
|
3826
|
-
|
|
3826
|
+
q(
|
|
3827
3827
|
`git clone ${t} ${n ? `${n} ` : ""}--depth=1`,
|
|
3828
3828
|
{ stdio: "inherit" }
|
|
3829
3829
|
), R.success(`克隆${t}成功`);
|
|
3830
3830
|
}, bp = {
|
|
3831
|
-
command: `${
|
|
3831
|
+
command: `${Y.CLONE} <platform> <username>`,
|
|
3832
3832
|
describe: "从选择的git平台克隆代码",
|
|
3833
3833
|
options: Ep(),
|
|
3834
3834
|
positionals: _p(),
|
|
@@ -4011,7 +4011,7 @@ const Zf = 3e4, kn = Math.random(), mo = {
|
|
|
4011
4011
|
throw new Error(`不支持的检测类型${n}`);
|
|
4012
4012
|
}
|
|
4013
4013
|
}, Ap = {
|
|
4014
|
-
command: `${
|
|
4014
|
+
command: `${Y.CHECK} <type>`,
|
|
4015
4015
|
describe: "检查git操作",
|
|
4016
4016
|
options: Rp(),
|
|
4017
4017
|
positionals: Op(),
|
|
@@ -4069,7 +4069,7 @@ const Zf = 3e4, kn = Math.random(), mo = {
|
|
|
4069
4069
|
R.error(`${t} 当前未支持处理`);
|
|
4070
4070
|
}
|
|
4071
4071
|
}, jp = {
|
|
4072
|
-
command: `${
|
|
4072
|
+
command: `${Y.HOOKS} <name> [args...]`,
|
|
4073
4073
|
describe: "git钩子回调",
|
|
4074
4074
|
options: $p(),
|
|
4075
4075
|
positionals: Np(),
|
|
@@ -4083,9 +4083,9 @@ const Zf = 3e4, kn = Math.random(), mo = {
|
|
|
4083
4083
|
].map(St), Gn({ packageJson: Zt });
|
|
4084
4084
|
const Bp = async (e) => {
|
|
4085
4085
|
console.log("克隆done-coding系列项目"), console.log("选择平台:");
|
|
4086
|
-
const { platform: t } = await
|
|
4086
|
+
const { platform: t } = await S(en(L.GITEE));
|
|
4087
4087
|
console.log("选择用户名:");
|
|
4088
|
-
const { username: n } = await
|
|
4088
|
+
const { username: n } = await S(
|
|
4089
4089
|
tn(
|
|
4090
4090
|
{
|
|
4091
4091
|
[L.GITHUB]: "done-coding",
|
|
@@ -4117,23 +4117,23 @@ const Bp = async (e) => {
|
|
|
4117
4117
|
R.info("仅仅(从done-coding系列项目列表中)克隆远程仓库"), await Bp(t);
|
|
4118
4118
|
return;
|
|
4119
4119
|
}
|
|
4120
|
-
const o = ((t ?? (await
|
|
4120
|
+
const o = ((t ?? (await S(Ko)).projectName) || "").trim();
|
|
4121
4121
|
if (!o)
|
|
4122
4122
|
return R.error("项目名称不能为空"), process.exit(1);
|
|
4123
4123
|
if (o.includes(" ") || o.includes("\\") || o.includes("/"))
|
|
4124
4124
|
return R.error(`项目名称\`${o}\`不能包含空格或者\\或者/`), process.exit(1);
|
|
4125
4125
|
const s = Io(process.cwd(), o);
|
|
4126
4126
|
if (on(s)) {
|
|
4127
|
-
const { isRemove: m } = await
|
|
4127
|
+
const { isRemove: m } = await S(Vo());
|
|
4128
4128
|
if (m === !0)
|
|
4129
4129
|
je(s, { recursive: !0, force: !0 });
|
|
4130
4130
|
else
|
|
4131
4131
|
return R.error(`项目${o}已存在`), process.exit(1);
|
|
4132
4132
|
}
|
|
4133
|
-
const { template: i } = await
|
|
4133
|
+
const { template: i } = await S(await zo());
|
|
4134
4134
|
let a = "", u = "";
|
|
4135
4135
|
if (i === Kn) {
|
|
4136
|
-
const { customUrl: m } = await
|
|
4136
|
+
const { customUrl: m } = await S(Xo);
|
|
4137
4137
|
a = m;
|
|
4138
4138
|
} else if (i === Wn)
|
|
4139
4139
|
a = await Go();
|
|
@@ -4148,7 +4148,7 @@ const Bp = async (e) => {
|
|
|
4148
4148
|
if (a = m.url, typeof m.branch == "string")
|
|
4149
4149
|
u = m.branch;
|
|
4150
4150
|
else if (Array.isArray(m.branch) && m.branch.length > 0) {
|
|
4151
|
-
const { targetBranch: h } = await
|
|
4151
|
+
const { targetBranch: h } = await S({
|
|
4152
4152
|
type: "select",
|
|
4153
4153
|
name: "targetBranch",
|
|
4154
4154
|
message: "请选择模板分支",
|
|
@@ -4163,10 +4163,26 @@ const Bp = async (e) => {
|
|
|
4163
4163
|
}
|
|
4164
4164
|
}
|
|
4165
4165
|
const f = qn(".git");
|
|
4166
|
-
R.stage("正在初始化项目,请稍等..."),
|
|
4166
|
+
if (R.stage("正在初始化项目,请稍等..."), q(
|
|
4167
4167
|
`git clone${u ? ` -b ${u}` : ""} ${a} ${o} --depth=1`,
|
|
4168
4168
|
{ stdio: "inherit" }
|
|
4169
|
-
)
|
|
4169
|
+
), !f && u) {
|
|
4170
|
+
const { isChangeBranchName: m } = await S({
|
|
4171
|
+
type: "confirm",
|
|
4172
|
+
name: "isChangeBranchName",
|
|
4173
|
+
message: `是否要重命名指定克隆分支名(${u})在本地的分支名`,
|
|
4174
|
+
initial: !1
|
|
4175
|
+
});
|
|
4176
|
+
if (m) {
|
|
4177
|
+
const { localBranchName: h } = await S({
|
|
4178
|
+
type: "text",
|
|
4179
|
+
name: "localBranchName",
|
|
4180
|
+
message: "请输入克隆到本地后的分支名",
|
|
4181
|
+
initial: "master"
|
|
4182
|
+
});
|
|
4183
|
+
q(`git branch -m ${h}`);
|
|
4184
|
+
}
|
|
4185
|
+
}
|
|
4170
4186
|
const c = Ho, p = Mo({
|
|
4171
4187
|
rootDir: s,
|
|
4172
4188
|
configPath: c
|
|
@@ -4184,8 +4200,8 @@ const Bp = async (e) => {
|
|
|
4184
4200
|
je(h, { recursive: !0, force: !0 }), R.stage(
|
|
4185
4201
|
`项目创建在父级git仓库${f}中,已删除${o}目录下的.git(${h})`
|
|
4186
4202
|
);
|
|
4187
|
-
} else if ((await
|
|
4188
|
-
|
|
4203
|
+
} else if ((await S(Jo)).saveGitHistory)
|
|
4204
|
+
q("git remote rename origin upstream && git fetch --unshallow", {
|
|
4189
4205
|
cwd: s,
|
|
4190
4206
|
stdio: "inherit"
|
|
4191
4207
|
}), R.stage(
|
|
@@ -4193,15 +4209,15 @@ const Bp = async (e) => {
|
|
|
4193
4209
|
), R.success("已保存git历史记录");
|
|
4194
4210
|
else {
|
|
4195
4211
|
const h = Ee.resolve(s, ".git");
|
|
4196
|
-
je(h, { recursive: !0, force: !0 }),
|
|
4212
|
+
je(h, { recursive: !0, force: !0 }), q("git init", {
|
|
4197
4213
|
cwd: s,
|
|
4198
4214
|
stdio: "inherit"
|
|
4199
4215
|
});
|
|
4200
4216
|
}
|
|
4201
|
-
const { gitCommitMessage: g } = await
|
|
4217
|
+
const { gitCommitMessage: g } = await S(
|
|
4202
4218
|
Qo(o)
|
|
4203
4219
|
);
|
|
4204
|
-
|
|
4220
|
+
q(`git add . && git commit -m '${g}'`, {
|
|
4205
4221
|
cwd: s,
|
|
4206
4222
|
stdio: "inherit"
|
|
4207
4223
|
}), R.success(`项目${o}初始化完成`), R.info(`
|
package/es/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { S as d, e as s, a as p, b as c, h as b, d as l } from "./index-
|
|
2
|
+
import { S as d, e as s, a as p, b as c, h as b, d as l } from "./index-e840639c.js";
|
|
3
3
|
import "@done-coding/cli-utils";
|
|
4
4
|
import "node:child_process";
|
|
5
5
|
import "node:fs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-done-coding",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.19-alpha.0",
|
|
4
4
|
"description": "项目创建命令行工具",
|
|
5
5
|
"module": "es/index.mjs",
|
|
6
6
|
"type": "module",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"@done-coding/cli-template": "0.8.4",
|
|
55
55
|
"@done-coding/cli-utils": "0.7.7"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "1fb8a91d6b0e4147c0cf14b5e4c6820b14136f77"
|
|
58
58
|
}
|