@modern-js/repo-generator 0.0.0-next-20241014073503 → 0.0.0-next-20241015033921

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.
Files changed (2) hide show
  1. package/dist/index.js +30 -0
  2. package/package.json +12 -12
package/dist/index.js CHANGED
@@ -21833,6 +21833,7 @@ function encode_char(c) {
21833
21833
  };
21834
21834
  // ../../new-action/dist/esm/mwa.js
21835
21835
  var MWANewAction = (options)=>__async(void 0, null, function*() {
21836
+ var _smith_logger, _smith_logger1;
21836
21837
  const { locale = "zh", distTag = "", debug = false, registry = "", config = "{}", cwd = process.cwd(), needInstall = true } = options;
21837
21838
  let UserConfig = {};
21838
21839
  try {
@@ -21851,6 +21852,17 @@ function encode_char(c) {
21851
21852
  if (!alreadyRepo(cwd)) {
21852
21853
  smith.logger.warn("not valid modern.js repo");
21853
21854
  }
21855
+ (_smith_logger = smith.logger) === null || _smith_logger === void 0 ? void 0 : _smith_logger.timing("🕒 Run MWA New Tools");
21856
+ const prepareGlobalPromise = smith.prepareGlobal();
21857
+ const prepareGeneratorPromise = smith.prepareGenerators([
21858
+ `@modern-js/dependence-generator@${distTag || "latest"}`,
21859
+ `@modern-js/bff-generator@${distTag || "latest"}`,
21860
+ `@modern-js/server-generator@${distTag || "latest"}`,
21861
+ `@modern-js/entry-generator@${distTag || "latest"}`,
21862
+ `@modern-js/ssg-generator@${distTag || "latest"}`,
21863
+ `@modern-js/storybook-next-generator@${distTag || "latest"}`,
21864
+ `@modern-js/tailwindcss-generator@${distTag || "latest"}`
21865
+ ]);
21854
21866
  const formilyAPI = new import_codesmith_formily.FormilyAPI({
21855
21867
  materials: {},
21856
21868
  config: {},
@@ -21916,6 +21928,10 @@ function encode_char(c) {
21916
21928
  config: finalConfig
21917
21929
  }
21918
21930
  ];
21931
+ yield Promise.all([
21932
+ prepareGlobalPromise,
21933
+ prepareGeneratorPromise
21934
+ ]);
21919
21935
  yield smith.forge({
21920
21936
  tasks: task.map((runner)=>({
21921
21937
  generator: runner.name,
@@ -21923,12 +21939,14 @@ function encode_char(c) {
21923
21939
  })),
21924
21940
  pwd: cwd
21925
21941
  });
21942
+ (_smith_logger1 = smith.logger) === null || _smith_logger1 === void 0 ? void 0 : _smith_logger1.timing("🕒 Run MWA New Tools", true);
21926
21943
  });
21927
21944
  // ../../new-action/dist/esm/module.js
21928
21945
  var import_codesmith4 = __toESM(require_codesmith());
21929
21946
  var import_codesmith_formily2 = __toESM(require_codesmith_formily());
21930
21947
  var import_lodash3 = __toESM(require_lodash());
21931
21948
  var ModuleNewAction = (options)=>__async(void 0, null, function*() {
21949
+ var _smith_logger, _smith_logger1;
21932
21950
  const { locale = "zh", distTag = "", debug = false, registry = "", config = "{}", cwd = process.cwd(), needInstall = true } = options;
21933
21951
  let UserConfig = {};
21934
21952
  try {
@@ -21947,6 +21965,13 @@ function encode_char(c) {
21947
21965
  if (!alreadyRepo(cwd)) {
21948
21966
  smith.logger.warn("not valid modern.js repo");
21949
21967
  }
21968
+ (_smith_logger = smith.logger) === null || _smith_logger === void 0 ? void 0 : _smith_logger.timing("🕒 Run Module New Tools");
21969
+ const prepareGlobalPromise = smith.prepareGlobal();
21970
+ const prepareGeneratorPromise = smith.prepareGenerators([
21971
+ `@modern-js/dependence-generator@${distTag || "latest"}`,
21972
+ `@modern-js/module-doc-generator@${distTag || "latest"}`,
21973
+ `@modern-js/storybook-next-generator@${distTag || "latest"}`
21974
+ ]);
21950
21975
  const formilyAPI = new import_codesmith_formily2.FormilyAPI({
21951
21976
  materials: {},
21952
21977
  config: {},
@@ -22019,6 +22044,10 @@ function encode_char(c) {
22019
22044
  config: finalConfig
22020
22045
  }
22021
22046
  ];
22047
+ yield Promise.all([
22048
+ prepareGlobalPromise,
22049
+ prepareGeneratorPromise
22050
+ ]);
22022
22051
  yield smith.forge({
22023
22052
  tasks: task.map((runner)=>({
22024
22053
  generator: runner.name,
@@ -22026,6 +22055,7 @@ function encode_char(c) {
22026
22055
  })),
22027
22056
  pwd: cwd
22028
22057
  });
22058
+ (_smith_logger1 = smith.logger) === null || _smith_logger1 === void 0 ? void 0 : _smith_logger1.timing("🕒 Run Module New Tools", true);
22029
22059
  });
22030
22060
  // ../../generator-plugin/dist/esm/context/new.js
22031
22061
  var PluginNewAPI = /* @__PURE__ */ function() {
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "0.0.0-next-20241014073503",
18
+ "version": "0.0.0-next-20241015033921",
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.5.1",
27
- "@modern-js/codesmith": "2.5.2",
28
- "@modern-js/codesmith-api-app": "2.5.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/generator-common": "0.0.0-next-20241014073503",
34
- "@modern-js/base-generator": "0.0.0-next-20241014073503",
35
- "@modern-js/generator-utils": "0.0.0-next-20241014073503",
36
- "@modern-js/generator-plugin": "0.0.0-next-20241014073503",
37
- "@modern-js/module-generator": "0.0.0-next-20241014073503",
38
- "@modern-js/mwa-generator": "0.0.0-next-20241014073503",
39
- "@scripts/jest-config": "0.0.0-next-20241014073503",
40
- "@scripts/build": "0.0.0-next-20241014073503"
33
+ "@modern-js/base-generator": "0.0.0-next-20241015033921",
34
+ "@modern-js/generator-plugin": "0.0.0-next-20241015033921",
35
+ "@modern-js/generator-utils": "0.0.0-next-20241015033921",
36
+ "@modern-js/module-generator": "0.0.0-next-20241015033921",
37
+ "@modern-js/generator-common": "0.0.0-next-20241015033921",
38
+ "@scripts/build": "0.0.0-next-20241015033921",
39
+ "@modern-js/mwa-generator": "0.0.0-next-20241015033921",
40
+ "@scripts/jest-config": "0.0.0-next-20241015033921"
41
41
  },
42
42
  "sideEffects": false,
43
43
  "publishConfig": {