@modern-js/repo-generator 0.0.0-nightly-20231113170648 → 0.0.0-nightly-20231115170655
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 +107 -111
- package/package.json +11 -11
package/dist/index.js
CHANGED
|
@@ -72381,6 +72381,15 @@ var AppAPI = class {
|
|
|
72381
72381
|
}
|
|
72382
72382
|
};
|
|
72383
72383
|
|
|
72384
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_define_property.js
|
|
72385
|
+
function _define_property2(obj, key, value) {
|
|
72386
|
+
if (key in obj) {
|
|
72387
|
+
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
72388
|
+
} else
|
|
72389
|
+
obj[key] = value;
|
|
72390
|
+
return obj;
|
|
72391
|
+
}
|
|
72392
|
+
|
|
72384
72393
|
// ../../../cli/plugin-i18n/dist/esm-node/index.js
|
|
72385
72394
|
var import_lodash8 = require("@modern-js/utils/lodash");
|
|
72386
72395
|
|
|
@@ -72439,8 +72448,8 @@ var I18n2 = class {
|
|
|
72439
72448
|
};
|
|
72440
72449
|
}
|
|
72441
72450
|
constructor() {
|
|
72442
|
-
|
|
72443
|
-
|
|
72451
|
+
_define_property2(this, "language", "en");
|
|
72452
|
+
_define_property2(this, "languageMap", {});
|
|
72444
72453
|
}
|
|
72445
72454
|
};
|
|
72446
72455
|
|
|
@@ -72652,10 +72661,6 @@ var BooleanConfig;
|
|
|
72652
72661
|
BooleanConfig2["NO"] = "no";
|
|
72653
72662
|
BooleanConfig2["YES"] = "yes";
|
|
72654
72663
|
})(BooleanConfig || (BooleanConfig = {}));
|
|
72655
|
-
var BooleanConfigName = {
|
|
72656
|
-
[BooleanConfig.NO]: () => i18n2.t(localeKeys2.boolean.no),
|
|
72657
|
-
[BooleanConfig.YES]: () => i18n2.t(localeKeys2.boolean.yes)
|
|
72658
|
-
};
|
|
72659
72664
|
|
|
72660
72665
|
// ../../generator-common/dist/esm-node/common/solution.js
|
|
72661
72666
|
var Solution;
|
|
@@ -72670,18 +72675,18 @@ var SubSolution;
|
|
|
72670
72675
|
SubSolution22["Module"] = "module";
|
|
72671
72676
|
})(SubSolution || (SubSolution = {}));
|
|
72672
72677
|
var SolutionText = {
|
|
72673
|
-
[
|
|
72674
|
-
[
|
|
72675
|
-
[
|
|
72678
|
+
["mwa"]: () => i18n2.t(localeKeys2.solution.mwa),
|
|
72679
|
+
["module"]: () => i18n2.t(localeKeys2.solution.module),
|
|
72680
|
+
["monorepo"]: () => i18n2.t(localeKeys2.solution.monorepo)
|
|
72676
72681
|
};
|
|
72677
72682
|
var SubSolutionText = {
|
|
72678
|
-
[
|
|
72679
|
-
[
|
|
72683
|
+
["mwa"]: () => i18n2.t(localeKeys2.sub_solution.mwa),
|
|
72684
|
+
["module"]: () => i18n2.t(localeKeys2.sub_solution.module)
|
|
72680
72685
|
};
|
|
72681
72686
|
var SolutionToolsMap = {
|
|
72682
|
-
[
|
|
72683
|
-
[
|
|
72684
|
-
[
|
|
72687
|
+
["mwa"]: "@modern-js/app-tools",
|
|
72688
|
+
["module"]: "@modern-js/module-tools",
|
|
72689
|
+
["monorepo"]: "@modern-js/monorepo-tools"
|
|
72685
72690
|
};
|
|
72686
72691
|
var getSolutionSchema = (extra = {}) => {
|
|
72687
72692
|
return {
|
|
@@ -72692,7 +72697,7 @@ var getSolutionSchema = (extra = {}) => {
|
|
|
72692
72697
|
title: extra.isMonorepo ? i18n2.t(localeKeys2.sub_solution.self) : i18n2.t(localeKeys2.solution.self),
|
|
72693
72698
|
enum: (() => {
|
|
72694
72699
|
var _extra_customPlugin_custom, _extra_customPlugin;
|
|
72695
|
-
const items = ((extra === null || extra === void 0 ? void 0 : extra.solutions) || Object.values((extra === null || extra === void 0 ? void 0 : extra.isMonorepo) ? SubSolution : Solution)).filter((solution) => !((extra === null || extra === void 0 ? void 0 : extra.isSubProject) && solution ===
|
|
72700
|
+
const items = ((extra === null || extra === void 0 ? void 0 : extra.solutions) || Object.values((extra === null || extra === void 0 ? void 0 : extra.isMonorepo) ? SubSolution : Solution)).filter((solution) => !((extra === null || extra === void 0 ? void 0 : extra.isSubProject) && solution === "monorepo")).map((solution) => ({
|
|
72696
72701
|
value: solution,
|
|
72697
72702
|
label: (extra === null || extra === void 0 ? void 0 : extra.isMonorepo) ? SubSolutionText[solution]() : SolutionText[solution]()
|
|
72698
72703
|
}));
|
|
@@ -72739,13 +72744,13 @@ var getScenesSchema = (extra = {}) => {
|
|
|
72739
72744
|
};
|
|
72740
72745
|
var BaseGenerator = "@modern-js/base-generator";
|
|
72741
72746
|
var SolutionGenerator = {
|
|
72742
|
-
[
|
|
72743
|
-
[
|
|
72744
|
-
[
|
|
72747
|
+
["mwa"]: "@modern-js/mwa-generator",
|
|
72748
|
+
["module"]: "@modern-js/module-generator",
|
|
72749
|
+
["monorepo"]: "@modern-js/monorepo-generator"
|
|
72745
72750
|
};
|
|
72746
72751
|
var SubSolutionGenerator = {
|
|
72747
|
-
[
|
|
72748
|
-
[
|
|
72752
|
+
["mwa"]: "@modern-js/mwa-generator",
|
|
72753
|
+
["module"]: "@modern-js/module-generator"
|
|
72749
72754
|
};
|
|
72750
72755
|
|
|
72751
72756
|
// ../../generator-common/dist/esm-node/common/language.js
|
|
@@ -72755,8 +72760,8 @@ var Language;
|
|
|
72755
72760
|
Language2["JS"] = "js";
|
|
72756
72761
|
})(Language || (Language = {}));
|
|
72757
72762
|
var LanguageName = {
|
|
72758
|
-
[
|
|
72759
|
-
[
|
|
72763
|
+
["ts"]: "TS",
|
|
72764
|
+
["js"]: "ES6+"
|
|
72760
72765
|
};
|
|
72761
72766
|
var getLanguageSchema = (_extra = {}) => {
|
|
72762
72767
|
return {
|
|
@@ -72777,15 +72782,15 @@ var PackageManager;
|
|
|
72777
72782
|
PackageManager2["Npm"] = "npm";
|
|
72778
72783
|
})(PackageManager || (PackageManager = {}));
|
|
72779
72784
|
var PackageManagerName = {
|
|
72780
|
-
[
|
|
72781
|
-
[
|
|
72782
|
-
[
|
|
72785
|
+
["pnpm"]: "pnpm",
|
|
72786
|
+
["yarn"]: "Yarn",
|
|
72787
|
+
["npm"]: "npm"
|
|
72783
72788
|
};
|
|
72784
72789
|
var getPackageManagerSchema = (extra = {}) => {
|
|
72785
72790
|
return {
|
|
72786
72791
|
type: "string",
|
|
72787
72792
|
title: i18n2.t(localeKeys2.packageManager.self),
|
|
72788
|
-
enum: Object.values(PackageManager).filter((packageManager) => (extra === null || extra === void 0 ? void 0 : extra.solution) === "monorepo" ? packageManager !==
|
|
72793
|
+
enum: Object.values(PackageManager).filter((packageManager) => (extra === null || extra === void 0 ? void 0 : extra.solution) === "monorepo" ? packageManager !== "npm" : true).map((packageManager) => ({
|
|
72789
72794
|
value: packageManager,
|
|
72790
72795
|
label: PackageManagerName[packageManager]
|
|
72791
72796
|
})),
|
|
@@ -72924,10 +72929,6 @@ var getBuildToolsSchema = (_extra = {}) => {
|
|
|
72924
72929
|
}))
|
|
72925
72930
|
};
|
|
72926
72931
|
};
|
|
72927
|
-
var FrameworkAppendTypeContent = {
|
|
72928
|
-
[Framework.Express]: `/// <reference types='@modern-js/plugin-express/types' />`,
|
|
72929
|
-
[Framework.Koa]: `/// <reference types='@modern-js/plugin-koa/types' />`
|
|
72930
|
-
};
|
|
72931
72932
|
|
|
72932
72933
|
// ../../generator-common/dist/esm-node/mwa/project.js
|
|
72933
72934
|
var getMWASchemaProperties = (extra) => {
|
|
@@ -72986,42 +72987,37 @@ var ActionRefactor;
|
|
|
72986
72987
|
ActionRefactor2["ReactRouter5"] = "react_router_5";
|
|
72987
72988
|
})(ActionRefactor || (ActionRefactor = {}));
|
|
72988
72989
|
var ActionTypeText = {
|
|
72989
|
-
[
|
|
72990
|
-
[
|
|
72991
|
-
[
|
|
72990
|
+
["function"]: () => i18n2.t(localeKeys2.action.function.self),
|
|
72991
|
+
["element"]: () => i18n2.t(localeKeys2.action.element.self),
|
|
72992
|
+
["refactor"]: () => i18n2.t(localeKeys2.action.refactor.self)
|
|
72992
72993
|
};
|
|
72993
72994
|
var ActionTypeQuestionText = {
|
|
72994
|
-
[
|
|
72995
|
-
[
|
|
72996
|
-
[
|
|
72995
|
+
["function"]: () => i18n2.t(localeKeys2.action.function.question),
|
|
72996
|
+
["element"]: () => i18n2.t(localeKeys2.action.element.question),
|
|
72997
|
+
["refactor"]: () => i18n2.t(localeKeys2.action.refactor.question)
|
|
72997
72998
|
};
|
|
72998
72999
|
var ActionElementText = {
|
|
72999
|
-
[
|
|
73000
|
-
[
|
|
73000
|
+
["entry"]: () => i18n2.t(localeKeys2.action.element.entry),
|
|
73001
|
+
["server"]: () => i18n2.t(localeKeys2.action.element.server)
|
|
73001
73002
|
};
|
|
73002
73003
|
var ActionFunctionText = {
|
|
73003
|
-
[
|
|
73004
|
-
[
|
|
73005
|
-
[
|
|
73006
|
-
[
|
|
73007
|
-
[
|
|
73008
|
-
[
|
|
73009
|
-
[
|
|
73010
|
-
[
|
|
73011
|
-
[
|
|
73012
|
-
[
|
|
73013
|
-
[
|
|
73014
|
-
[
|
|
73015
|
-
[
|
|
73016
|
-
[
|
|
73004
|
+
["tailwindcss"]: () => i18n2.t(localeKeys2.action.function.tailwindcss),
|
|
73005
|
+
["bff"]: () => i18n2.t(localeKeys2.action.function.bff),
|
|
73006
|
+
["micro_frontend"]: () => i18n2.t(localeKeys2.action.function.micro_frontend),
|
|
73007
|
+
["i18n"]: () => i18n2.t(localeKeys2.action.function.i18n),
|
|
73008
|
+
["test"]: () => i18n2.t(localeKeys2.action.function.test),
|
|
73009
|
+
["e2e_test"]: () => i18n2.t(localeKeys2.action.function.e2e_test),
|
|
73010
|
+
["storybook"]: () => i18n2.t(localeKeys2.action.function.storybook),
|
|
73011
|
+
["storybookV7"]: () => i18n2.t(localeKeys2.action.function.storybookV7),
|
|
73012
|
+
["runtimeApi"]: () => i18n2.t(localeKeys2.action.function.runtime_api),
|
|
73013
|
+
["ssg"]: () => i18n2.t(localeKeys2.action.function.ssg),
|
|
73014
|
+
["polyfill"]: () => i18n2.t(localeKeys2.action.function.polyfill),
|
|
73015
|
+
["proxy"]: () => i18n2.t(localeKeys2.action.function.proxy),
|
|
73016
|
+
["swc"]: () => i18n2.t(localeKeys2.action.function.swc),
|
|
73017
|
+
["rspack"]: () => i18n2.t(localeKeys2.action.function.rspack)
|
|
73017
73018
|
};
|
|
73018
73019
|
var ActionRefactorText = {
|
|
73019
|
-
[
|
|
73020
|
-
};
|
|
73021
|
-
var ActionTypeTextMap = {
|
|
73022
|
-
[ActionType.Element]: ActionElementText,
|
|
73023
|
-
[ActionType.Function]: ActionFunctionText,
|
|
73024
|
-
[ActionType.Refactor]: ActionRefactorText
|
|
73020
|
+
["react_router_5"]: () => i18n2.t(localeKeys2.action.refactor.react_router_5)
|
|
73025
73021
|
};
|
|
73026
73022
|
|
|
73027
73023
|
// ../../generator-common/dist/esm-node/newAction/mwa/index.js
|
|
@@ -73353,7 +73349,7 @@ var SolutionSchemas = {
|
|
|
73353
73349
|
custom: getBaseSchema
|
|
73354
73350
|
};
|
|
73355
73351
|
|
|
73356
|
-
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.
|
|
73352
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_async_to_generator.js
|
|
73357
73353
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
73358
73354
|
try {
|
|
73359
73355
|
var info = gen[key](arg);
|
|
@@ -73383,13 +73379,13 @@ function _async_to_generator(fn) {
|
|
|
73383
73379
|
};
|
|
73384
73380
|
}
|
|
73385
73381
|
|
|
73386
|
-
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.
|
|
73382
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_class_call_check.js
|
|
73387
73383
|
function _class_call_check(instance, Constructor) {
|
|
73388
73384
|
if (!(instance instanceof Constructor))
|
|
73389
73385
|
throw new TypeError("Cannot call a class as a function");
|
|
73390
73386
|
}
|
|
73391
73387
|
|
|
73392
|
-
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.
|
|
73388
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_create_class.js
|
|
73393
73389
|
function _defineProperties(target, props) {
|
|
73394
73390
|
for (var i = 0; i < props.length; i++) {
|
|
73395
73391
|
var descriptor = props[i];
|
|
@@ -73408,7 +73404,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
73408
73404
|
return Constructor;
|
|
73409
73405
|
}
|
|
73410
73406
|
|
|
73411
|
-
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.
|
|
73407
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_object_spread.js
|
|
73412
73408
|
function _object_spread(target) {
|
|
73413
73409
|
for (var i = 1; i < arguments.length; i++) {
|
|
73414
73410
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
@@ -73421,13 +73417,13 @@ function _object_spread(target) {
|
|
|
73421
73417
|
);
|
|
73422
73418
|
}
|
|
73423
73419
|
ownKeys2.forEach(function(key) {
|
|
73424
|
-
|
|
73420
|
+
_define_property2(target, key, source[key]);
|
|
73425
73421
|
});
|
|
73426
73422
|
}
|
|
73427
73423
|
return target;
|
|
73428
73424
|
}
|
|
73429
73425
|
|
|
73430
|
-
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.
|
|
73426
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_object_spread_props.js
|
|
73431
73427
|
function ownKeys(object, enumerableOnly) {
|
|
73432
73428
|
var keys = Object.keys(object);
|
|
73433
73429
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -73453,7 +73449,7 @@ function _object_spread_props(target, source) {
|
|
|
73453
73449
|
return target;
|
|
73454
73450
|
}
|
|
73455
73451
|
|
|
73456
|
-
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.
|
|
73452
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_object_without_properties_loose.js
|
|
73457
73453
|
function _object_without_properties_loose(source, excluded) {
|
|
73458
73454
|
if (source == null)
|
|
73459
73455
|
return {};
|
|
@@ -73469,7 +73465,7 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
73469
73465
|
return target;
|
|
73470
73466
|
}
|
|
73471
73467
|
|
|
73472
|
-
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.
|
|
73468
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_object_without_properties.js
|
|
73473
73469
|
function _object_without_properties(source, excluded) {
|
|
73474
73470
|
if (source == null)
|
|
73475
73471
|
return {};
|
|
@@ -73489,7 +73485,7 @@ function _object_without_properties(source, excluded) {
|
|
|
73489
73485
|
return target;
|
|
73490
73486
|
}
|
|
73491
73487
|
|
|
73492
|
-
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.
|
|
73488
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_array_like_to_array.js
|
|
73493
73489
|
function _array_like_to_array(arr, len) {
|
|
73494
73490
|
if (len == null || len > arr.length)
|
|
73495
73491
|
len = arr.length;
|
|
@@ -73498,25 +73494,25 @@ function _array_like_to_array(arr, len) {
|
|
|
73498
73494
|
return arr2;
|
|
73499
73495
|
}
|
|
73500
73496
|
|
|
73501
|
-
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.
|
|
73497
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_array_without_holes.js
|
|
73502
73498
|
function _array_without_holes(arr) {
|
|
73503
73499
|
if (Array.isArray(arr))
|
|
73504
73500
|
return _array_like_to_array(arr);
|
|
73505
73501
|
}
|
|
73506
73502
|
|
|
73507
|
-
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.
|
|
73503
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_iterable_to_array.js
|
|
73508
73504
|
function _iterable_to_array(iter) {
|
|
73509
73505
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
|
73510
73506
|
return Array.from(iter);
|
|
73511
73507
|
}
|
|
73512
73508
|
}
|
|
73513
73509
|
|
|
73514
|
-
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.
|
|
73510
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_non_iterable_spread.js
|
|
73515
73511
|
function _non_iterable_spread() {
|
|
73516
73512
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
73517
73513
|
}
|
|
73518
73514
|
|
|
73519
|
-
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.
|
|
73515
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_unsupported_iterable_to_array.js
|
|
73520
73516
|
function _unsupported_iterable_to_array(o, minLen) {
|
|
73521
73517
|
if (!o)
|
|
73522
73518
|
return;
|
|
@@ -73531,7 +73527,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
73531
73527
|
return _array_like_to_array(o, minLen);
|
|
73532
73528
|
}
|
|
73533
73529
|
|
|
73534
|
-
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.
|
|
73530
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_to_consumable_array.js
|
|
73535
73531
|
function _to_consumable_array(arr) {
|
|
73536
73532
|
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
|
73537
73533
|
}
|
|
@@ -73898,7 +73894,7 @@ function _addFile() {
|
|
|
73898
73894
|
case 2:
|
|
73899
73895
|
_state.sent();
|
|
73900
73896
|
absTemplatePath = config.templateFile ? import_path12.default.join(templatePath, config.templateFile) : null;
|
|
73901
|
-
if (!(absTemplatePath != null && (config.type ===
|
|
73897
|
+
if (!(absTemplatePath != null && (config.type === "binary" || Object.keys(config.data || {}).length === 0)))
|
|
73902
73898
|
return [
|
|
73903
73899
|
3,
|
|
73904
73900
|
5
|
|
@@ -74059,8 +74055,8 @@ var PluginHandlebarsAPI = /* @__PURE__ */ function() {
|
|
|
74059
74055
|
"use strict";
|
|
74060
74056
|
function PluginHandlebarsAPI2() {
|
|
74061
74057
|
_class_call_check(this, PluginHandlebarsAPI2);
|
|
74062
|
-
|
|
74063
|
-
|
|
74058
|
+
_define_property2(this, "helpers", {});
|
|
74059
|
+
_define_property2(this, "partials", {});
|
|
74064
74060
|
}
|
|
74065
74061
|
_create_class(PluginHandlebarsAPI2, [
|
|
74066
74062
|
{
|
|
@@ -74132,11 +74128,11 @@ var PluginFileAPI = /* @__PURE__ */ function() {
|
|
|
74132
74128
|
"use strict";
|
|
74133
74129
|
function PluginFileAPI2() {
|
|
74134
74130
|
_class_call_check(this, PluginFileAPI2);
|
|
74135
|
-
|
|
74136
|
-
|
|
74137
|
-
|
|
74138
|
-
|
|
74139
|
-
|
|
74131
|
+
_define_property2(this, "projectPath", "");
|
|
74132
|
+
_define_property2(this, "templatePath", "");
|
|
74133
|
+
_define_property2(this, "handlebarAPI", new PluginHandlebarsAPI());
|
|
74134
|
+
_define_property2(this, "ejsAPI", new PluginEjsAPI());
|
|
74135
|
+
_define_property2(this, "jsonAPI", void 0);
|
|
74140
74136
|
this.renderString = this.renderString.bind(this);
|
|
74141
74137
|
}
|
|
74142
74138
|
_create_class(PluginFileAPI2, [
|
|
@@ -74444,9 +74440,9 @@ var PluginGitAPI = /* @__PURE__ */ function() {
|
|
|
74444
74440
|
"use strict";
|
|
74445
74441
|
function PluginGitAPI2() {
|
|
74446
74442
|
_class_call_check(this, PluginGitAPI2);
|
|
74447
|
-
|
|
74448
|
-
|
|
74449
|
-
|
|
74443
|
+
_define_property2(this, "gitMessage", "");
|
|
74444
|
+
_define_property2(this, "gitApi", void 0);
|
|
74445
|
+
_define_property2(this, "projectPath", void 0);
|
|
74450
74446
|
}
|
|
74451
74447
|
_create_class(PluginGitAPI2, [
|
|
74452
74448
|
{
|
|
@@ -74549,11 +74545,11 @@ var PluginInputContext = /* @__PURE__ */ function() {
|
|
|
74549
74545
|
"use strict";
|
|
74550
74546
|
function PluginInputContext2(solutionSchema) {
|
|
74551
74547
|
_class_call_check(this, PluginInputContext2);
|
|
74552
|
-
|
|
74553
|
-
|
|
74554
|
-
|
|
74555
|
-
|
|
74556
|
-
|
|
74548
|
+
_define_property2(this, "inputValue", {});
|
|
74549
|
+
_define_property2(this, "defaultConfig", {});
|
|
74550
|
+
_define_property2(this, "solutionSchemaFunc", void 0);
|
|
74551
|
+
_define_property2(this, "solutionSchema", {});
|
|
74552
|
+
_define_property2(this, "extendInputMap", {});
|
|
74557
74553
|
this.solutionSchemaFunc = solutionSchema;
|
|
74558
74554
|
}
|
|
74559
74555
|
_create_class(PluginInputContext2, [
|
|
@@ -74611,7 +74607,7 @@ var PluginInputContext = /* @__PURE__ */ function() {
|
|
|
74611
74607
|
this.extendInputMap[key].before[inputKey] = properties[inputKey];
|
|
74612
74608
|
} else {
|
|
74613
74609
|
this.extendInputMap[key] = {
|
|
74614
|
-
before:
|
|
74610
|
+
before: _define_property2({}, inputKey, properties[inputKey]),
|
|
74615
74611
|
after: {}
|
|
74616
74612
|
};
|
|
74617
74613
|
}
|
|
@@ -74647,7 +74643,7 @@ var PluginInputContext = /* @__PURE__ */ function() {
|
|
|
74647
74643
|
} else {
|
|
74648
74644
|
this.extendInputMap[key] = {
|
|
74649
74645
|
before: {},
|
|
74650
|
-
after:
|
|
74646
|
+
after: _define_property2({}, inputKey, properties[inputKey])
|
|
74651
74647
|
};
|
|
74652
74648
|
}
|
|
74653
74649
|
}
|
|
@@ -74754,8 +74750,8 @@ var PluginNpmAPI = /* @__PURE__ */ function() {
|
|
|
74754
74750
|
"use strict";
|
|
74755
74751
|
function PluginNpmAPI2(projectPath, packageManager) {
|
|
74756
74752
|
_class_call_check(this, PluginNpmAPI2);
|
|
74757
|
-
|
|
74758
|
-
|
|
74753
|
+
_define_property2(this, "projectPath", "");
|
|
74754
|
+
_define_property2(this, "packageManager", void 0);
|
|
74759
74755
|
this.projectPath = projectPath;
|
|
74760
74756
|
this.packageManager = packageManager;
|
|
74761
74757
|
}
|
|
@@ -75153,9 +75149,9 @@ var PluginNewAPI = /* @__PURE__ */ function() {
|
|
|
75153
75149
|
"use strict";
|
|
75154
75150
|
function PluginNewAPI2(solution, projectPath, inputData) {
|
|
75155
75151
|
_class_call_check(this, PluginNewAPI2);
|
|
75156
|
-
|
|
75157
|
-
|
|
75158
|
-
|
|
75152
|
+
_define_property2(this, "solution", void 0);
|
|
75153
|
+
_define_property2(this, "projectPath", void 0);
|
|
75154
|
+
_define_property2(this, "inputData", void 0);
|
|
75159
75155
|
this.solution = solution;
|
|
75160
75156
|
this.projectPath = projectPath;
|
|
75161
75157
|
this.inputData = inputData;
|
|
@@ -75324,16 +75320,16 @@ var PluginContext = /* @__PURE__ */ function() {
|
|
|
75324
75320
|
"use strict";
|
|
75325
75321
|
function PluginContext2(solutionSchema, locale) {
|
|
75326
75322
|
_class_call_check(this, PluginContext2);
|
|
75327
|
-
|
|
75328
|
-
|
|
75329
|
-
|
|
75330
|
-
|
|
75331
|
-
|
|
75332
|
-
|
|
75333
|
-
|
|
75323
|
+
_define_property2(this, "generator", void 0);
|
|
75324
|
+
_define_property2(this, "inputContext", void 0);
|
|
75325
|
+
_define_property2(this, "gitAPI", void 0);
|
|
75326
|
+
_define_property2(this, "fileAPI", void 0);
|
|
75327
|
+
_define_property2(this, "npmAPI", void 0);
|
|
75328
|
+
_define_property2(this, "newAPI", void 0);
|
|
75329
|
+
_define_property2(this, "locale", void 0);
|
|
75334
75330
|
var _obj;
|
|
75335
|
-
|
|
75336
|
-
}),
|
|
75331
|
+
_define_property2(this, "lifeCycleFuncMap", (_obj = {}, _define_property2(_obj, "onForged", function() {
|
|
75332
|
+
}), _define_property2(_obj, "afterForged", function() {
|
|
75337
75333
|
}), _obj));
|
|
75338
75334
|
this.inputContext = new PluginInputContext(solutionSchema);
|
|
75339
75335
|
this.gitAPI = new PluginGitAPI();
|
|
@@ -75377,13 +75373,13 @@ var PluginContext = /* @__PURE__ */ function() {
|
|
|
75377
75373
|
{
|
|
75378
75374
|
key: "onForged",
|
|
75379
75375
|
value: function onForged(func) {
|
|
75380
|
-
this.lifeCycleFuncMap[
|
|
75376
|
+
this.lifeCycleFuncMap["onForged"] = func;
|
|
75381
75377
|
}
|
|
75382
75378
|
},
|
|
75383
75379
|
{
|
|
75384
75380
|
key: "afterForged",
|
|
75385
75381
|
value: function afterForged(func) {
|
|
75386
|
-
this.lifeCycleFuncMap[
|
|
75382
|
+
this.lifeCycleFuncMap["afterForged"] = func;
|
|
75387
75383
|
}
|
|
75388
75384
|
}
|
|
75389
75385
|
]);
|
|
@@ -75552,11 +75548,11 @@ var GeneratorPlugin = /* @__PURE__ */ function() {
|
|
|
75552
75548
|
function GeneratorPlugin2(logger2, event) {
|
|
75553
75549
|
var locale = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "en";
|
|
75554
75550
|
_class_call_check(this, GeneratorPlugin2);
|
|
75555
|
-
|
|
75556
|
-
|
|
75557
|
-
|
|
75558
|
-
|
|
75559
|
-
|
|
75551
|
+
_define_property2(this, "plugins", []);
|
|
75552
|
+
_define_property2(this, "extendPlugin", {});
|
|
75553
|
+
_define_property2(this, "customPlugin", {});
|
|
75554
|
+
_define_property2(this, "event", void 0);
|
|
75555
|
+
_define_property2(this, "logger", void 0);
|
|
75560
75556
|
this.event = event;
|
|
75561
75557
|
this.logger = logger2;
|
|
75562
75558
|
if (event) {
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "0.0.0-nightly-
|
|
18
|
+
"version": "0.0.0-nightly-20231115170655",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"main": "./dist/index.js",
|
|
21
21
|
"files": [
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"/dist/index.js"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@modern-js/utils": "0.0.0-nightly-
|
|
26
|
+
"@modern-js/utils": "0.0.0-nightly-20231115170655"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@modern-js/codesmith": "2.3.0",
|
|
@@ -32,15 +32,15 @@
|
|
|
32
32
|
"@types/node": "^14",
|
|
33
33
|
"jest": "^29",
|
|
34
34
|
"typescript": "^5",
|
|
35
|
-
"@modern-js/
|
|
36
|
-
"@modern-js/generator-
|
|
37
|
-
"@modern-js/generator-
|
|
38
|
-
"@modern-js/generator
|
|
39
|
-
"@modern-js/
|
|
40
|
-
"@modern-js/
|
|
41
|
-
"@modern-js/
|
|
42
|
-
"@scripts/build": "0.0.0-nightly-
|
|
43
|
-
"@scripts/jest-config": "0.0.0-nightly-
|
|
35
|
+
"@modern-js/generator-common": "0.0.0-nightly-20231115170655",
|
|
36
|
+
"@modern-js/generator-plugin": "0.0.0-nightly-20231115170655",
|
|
37
|
+
"@modern-js/generator-utils": "0.0.0-nightly-20231115170655",
|
|
38
|
+
"@modern-js/module-generator": "0.0.0-nightly-20231115170655",
|
|
39
|
+
"@modern-js/mwa-generator": "0.0.0-nightly-20231115170655",
|
|
40
|
+
"@modern-js/base-generator": "0.0.0-nightly-20231115170655",
|
|
41
|
+
"@modern-js/monorepo-generator": "0.0.0-nightly-20231115170655",
|
|
42
|
+
"@scripts/build": "0.0.0-nightly-20231115170655",
|
|
43
|
+
"@scripts/jest-config": "0.0.0-nightly-20231115170655"
|
|
44
44
|
},
|
|
45
45
|
"sideEffects": false,
|
|
46
46
|
"publishConfig": {
|