@modern-js/repo-generator 0.0.0-canary-20221031063615 → 0.0.0-canary-20221031142147

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 +8 -67
  2. package/package.json +11 -11
package/dist/index.js CHANGED
@@ -112752,13 +112752,7 @@ var init_zh = __esmMin(() => {
112752
112752
  entry: {
112753
112753
  name: "\u8BF7\u586B\u5199\u5165\u53E3\u540D\u79F0",
112754
112754
  no_empty: "\u5165\u53E3\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A\uFF01",
112755
- no_pages: '\u5165\u53E3\u540D\u79F0\u4E0D\u652F\u6301 "pages"\uFF01',
112756
- needModifyConfig: "\u662F\u5426\u9700\u8981\u8C03\u6574\u9ED8\u8BA4\u914D\u7F6E?",
112757
- clientRoute: {
112758
- self: "\u8BF7\u9009\u62E9\u5BA2\u6237\u7AEF\u8DEF\u7531\u65B9\u5F0F",
112759
- selfControlRoute: "\u81EA\u63A7\u8DEF\u7531",
112760
- conventionalRoute: "\u7EA6\u5B9A\u5F0F\u8DEF\u7531"
112761
- }
112755
+ no_pages: '\u5165\u53E3\u540D\u79F0\u4E0D\u652F\u6301 "pages"\uFF01'
112762
112756
  },
112763
112757
  packageName: {
112764
112758
  self: "\u8BF7\u586B\u5199\u9879\u76EE\u540D\u79F0",
@@ -112861,13 +112855,7 @@ var init_en = __esmMin(() => {
112861
112855
  entry: {
112862
112856
  name: "Entry name",
112863
112857
  no_empty: "The entry name cannot be empty!",
112864
- no_pages: 'The entry name cannot be "pages"!',
112865
- needModifyConfig: "Modify the Default Configuration?",
112866
- clientRoute: {
112867
- self: "Client Routing",
112868
- selfControlRoute: "Self Control Route",
112869
- conventionalRoute: "Conventional Route"
112870
- }
112858
+ no_pages: 'The entry name cannot be "pages"!'
112871
112859
  },
112872
112860
  framework: {
112873
112861
  self: "Please select the framework you want to use",
@@ -113211,46 +113199,10 @@ var init_project3 = __esmMin(() => {
113211
113199
  var init_monorepo = __esmMin(() => {
113212
113200
  init_project3();
113213
113201
  });
113214
- var _FrameworkAppendTypeC, ClientRoute, getClientRouteSchema, getNeedModifyMWAConfigSchema, Framework, getFrameworkSchema, FrameworkAppendTypeContent;
113202
+ var _FrameworkAppendTypeC, Framework, getFrameworkSchema, FrameworkAppendTypeContent;
113215
113203
  var init_common2 = __esmMin(() => {
113216
113204
  init_defineProperty();
113217
113205
  init_locale2();
113218
- init_boolean();
113219
- (function(ClientRoute2) {
113220
- ClientRoute2["SelfControlRoute"] = "selfControlRoute";
113221
- ClientRoute2["ConventionalRoute"] = "conventionalRoute";
113222
- })(ClientRoute || (ClientRoute = {}));
113223
- getClientRouteSchema = function getClientRouteSchema2() {
113224
- var _extra = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
113225
- return {
113226
- type: "string",
113227
- title: i18n.t(localeKeys.entry.clientRoute.self),
113228
- "default": ClientRoute.SelfControlRoute,
113229
- "enum": Object.values(ClientRoute).map(function(clientRoute) {
113230
- return {
113231
- value: clientRoute,
113232
- label: i18n.t(localeKeys.entry.clientRoute[clientRoute])
113233
- };
113234
- }),
113235
- "x-reactions": [{
113236
- dependencies: ["needModifyMWAConfig"],
113237
- fulfill: {
113238
- state: {
113239
- visible: '{{$deps[0]=== "'.concat(BooleanConfig.YES, '"}}')
113240
- }
113241
- }
113242
- }]
113243
- };
113244
- };
113245
- getNeedModifyMWAConfigSchema = function getNeedModifyMWAConfigSchema2() {
113246
- var _extra = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
113247
- return {
113248
- type: "string",
113249
- title: i18n.t(localeKeys.entry.needModifyConfig),
113250
- "default": BooleanConfig.NO,
113251
- "enum": getBooleanSchemas()
113252
- };
113253
- };
113254
113206
  (function(Framework2) {
113255
113207
  Framework2["Express"] = "express";
113256
113208
  Framework2["Koa"] = "koa";
@@ -113276,7 +113228,6 @@ var getEntryNameSchema, getEntrySchemaProperties, getEntrySchema, MWADefaultEntr
113276
113228
  var init_entry = __esmMin(() => {
113277
113229
  init_locale2();
113278
113230
  init_common();
113279
- init_common2();
113280
113231
  getEntryNameSchema = function getEntryNameSchema2() {
113281
113232
  var extra = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
113282
113233
  return {
@@ -113304,9 +113255,7 @@ var init_entry = __esmMin(() => {
113304
113255
  };
113305
113256
  getEntrySchemaProperties = function getEntrySchemaProperties2(extra) {
113306
113257
  return {
113307
- name: getEntryNameSchema(extra),
113308
- needModifyMWAConfig: getNeedModifyMWAConfigSchema(extra),
113309
- clientRoute: getClientRouteSchema(extra)
113258
+ name: getEntryNameSchema(extra)
113310
113259
  };
113311
113260
  };
113312
113261
  getEntrySchema = function getEntrySchema2() {
@@ -113317,8 +113266,7 @@ var init_entry = __esmMin(() => {
113317
113266
  };
113318
113267
  };
113319
113268
  MWADefaultEntryConfig = {
113320
- needModifyMWAConfig: BooleanConfig.NO,
113321
- clientRoute: ClientRoute.SelfControlRoute
113269
+ needModifyMWAConfig: BooleanConfig.NO
113322
113270
  };
113323
113271
  });
113324
113272
  var BFFType, getBFFTypeSchema, getBFFchemaProperties, getBFFSchema, MWADefaultBffConfig;
@@ -113363,15 +113311,12 @@ var init_bff = __esmMin(() => {
113363
113311
  var getMWASchemaProperties, getMWASchema, MWADefaultConfig;
113364
113312
  var init_project4 = __esmMin(() => {
113365
113313
  init_common();
113366
- init_common2();
113367
113314
  getMWASchemaProperties = function getMWASchemaProperties2(extra) {
113368
113315
  return {
113369
113316
  packageName: getPackageNameSchema(extra),
113370
113317
  packagePath: getPackagePathSchema(extra),
113371
113318
  language: getLanguageSchema(extra),
113372
- packageManager: getPackageManagerSchema(extra),
113373
- needModifyMWAConfig: getNeedModifyMWAConfigSchema(extra),
113374
- clientRoute: getClientRouteSchema(extra)
113319
+ packageManager: getPackageManagerSchema(extra)
113375
113320
  };
113376
113321
  };
113377
113322
  getMWASchema = function getMWASchema2() {
@@ -113384,8 +113329,7 @@ var init_project4 = __esmMin(() => {
113384
113329
  MWADefaultConfig = {
113385
113330
  language: Language.TS,
113386
113331
  packageManager: PackageManager.Pnpm,
113387
- needModifyMWAConfig: BooleanConfig.NO,
113388
- clientRoute: ClientRoute.SelfControlRoute
113332
+ needModifyMWAConfig: BooleanConfig.NO
113389
113333
  };
113390
113334
  });
113391
113335
  var getServerSchema, MWADefaultServerConfig;
@@ -113735,7 +113679,6 @@ __export2(treeshaking_exports5, {
113735
113679
  BooleanConfig: () => BooleanConfig,
113736
113680
  BooleanConfigName: () => BooleanConfigName,
113737
113681
  ChangesetGenerator: () => ChangesetGenerator,
113738
- ClientRoute: () => ClientRoute,
113739
113682
  DependenceGenerator: () => DependenceGenerator,
113740
113683
  EntryGenerator: () => EntryGenerator,
113741
113684
  EslintGenerator: () => EslintGenerator,
@@ -113785,7 +113728,6 @@ __export2(treeshaking_exports5, {
113785
113728
  getBFFchemaProperties: () => getBFFchemaProperties,
113786
113729
  getBaseSchema: () => getBaseSchema,
113787
113730
  getBooleanSchemas: () => getBooleanSchemas,
113788
- getClientRouteSchema: () => getClientRouteSchema,
113789
113731
  getEntryNameSchema: () => getEntryNameSchema,
113790
113732
  getEntrySchema: () => getEntrySchema,
113791
113733
  getEntrySchemaProperties: () => getEntrySchemaProperties,
@@ -113801,7 +113743,6 @@ __export2(treeshaking_exports5, {
113801
113743
  getModuleSchemaProperties: () => getModuleSchemaProperties,
113802
113744
  getMonorepoNewActionSchema: () => getMonorepoNewActionSchema,
113803
113745
  getMonorepoSchema: () => getMonorepoSchema,
113804
- getNeedModifyMWAConfigSchema: () => getNeedModifyMWAConfigSchema,
113805
113746
  getPackageManagerSchema: () => getPackageManagerSchema,
113806
113747
  getPackageNameSchema: () => getPackageNameSchema,
113807
113748
  getPackagePathSchema: () => getPackagePathSchema,
@@ -144979,7 +144920,7 @@ var require_node9 = __commonJSMin((exports) => {
144979
144920
  }
144980
144921
  async function getModernVersion(solution, registry2) {
144981
144922
  const dep = _generatorCommon.SolutionToolsMap[solution];
144982
- const modernVersion = await getPackageVersion(dep, registry2);
144923
+ const modernVersion = await getPackageVersion(`${dep}@next`, registry2);
144983
144924
  return modernVersion;
144984
144925
  }
144985
144926
  async function getModernPluginVersion(solution, packageName, options3 = {}) {
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "0.0.0-canary-20221031063615",
14
+ "version": "0.0.0-canary-20221031142147",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "main": "./dist/index.js",
17
17
  "files": [
@@ -23,18 +23,18 @@
23
23
  },
24
24
  "devDependencies": {
25
25
  "@babel/runtime": "^7.18.0",
26
- "@modern-js/base-generator": "0.0.0-canary-20221031063615",
26
+ "@modern-js/base-generator": "0.0.0-canary-20221031142147",
27
27
  "@modern-js/codesmith": "1.6.3",
28
28
  "@modern-js/codesmith-api-app": "1.6.3",
29
- "@modern-js/generator-common": "0.0.0-canary-20221031063615",
30
- "@modern-js/generator-plugin": "0.0.0-canary-20221031063615",
31
- "@modern-js/generator-utils": "0.0.0-canary-20221031063615",
32
- "@modern-js/module-generator": "0.0.0-canary-20221031063615",
33
- "@modern-js/monorepo-generator": "0.0.0-canary-20221031063615",
34
- "@modern-js/mwa-generator": "0.0.0-canary-20221031063615",
35
- "@modern-js/utils": "0.0.0-canary-20221031063615",
36
- "@scripts/build": "0.0.0-canary-20221031063615",
37
- "@scripts/jest-config": "0.0.0-canary-20221031063615",
29
+ "@modern-js/generator-common": "0.0.0-canary-20221031142147",
30
+ "@modern-js/generator-plugin": "0.0.0-canary-20221031142147",
31
+ "@modern-js/generator-utils": "0.0.0-canary-20221031142147",
32
+ "@modern-js/module-generator": "0.0.0-canary-20221031142147",
33
+ "@modern-js/monorepo-generator": "0.0.0-canary-20221031142147",
34
+ "@modern-js/mwa-generator": "0.0.0-canary-20221031142147",
35
+ "@modern-js/utils": "0.0.0-canary-20221031142147",
36
+ "@scripts/build": "0.0.0-canary-20221031142147",
37
+ "@scripts/jest-config": "0.0.0-canary-20221031142147",
38
38
  "@types/jest": "^27",
39
39
  "@types/node": "^14",
40
40
  "jest": "^27",