@modern-js/bff-generator 3.7.1 → 3.7.3

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 +52 -82
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -181,21 +181,6 @@
181
181
  var import_plugin_i18n = __toESM(require_plugin_i18n());
182
182
  // ../../generator-common/dist/esm-node/locale/en.js
183
183
  var EN_LOCALE = {
184
- solution: {
185
- self: "Please select the type of project you want to create:",
186
- mwa: "Web App",
187
- module: "Npm Module",
188
- custom: "Custom Solution",
189
- default: "Default"
190
- },
191
- scenes: {
192
- self: "Please select the project scenario:"
193
- },
194
- sub_solution: {
195
- self: "Please select the type of project you want to create:",
196
- mwa: "Web App",
197
- module: "Npm Module"
198
- },
199
184
  action: {
200
185
  self: "Please select the operation you want:",
201
186
  function: {
@@ -267,21 +252,6 @@
267
252
  };
268
253
  // ../../generator-common/dist/esm-node/locale/zh.js
269
254
  var ZH_LOCALE = {
270
- solution: {
271
- self: "请选择你想创建的工程类型",
272
- mwa: "Web 应用",
273
- module: "Npm 模块",
274
- custom: "自定义",
275
- default: "默认"
276
- },
277
- scenes: {
278
- self: "请选择项目场景"
279
- },
280
- sub_solution: {
281
- self: "请选择你想创建的工程类型",
282
- mwa: "Web 应用",
283
- module: "Npm 模块"
284
- },
285
255
  action: {
286
256
  self: "请选择你想要的操作",
287
257
  function: {
@@ -373,58 +343,6 @@
373
343
  Language2["TS"] = "ts";
374
344
  Language2["JS"] = "js";
375
345
  })(Language || (Language = {}));
376
- // ../../generator-common/dist/esm-node/mwa/common.js
377
- var Framework;
378
- (function(Framework2) {
379
- Framework2["Express"] = "express";
380
- Framework2["Koa"] = "koa";
381
- })(Framework || (Framework = {}));
382
- var getFrameworkSchema = (_extra = {})=>{
383
- return {
384
- type: "string",
385
- title: i18n.t(localeKeys.framework.self),
386
- enum: Object.values(Framework).map((framework)=>({
387
- value: framework,
388
- label: i18n.t(localeKeys.framework[framework])
389
- }))
390
- };
391
- };
392
- var FrameworkAppendTypeContent = {
393
- ["express"]: `/// <reference types='@modern-js/plugin-express/types' />`,
394
- ["koa"]: `/// <reference types='@modern-js/plugin-koa/types' />`
395
- };
396
- // ../../generator-common/dist/esm-node/mwa/bff.js
397
- var BFFType;
398
- (function(BFFType2) {
399
- BFFType2["Func"] = "func";
400
- BFFType2["Framework"] = "framework";
401
- })(BFFType || (BFFType = {}));
402
- var getBFFTypeSchema = (_extra = {})=>{
403
- return {
404
- type: "string",
405
- title: i18n.t(localeKeys.bff.bffType.self),
406
- enum: Object.values(BFFType).map((bffType)=>({
407
- value: bffType,
408
- label: i18n.t(localeKeys.bff.bffType[bffType])
409
- }))
410
- };
411
- };
412
- var getBFFchemaProperties = (extra)=>{
413
- return {
414
- bffType: getBFFTypeSchema(extra),
415
- framework: getFrameworkSchema(extra)
416
- };
417
- };
418
- var getBFFSchema = (extra = {})=>{
419
- return {
420
- type: "object",
421
- properties: getBFFchemaProperties(extra)
422
- };
423
- };
424
- var MWADefaultBffConfig = {
425
- bffType: "func",
426
- frameWork: Framework.Express
427
- };
428
346
  // ../../generator-common/dist/esm-node/newAction/common/index.js
429
347
  var ActionType;
430
348
  (function(ActionType2) {
@@ -455,6 +373,26 @@
455
373
  (function(ActionRefactor2) {
456
374
  ActionRefactor2["ReactRouter5"] = "react_router_5";
457
375
  })(ActionRefactor || (ActionRefactor = {}));
376
+ // ../../generator-common/dist/esm-node/mwa/common.js
377
+ var Framework;
378
+ (function(Framework2) {
379
+ Framework2["Express"] = "express";
380
+ Framework2["Koa"] = "koa";
381
+ })(Framework || (Framework = {}));
382
+ var getFrameworkSchema = (_extra = {})=>{
383
+ return {
384
+ type: "string",
385
+ title: i18n.t(localeKeys.framework.self),
386
+ enum: Object.values(Framework).map((framework)=>({
387
+ value: framework,
388
+ label: i18n.t(localeKeys.framework[framework])
389
+ }))
390
+ };
391
+ };
392
+ var FrameworkAppendTypeContent = {
393
+ ["express"]: `/// <reference types='@modern-js/plugin-express/types' />`,
394
+ ["koa"]: `/// <reference types='@modern-js/plugin-koa/types' />`
395
+ };
458
396
  // ../../generator-common/dist/esm-node/newAction/mwa/index.js
459
397
  var MWAActionTypes = [
460
398
  ActionType.Element,
@@ -566,6 +504,38 @@
566
504
  [Framework.Express]: "@modern-js/plugin-express",
567
505
  [Framework.Koa]: "@modern-js/plugin-koa"
568
506
  };
507
+ // ../../generator-common/dist/esm-node/mwa/bff.js
508
+ var BFFType;
509
+ (function(BFFType2) {
510
+ BFFType2["Func"] = "func";
511
+ BFFType2["Framework"] = "framework";
512
+ })(BFFType || (BFFType = {}));
513
+ var getBFFTypeSchema = (_extra = {})=>{
514
+ return {
515
+ type: "string",
516
+ title: i18n.t(localeKeys.bff.bffType.self),
517
+ enum: Object.values(BFFType).map((bffType)=>({
518
+ value: bffType,
519
+ label: i18n.t(localeKeys.bff.bffType[bffType])
520
+ }))
521
+ };
522
+ };
523
+ var getBFFchemaProperties = (extra)=>{
524
+ return {
525
+ bffType: getBFFTypeSchema(extra),
526
+ framework: getFrameworkSchema(extra)
527
+ };
528
+ };
529
+ var getBFFSchema = (extra = {})=>{
530
+ return {
531
+ type: "object",
532
+ properties: getBFFchemaProperties(extra)
533
+ };
534
+ };
535
+ var MWADefaultBffConfig = {
536
+ bffType: "func",
537
+ frameWork: Framework.Express
538
+ };
569
539
  // ../../generator-utils/dist/esm/index.js
570
540
  var import_codesmith = __toESM(require_codesmith());
571
541
  var import_fs_extra4 = __toESM(require_fs_extra());
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "3.7.1",
18
+ "version": "3.7.3",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./src/index.ts",
21
21
  "main": "./dist/index.js",
@@ -32,11 +32,11 @@
32
32
  "@types/node": "^14",
33
33
  "jest": "^29",
34
34
  "typescript": "^5",
35
- "@modern-js/generator-utils": "3.7.1",
36
- "@modern-js/plugin-i18n": "2.60.5",
37
- "@scripts/build": "2.60.5",
38
- "@scripts/jest-config": "2.60.5",
39
- "@modern-js/generator-common": "3.7.1"
35
+ "@modern-js/generator-common": "3.7.3",
36
+ "@modern-js/generator-utils": "3.7.3",
37
+ "@modern-js/plugin-i18n": "2.61.0",
38
+ "@scripts/build": "2.61.0",
39
+ "@scripts/jest-config": "2.61.0"
40
40
  },
41
41
  "sideEffects": false,
42
42
  "publishConfig": {