@modern-js/repo-generator 0.0.0-next-20241014070959 → 0.0.0-next-20241015030726
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/dist/index.js +42 -11
- package/package.json +12 -12
package/dist/index.js
CHANGED
|
@@ -129,6 +129,13 @@
|
|
|
129
129
|
module1.exports = (typeof globalThis !== "undefined" ? globalThis : typeof global !== "undefined" ? global : self || Function("return this")())["codesmithFsUtils"];
|
|
130
130
|
}
|
|
131
131
|
});
|
|
132
|
+
// globals:@modern-js/codesmith-utils/ora
|
|
133
|
+
var require_ora = __commonJS({
|
|
134
|
+
"globals:@modern-js/codesmith-utils/ora" (exports, module1) {
|
|
135
|
+
"use strict";
|
|
136
|
+
module1.exports = (typeof globalThis !== "undefined" ? globalThis : typeof global !== "undefined" ? global : self || Function("return this")())["codesmithOraUtils"];
|
|
137
|
+
}
|
|
138
|
+
});
|
|
132
139
|
// globals:@modern-js/codesmith-utils/execa
|
|
133
140
|
var require_execa = __commonJS({
|
|
134
141
|
"globals:@modern-js/codesmith-utils/execa" (exports, module1) {
|
|
@@ -150,13 +157,6 @@
|
|
|
150
157
|
module1.exports = (typeof globalThis !== "undefined" ? globalThis : typeof global !== "undefined" ? global : self || Function("return this")())["codesmithSemverUtils"];
|
|
151
158
|
}
|
|
152
159
|
});
|
|
153
|
-
// globals:@modern-js/codesmith-utils/ora
|
|
154
|
-
var require_ora = __commonJS({
|
|
155
|
-
"globals:@modern-js/codesmith-utils/ora" (exports, module1) {
|
|
156
|
-
"use strict";
|
|
157
|
-
module1.exports = (typeof globalThis !== "undefined" ? globalThis : typeof global !== "undefined" ? global : self || Function("return this")())["codesmithOraUtils"];
|
|
158
|
-
}
|
|
159
|
-
});
|
|
160
160
|
// globals:@modern-js/codesmith-utils/chalk
|
|
161
161
|
var require_chalk = __commonJS({
|
|
162
162
|
"globals:@modern-js/codesmith-utils/chalk" (exports, module1) {
|
|
@@ -19599,6 +19599,7 @@ function encode_char(c) {
|
|
|
19599
19599
|
// ../../generator-utils/dist/esm/index.js
|
|
19600
19600
|
var import_codesmith = __toESM(require_codesmith());
|
|
19601
19601
|
var import_fs_extra = __toESM(require_fs_extra());
|
|
19602
|
+
var import_ora = __toESM(require_ora());
|
|
19602
19603
|
// ../../generator-utils/dist/esm/locale/index.js
|
|
19603
19604
|
var import_plugin_i18n2 = __toESM(require_plugin_i18n());
|
|
19604
19605
|
// ../../generator-utils/dist/esm/locale/en.js
|
|
@@ -20832,17 +20833,23 @@ function encode_char(c) {
|
|
|
20832
20833
|
// ../../generator-utils/dist/esm/index.js
|
|
20833
20834
|
var import_npm2 = __toESM(require_npm());
|
|
20834
20835
|
var import_fs_extra2 = __toESM(require_fs_extra());
|
|
20835
|
-
var
|
|
20836
|
+
var import_ora2 = __toESM(require_ora());
|
|
20836
20837
|
var import_semver2 = __toESM(require_semver());
|
|
20837
20838
|
var import_execa2 = __toESM(require_execa());
|
|
20838
20839
|
var import_chalk = __toESM(require_chalk());
|
|
20839
20840
|
function getPackageVersion(packageName, registryUrl) {
|
|
20840
20841
|
return __async(this, null, function*() {
|
|
20841
|
-
const
|
|
20842
|
-
|
|
20843
|
-
|
|
20842
|
+
const spinner = (0, import_ora.ora)({
|
|
20843
|
+
text: "Load Generator...",
|
|
20844
|
+
spinner: "runner"
|
|
20845
|
+
}).start();
|
|
20846
|
+
const { name, version: pkgVersion } = (0, import_codesmith.getPackageInfo)(packageName);
|
|
20847
|
+
const version = yield (0, import_codesmith.getNpmVersion)(name, {
|
|
20848
|
+
version: pkgVersion,
|
|
20844
20849
|
registryUrl
|
|
20845
20850
|
});
|
|
20851
|
+
spinner.stop();
|
|
20852
|
+
return version;
|
|
20846
20853
|
});
|
|
20847
20854
|
}
|
|
20848
20855
|
function getModernPluginVersion(_0, _1) {
|
|
@@ -21844,6 +21851,16 @@ function encode_char(c) {
|
|
|
21844
21851
|
if (!alreadyRepo(cwd)) {
|
|
21845
21852
|
smith.logger.warn("not valid modern.js repo");
|
|
21846
21853
|
}
|
|
21854
|
+
const prepareGlobalPromise = smith.prepareGlobal();
|
|
21855
|
+
const prepareGeneratorPromise = smith.prepareGenerators([
|
|
21856
|
+
`@modern-js/dependence-generator@${distTag || "latest"}`,
|
|
21857
|
+
`@modern-js/bff-generator@${distTag || "latest"}`,
|
|
21858
|
+
`@modern-js/server-generator@${distTag || "latest"}`,
|
|
21859
|
+
`@modern-js/entry-generator@${distTag || "latest"}`,
|
|
21860
|
+
`@modern-js/ssg-generator@${distTag || "latest"}`,
|
|
21861
|
+
`@modern-js/storybook-next-generator@${distTag || "latest"}`,
|
|
21862
|
+
`@modern-js/tailwindcss-generator@${distTag || "latest"}`
|
|
21863
|
+
]);
|
|
21847
21864
|
const formilyAPI = new import_codesmith_formily.FormilyAPI({
|
|
21848
21865
|
materials: {},
|
|
21849
21866
|
config: {},
|
|
@@ -21909,6 +21926,10 @@ function encode_char(c) {
|
|
|
21909
21926
|
config: finalConfig
|
|
21910
21927
|
}
|
|
21911
21928
|
];
|
|
21929
|
+
yield Promise.all([
|
|
21930
|
+
prepareGlobalPromise,
|
|
21931
|
+
prepareGeneratorPromise
|
|
21932
|
+
]);
|
|
21912
21933
|
yield smith.forge({
|
|
21913
21934
|
tasks: task.map((runner)=>({
|
|
21914
21935
|
generator: runner.name,
|
|
@@ -21940,6 +21961,12 @@ function encode_char(c) {
|
|
|
21940
21961
|
if (!alreadyRepo(cwd)) {
|
|
21941
21962
|
smith.logger.warn("not valid modern.js repo");
|
|
21942
21963
|
}
|
|
21964
|
+
const prepareGlobalPromise = smith.prepareGlobal();
|
|
21965
|
+
const prepareGeneratorPromise = smith.prepareGenerators([
|
|
21966
|
+
`@modern-js/dependence-generator@${distTag || "latest"}`,
|
|
21967
|
+
`@modern-js/module-doc-generator@${distTag || "latest"}`,
|
|
21968
|
+
`@modern-js/storybook-next-generator@${distTag || "latest"}`
|
|
21969
|
+
]);
|
|
21943
21970
|
const formilyAPI = new import_codesmith_formily2.FormilyAPI({
|
|
21944
21971
|
materials: {},
|
|
21945
21972
|
config: {},
|
|
@@ -22012,6 +22039,10 @@ function encode_char(c) {
|
|
|
22012
22039
|
config: finalConfig
|
|
22013
22040
|
}
|
|
22014
22041
|
];
|
|
22042
|
+
yield Promise.all([
|
|
22043
|
+
prepareGlobalPromise,
|
|
22044
|
+
prepareGeneratorPromise
|
|
22045
|
+
]);
|
|
22015
22046
|
yield smith.forge({
|
|
22016
22047
|
tasks: task.map((runner)=>({
|
|
22017
22048
|
generator: runner.name,
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "0.0.0-next-
|
|
18
|
+
"version": "0.0.0-next-20241015030726",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"main": "./dist/index.js",
|
|
21
21
|
"files": [
|
|
@@ -23,21 +23,21 @@
|
|
|
23
23
|
"/dist/index.js"
|
|
24
24
|
],
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@modern-js/codesmith-utils": "2.
|
|
27
|
-
"@modern-js/codesmith": "2.
|
|
28
|
-
"@modern-js/codesmith-api-app": "2.
|
|
26
|
+
"@modern-js/codesmith-utils": "2.6.0",
|
|
27
|
+
"@modern-js/codesmith": "2.6.0",
|
|
28
|
+
"@modern-js/codesmith-api-app": "2.6.0",
|
|
29
29
|
"@types/jest": "^29",
|
|
30
30
|
"@types/node": "^14",
|
|
31
31
|
"jest": "^29",
|
|
32
32
|
"typescript": "^5",
|
|
33
|
-
"@modern-js/base-generator": "0.0.0-next-
|
|
34
|
-
"@modern-js/generator-common": "0.0.0-next-
|
|
35
|
-
"@modern-js/
|
|
36
|
-
"@modern-js/generator-utils": "0.0.0-next-
|
|
37
|
-
"@modern-js/
|
|
38
|
-
"@scripts/build": "0.0.0-next-
|
|
39
|
-
"@scripts/jest-config": "0.0.0-next-
|
|
40
|
-
"@modern-js/generator
|
|
33
|
+
"@modern-js/base-generator": "0.0.0-next-20241015030726",
|
|
34
|
+
"@modern-js/generator-common": "0.0.0-next-20241015030726",
|
|
35
|
+
"@modern-js/generator-plugin": "0.0.0-next-20241015030726",
|
|
36
|
+
"@modern-js/generator-utils": "0.0.0-next-20241015030726",
|
|
37
|
+
"@modern-js/module-generator": "0.0.0-next-20241015030726",
|
|
38
|
+
"@scripts/build": "0.0.0-next-20241015030726",
|
|
39
|
+
"@scripts/jest-config": "0.0.0-next-20241015030726",
|
|
40
|
+
"@modern-js/mwa-generator": "0.0.0-next-20241015030726"
|
|
41
41
|
},
|
|
42
42
|
"sideEffects": false,
|
|
43
43
|
"publishConfig": {
|