@modern-js/repo-generator 0.0.0-next-20230920091340 → 0.0.0-next-20230920124355
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 +43 -73
- package/package.json +11 -11
package/dist/index.js
CHANGED
|
@@ -124142,8 +124142,6 @@ var require_chainId2 = __commonJS({
|
|
|
124142
124142
|
STYLE: "style-loader",
|
|
124143
124143
|
/** postcss-loader */
|
|
124144
124144
|
POSTCSS: "postcss",
|
|
124145
|
-
/** markdown-loader */
|
|
124146
|
-
MARKDOWN: "markdown",
|
|
124147
124145
|
/** ignore-css-loader */
|
|
124148
124146
|
IGNORE_CSS: "ignore-css",
|
|
124149
124147
|
/** css-modules-typescript-loader */
|
|
@@ -124157,9 +124155,7 @@ var require_chainId2 = __commonJS({
|
|
|
124157
124155
|
/** builder-plugin-image-compress svgo-loader */
|
|
124158
124156
|
SVGO: "svgo",
|
|
124159
124157
|
/** builder-plugin-imagex */
|
|
124160
|
-
IMAGEX: "imagex"
|
|
124161
|
-
/** storybook-react-docgen */
|
|
124162
|
-
REACT_DOCGEN: "react-docgen"
|
|
124158
|
+
IMAGEX: "imagex"
|
|
124163
124159
|
},
|
|
124164
124160
|
/** Predefined plugins */
|
|
124165
124161
|
PLUGIN: {
|
|
@@ -124226,7 +124222,9 @@ var require_chainId2 = __commonJS({
|
|
|
124226
124222
|
/** HtmlAsyncChunkPlugin */
|
|
124227
124223
|
HTML_ASYNC_CHUNK: "html-async-chunk",
|
|
124228
124224
|
/** SWC_POLYFILL_CHECKER */
|
|
124229
|
-
SWC_POLYFILL_CHECKER: "swc-polyfill-checker-plugin"
|
|
124225
|
+
SWC_POLYFILL_CHECKER: "swc-polyfill-checker-plugin",
|
|
124226
|
+
/** RouterPlugin */
|
|
124227
|
+
ROUTER_MANIFEST: "route-plugin"
|
|
124230
124228
|
},
|
|
124231
124229
|
/** Predefined minimizers */
|
|
124232
124230
|
MINIMIZER: {
|
|
@@ -124682,12 +124680,11 @@ var require_config4 = __commonJS({
|
|
|
124682
124680
|
var _constants = require_constants3();
|
|
124683
124681
|
var _type = require_type2();
|
|
124684
124682
|
var isSSR = (config) => {
|
|
124685
|
-
var _server, _server1;
|
|
124686
124683
|
const { server } = config;
|
|
124687
|
-
if (
|
|
124684
|
+
if (server === null || server === void 0 ? void 0 : server.ssr) {
|
|
124688
124685
|
return true;
|
|
124689
124686
|
}
|
|
124690
|
-
if ((
|
|
124687
|
+
if ((server === null || server === void 0 ? void 0 : server.ssrByEntries) && !(0, _type.isEmpty)(server.ssrByEntries)) {
|
|
124691
124688
|
for (const name of Object.keys(server.ssrByEntries)) {
|
|
124692
124689
|
if (server.ssrByEntries[name]) {
|
|
124693
124690
|
return true;
|
|
@@ -124697,29 +124694,28 @@ var require_config4 = __commonJS({
|
|
|
124697
124694
|
return false;
|
|
124698
124695
|
};
|
|
124699
124696
|
var isUseSSRBundle = (config) => {
|
|
124700
|
-
var _output;
|
|
124701
124697
|
const { output: output2 } = config;
|
|
124702
|
-
if (
|
|
124698
|
+
if (output2 === null || output2 === void 0 ? void 0 : output2.ssg) {
|
|
124703
124699
|
return true;
|
|
124704
124700
|
}
|
|
124705
124701
|
return isSSR(config);
|
|
124706
124702
|
};
|
|
124707
124703
|
var isServiceWorker = (config) => {
|
|
124708
|
-
var _deploy_worker
|
|
124704
|
+
var _deploy_worker;
|
|
124709
124705
|
const { output: output2, deploy } = config;
|
|
124710
|
-
if ((
|
|
124706
|
+
if ((deploy === null || deploy === void 0 ? void 0 : (_deploy_worker = deploy.worker) === null || _deploy_worker === void 0 ? void 0 : _deploy_worker.ssr) && ((output2 === null || output2 === void 0 ? void 0 : output2.ssg) || isSSR(config))) {
|
|
124711
124707
|
return true;
|
|
124712
124708
|
}
|
|
124713
124709
|
return false;
|
|
124714
124710
|
};
|
|
124715
124711
|
var isRouterV5 = (config) => {
|
|
124716
|
-
var _config_runtime, _config_runtime_router, _config_runtime1
|
|
124717
|
-
return typeof ((_config_runtime = config.runtime) === null || _config_runtime === void 0 ? void 0 : _config_runtime.router) !== "boolean" && (
|
|
124712
|
+
var _config_runtime, _config_runtime_router, _config_runtime1;
|
|
124713
|
+
return typeof ((_config_runtime = config.runtime) === null || _config_runtime === void 0 ? void 0 : _config_runtime.router) !== "boolean" && (config === null || config === void 0 ? void 0 : (_config_runtime1 = config.runtime) === null || _config_runtime1 === void 0 ? void 0 : (_config_runtime_router = _config_runtime1.router) === null || _config_runtime_router === void 0 ? void 0 : _config_runtime_router.mode) === "react-router-5";
|
|
124718
124714
|
};
|
|
124719
124715
|
var isSSGEntry = (config, entryName, entrypoints) => {
|
|
124720
|
-
var _config_source
|
|
124716
|
+
var _config_source;
|
|
124721
124717
|
const ssgConfig = config.output.ssg;
|
|
124722
|
-
const useSSG = isSingleEntry(entrypoints, (_config_source = config.source) === null || _config_source === void 0 ? void 0 : _config_source.mainEntryName) ? Boolean(ssgConfig) : ssgConfig === true || typeof (
|
|
124718
|
+
const useSSG = isSingleEntry(entrypoints, (_config_source = config.source) === null || _config_source === void 0 ? void 0 : _config_source.mainEntryName) ? Boolean(ssgConfig) : ssgConfig === true || typeof (ssgConfig === null || ssgConfig === void 0 ? void 0 : ssgConfig[0]) === "function" || Boolean(ssgConfig === null || ssgConfig === void 0 ? void 0 : ssgConfig[entryName]);
|
|
124723
124719
|
return useSSG;
|
|
124724
124720
|
};
|
|
124725
124721
|
var isSingleEntry = (entrypoints, mainEntryName = _constants.MAIN_ENTRY_NAME) => entrypoints.length === 1 && entrypoints[0].entryName === mainEntryName;
|
|
@@ -125298,9 +125294,14 @@ var require_logger3 = __commonJS({
|
|
|
125298
125294
|
label: "info",
|
|
125299
125295
|
level: "info"
|
|
125300
125296
|
},
|
|
125297
|
+
ready: {
|
|
125298
|
+
color: "green",
|
|
125299
|
+
label: "ready",
|
|
125300
|
+
level: "info"
|
|
125301
|
+
},
|
|
125301
125302
|
success: {
|
|
125302
125303
|
color: "green",
|
|
125303
|
-
label: "
|
|
125304
|
+
label: "success",
|
|
125304
125305
|
level: "info"
|
|
125305
125306
|
},
|
|
125306
125307
|
warn: {
|
|
@@ -125480,7 +125481,7 @@ var require_alias2 = __commonJS({
|
|
|
125480
125481
|
};
|
|
125481
125482
|
var mergeAlias = (alias) => (0, _applyOptionsChain.applyOptionsChain)({}, alias);
|
|
125482
125483
|
var getAliasConfig = (aliasOption, option) => {
|
|
125483
|
-
var _tsconfig_compilerOptions,
|
|
125484
|
+
var _tsconfig_compilerOptions, _tsconfig_compilerOptions1;
|
|
125484
125485
|
const isTsProject = _fs.default.existsSync(option.tsconfigPath);
|
|
125485
125486
|
const alias = mergeAlias(aliasOption);
|
|
125486
125487
|
if (!isTsProject) {
|
|
@@ -125492,12 +125493,12 @@ var require_alias2 = __commonJS({
|
|
|
125492
125493
|
};
|
|
125493
125494
|
}
|
|
125494
125495
|
const tsconfig = (0, _get.readTsConfigByFile)(option.tsconfigPath);
|
|
125495
|
-
const baseUrl =
|
|
125496
|
+
const baseUrl = tsconfig === null || tsconfig === void 0 ? void 0 : (_tsconfig_compilerOptions = tsconfig.compilerOptions) === null || _tsconfig_compilerOptions === void 0 ? void 0 : _tsconfig_compilerOptions.baseUrl;
|
|
125496
125497
|
return {
|
|
125497
125498
|
absoluteBaseUrl: baseUrl ? _path.default.join(option.appDirectory, baseUrl) : option.appDirectory,
|
|
125498
125499
|
paths: {
|
|
125499
125500
|
...alias,
|
|
125500
|
-
...
|
|
125501
|
+
...tsconfig === null || tsconfig === void 0 ? void 0 : (_tsconfig_compilerOptions1 = tsconfig.compilerOptions) === null || _tsconfig_compilerOptions1 === void 0 ? void 0 : _tsconfig_compilerOptions1.paths
|
|
125501
125502
|
},
|
|
125502
125503
|
isTsPath: true,
|
|
125503
125504
|
isTsProject
|
|
@@ -125892,7 +125893,7 @@ var require_port2 = __commonJS({
|
|
|
125892
125893
|
if (strictPort) {
|
|
125893
125894
|
throw new Error(`Port "${original}" is occupied, please choose another one.`);
|
|
125894
125895
|
} else if (!slient) {
|
|
125895
|
-
_logger.logger.info(`
|
|
125896
|
+
_logger.logger.info(`Port ${original} is in use. ${_compiled.chalk.yellow(`using port ${port}.`)}`);
|
|
125896
125897
|
}
|
|
125897
125898
|
}
|
|
125898
125899
|
return port;
|
|
@@ -125944,10 +125945,7 @@ var require_prettyInstructions2 = __commonJS({
|
|
|
125944
125945
|
var getAddressUrls = (protocol = "http", port, host) => {
|
|
125945
125946
|
const LOCAL_LABEL = "Local: ";
|
|
125946
125947
|
const NETWORK_LABEL = "Network: ";
|
|
125947
|
-
const isLocalhost = (url) =>
|
|
125948
|
-
var _url;
|
|
125949
|
-
return (_url = url) === null || _url === void 0 ? void 0 : _url.includes("localhost");
|
|
125950
|
-
};
|
|
125948
|
+
const isLocalhost = (url) => url === null || url === void 0 ? void 0 : url.includes("localhost");
|
|
125951
125949
|
if (host && host !== _constants.DEFAULT_DEV_HOST) {
|
|
125952
125950
|
return [
|
|
125953
125951
|
{
|
|
@@ -125978,7 +125976,7 @@ var require_prettyInstructions2 = __commonJS({
|
|
|
125978
125976
|
const isHttps = (0, _is.isDev)() && ((_appContext_builder = appContext.builder) === null || _appContext_builder === void 0 ? void 0 : (_appContext_builder_context_devServer = _appContext_builder.context.devServer) === null || _appContext_builder_context_devServer === void 0 ? void 0 : _appContext_builder_context_devServer.https);
|
|
125979
125977
|
const urls = getAddressUrls(isHttps ? "https" : "http", port, (_config_dev = config.dev) === null || _config_dev === void 0 ? void 0 : _config_dev.host);
|
|
125980
125978
|
const routes = !apiOnly ? serverRoutes.filter((route) => route.entryName) : serverRoutes;
|
|
125981
|
-
let message = "
|
|
125979
|
+
let message = "\n";
|
|
125982
125980
|
if ((0, _is.isSingleEntry)(entrypoints, (_config_source = config.source) === null || _config_source === void 0 ? void 0 : _config_source.mainEntryName) || apiOnly) {
|
|
125983
125981
|
message += urls.map(({ label, url }) => ` ${_compiled.chalk.bold(`> ${label.padEnd(10)}`)}${_compiled.chalk.cyanBright(normalizeUrl(`${url}/${routes[0].urlPath}`))}
|
|
125984
125982
|
`).join("");
|
|
@@ -126040,9 +126038,8 @@ var require_require2 = __commonJS({
|
|
|
126040
126038
|
});
|
|
126041
126039
|
var _fs = require_fs2();
|
|
126042
126040
|
var compatRequire = (filePath, interop = true) => {
|
|
126043
|
-
var _mod;
|
|
126044
126041
|
const mod = require(filePath);
|
|
126045
|
-
const rtnESMDefault = interop && (
|
|
126042
|
+
const rtnESMDefault = interop && (mod === null || mod === void 0 ? void 0 : mod.__esModule);
|
|
126046
126043
|
return rtnESMDefault ? mod.default : mod;
|
|
126047
126044
|
};
|
|
126048
126045
|
var dynamicImport = new Function("modulePath", "return import(modulePath)");
|
|
@@ -145543,7 +145540,6 @@ var ZH_LOCALE2 = {
|
|
|
145543
145540
|
test: "启用「单元测试 / 集成测试」功能",
|
|
145544
145541
|
e2e_test: "启用「E2E 测试」功能",
|
|
145545
145542
|
storybook: "启用「Storybook」",
|
|
145546
|
-
storybookV7: "启用「Storybook」V7",
|
|
145547
145543
|
runtime_api: "启用「Runtime API」",
|
|
145548
145544
|
mwa_storybook: "启用「Visual Testing (Storybook)」模式",
|
|
145549
145545
|
ssg: "启用「SSG」功能",
|
|
@@ -145643,7 +145639,6 @@ var EN_LOCALE2 = {
|
|
|
145643
145639
|
test: "Enable Unit Test / Integration Test",
|
|
145644
145640
|
e2e_test: "Enable E2E Test",
|
|
145645
145641
|
storybook: "Enable Storybook",
|
|
145646
|
-
storybookV7: "Enable Storybook V7",
|
|
145647
145642
|
runtime_api: "Enable Runtime API",
|
|
145648
145643
|
mwa_storybook: "Enable Visual Testing (Storybook)",
|
|
145649
145644
|
ssg: "Enable SSG",
|
|
@@ -145775,18 +145770,12 @@ var getSolutionSchema = (extra = {}) => {
|
|
|
145775
145770
|
type: "string",
|
|
145776
145771
|
title: extra.isMonorepo ? i18n2.t(localeKeys2.sub_solution.self) : i18n2.t(localeKeys2.solution.self),
|
|
145777
145772
|
enum: (() => {
|
|
145778
|
-
var
|
|
145779
|
-
const items = ((
|
|
145780
|
-
|
|
145781
|
-
|
|
145782
|
-
})
|
|
145783
|
-
|
|
145784
|
-
return {
|
|
145785
|
-
value: solution,
|
|
145786
|
-
label: ((_extra3 = extra) === null || _extra3 === void 0 ? void 0 : _extra3.isMonorepo) ? SubSolutionText[solution]() : SolutionText[solution]()
|
|
145787
|
-
};
|
|
145788
|
-
});
|
|
145789
|
-
if ((_extra2 = extra) === null || _extra2 === void 0 ? void 0 : (_extra_customPlugin = _extra2.customPlugin) === null || _extra_customPlugin === void 0 ? void 0 : (_extra_customPlugin_custom = _extra_customPlugin.custom) === null || _extra_customPlugin_custom === void 0 ? void 0 : _extra_customPlugin_custom.length) {
|
|
145773
|
+
var _extra_customPlugin_custom, _extra_customPlugin;
|
|
145774
|
+
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 === Solution.Monorepo)).map((solution) => ({
|
|
145775
|
+
value: solution,
|
|
145776
|
+
label: (extra === null || extra === void 0 ? void 0 : extra.isMonorepo) ? SubSolutionText[solution]() : SolutionText[solution]()
|
|
145777
|
+
}));
|
|
145778
|
+
if (extra === null || extra === void 0 ? void 0 : (_extra_customPlugin = extra.customPlugin) === null || _extra_customPlugin === void 0 ? void 0 : (_extra_customPlugin_custom = _extra_customPlugin.custom) === null || _extra_customPlugin_custom === void 0 ? void 0 : _extra_customPlugin_custom.length) {
|
|
145790
145779
|
return [
|
|
145791
145780
|
...items,
|
|
145792
145781
|
{
|
|
@@ -145802,8 +145791,7 @@ var getSolutionSchema = (extra = {}) => {
|
|
|
145802
145791
|
};
|
|
145803
145792
|
};
|
|
145804
145793
|
var getScenesSchema = (extra = {}) => {
|
|
145805
|
-
|
|
145806
|
-
const hasPlugin = ((_extra = extra) === null || _extra === void 0 ? void 0 : _extra.customPlugin) && extra.customPlugin[((_extra1 = extra) === null || _extra1 === void 0 ? void 0 : _extra1.isMonorepoSubProject) ? getSolutionNameFromSubSolution((_extra2 = extra) === null || _extra2 === void 0 ? void 0 : _extra2.solution) : (_extra3 = extra) === null || _extra3 === void 0 ? void 0 : _extra3.solution] && extra.customPlugin[((_extra4 = extra) === null || _extra4 === void 0 ? void 0 : _extra4.isMonorepoSubProject) ? getSolutionNameFromSubSolution((_extra5 = extra) === null || _extra5 === void 0 ? void 0 : _extra5.solution) : (_extra6 = extra) === null || _extra6 === void 0 ? void 0 : _extra6.solution].length > 0;
|
|
145794
|
+
const hasPlugin = (extra === null || extra === void 0 ? void 0 : extra.customPlugin) && extra.customPlugin[(extra === null || extra === void 0 ? void 0 : extra.isMonorepoSubProject) ? getSolutionNameFromSubSolution(extra === null || extra === void 0 ? void 0 : extra.solution) : extra === null || extra === void 0 ? void 0 : extra.solution] && extra.customPlugin[(extra === null || extra === void 0 ? void 0 : extra.isMonorepoSubProject) ? getSolutionNameFromSubSolution(extra === null || extra === void 0 ? void 0 : extra.solution) : extra === null || extra === void 0 ? void 0 : extra.solution].length > 0;
|
|
145807
145795
|
return {
|
|
145808
145796
|
type: "object",
|
|
145809
145797
|
properties: hasPlugin ? {
|
|
@@ -145811,17 +145799,15 @@ var getScenesSchema = (extra = {}) => {
|
|
|
145811
145799
|
type: "string",
|
|
145812
145800
|
title: i18n2.t(localeKeys2.scenes.self),
|
|
145813
145801
|
enum: (() => {
|
|
145814
|
-
|
|
145815
|
-
const
|
|
145816
|
-
const items = (((_extra32 = extra) === null || _extra32 === void 0 ? void 0 : _extra32.customPlugin) ? ((_extra42 = extra) === null || _extra42 === void 0 ? void 0 : _extra42.customPlugin[solution]) || [] : []).map((plugin) => ({
|
|
145802
|
+
const solution = (extra === null || extra === void 0 ? void 0 : extra.isMonorepoSubProject) ? getSolutionNameFromSubSolution(extra === null || extra === void 0 ? void 0 : extra.solution) : extra === null || extra === void 0 ? void 0 : extra.solution;
|
|
145803
|
+
const items = ((extra === null || extra === void 0 ? void 0 : extra.customPlugin) ? (extra === null || extra === void 0 ? void 0 : extra.customPlugin[solution]) || [] : []).map((plugin) => ({
|
|
145817
145804
|
value: plugin.key,
|
|
145818
145805
|
label: extra.locale === "zh" ? plugin.name_zh || plugin.name : plugin.name
|
|
145819
145806
|
}));
|
|
145820
145807
|
if (solution && solution !== "custom") {
|
|
145821
|
-
var _extra52;
|
|
145822
145808
|
items.unshift({
|
|
145823
145809
|
value: solution,
|
|
145824
|
-
label: `${(
|
|
145810
|
+
label: `${(extra === null || extra === void 0 ? void 0 : extra.isMonorepoSubProject) ? SubSolutionText[solution]() : SolutionText[solution]()}(${i18n2.t(localeKeys2.solution.default)})`
|
|
145825
145811
|
});
|
|
145826
145812
|
}
|
|
145827
145813
|
return items;
|
|
@@ -145877,14 +145863,10 @@ var PackageManagerName = {
|
|
|
145877
145863
|
[PackageManager.Npm]: "npm"
|
|
145878
145864
|
};
|
|
145879
145865
|
var getPackageManagerSchema = (extra = {}) => {
|
|
145880
|
-
var _extra, _extra1;
|
|
145881
145866
|
return {
|
|
145882
145867
|
type: "string",
|
|
145883
145868
|
title: i18n2.t(localeKeys2.packageManager.self),
|
|
145884
|
-
enum: Object.values(PackageManager).filter((packageManager) => {
|
|
145885
|
-
var _extra2;
|
|
145886
|
-
return ((_extra2 = extra) === null || _extra2 === void 0 ? void 0 : _extra2.solution) === "monorepo" ? packageManager !== PackageManager.Npm : true;
|
|
145887
|
-
}).map((packageManager) => ({
|
|
145869
|
+
enum: Object.values(PackageManager).filter((packageManager) => (extra === null || extra === void 0 ? void 0 : extra.solution) === "monorepo" ? packageManager !== PackageManager.Npm : true).map((packageManager) => ({
|
|
145888
145870
|
value: packageManager,
|
|
145889
145871
|
label: PackageManagerName[packageManager]
|
|
145890
145872
|
})),
|
|
@@ -145893,7 +145875,7 @@ var getPackageManagerSchema = (extra = {}) => {
|
|
|
145893
145875
|
dependencies: [],
|
|
145894
145876
|
fulfill: {
|
|
145895
145877
|
state: {
|
|
145896
|
-
visible: !(
|
|
145878
|
+
visible: !(extra === null || extra === void 0 ? void 0 : extra.isMonorepoSubProject) && !(extra === null || extra === void 0 ? void 0 : extra.isSubProject)
|
|
145897
145879
|
}
|
|
145898
145880
|
}
|
|
145899
145881
|
}
|
|
@@ -145903,16 +145885,15 @@ var getPackageManagerSchema = (extra = {}) => {
|
|
|
145903
145885
|
|
|
145904
145886
|
// ../../generator-common/dist/esm-node/common/packageName.js
|
|
145905
145887
|
var getPackageNameSchema = (extra = {}) => {
|
|
145906
|
-
var _extra, _extra1, _extra2;
|
|
145907
145888
|
return {
|
|
145908
145889
|
type: "string",
|
|
145909
|
-
title: (
|
|
145890
|
+
title: (extra === null || extra === void 0 ? void 0 : extra.isMonorepoSubProject) ? i18n2.t(localeKeys2.packageName.sub_name) : i18n2.t(localeKeys2.packageName.self),
|
|
145910
145891
|
"x-reactions": [
|
|
145911
145892
|
{
|
|
145912
145893
|
dependencies: [],
|
|
145913
145894
|
fulfill: {
|
|
145914
145895
|
state: {
|
|
145915
|
-
visible: Boolean(
|
|
145896
|
+
visible: Boolean(extra === null || extra === void 0 ? void 0 : extra.isMonorepoSubProject) || !(extra === null || extra === void 0 ? void 0 : extra.isMwa)
|
|
145916
145897
|
}
|
|
145917
145898
|
}
|
|
145918
145899
|
}
|
|
@@ -145929,7 +145910,6 @@ var getPackageNameSchema = (extra = {}) => {
|
|
|
145929
145910
|
// ../../generator-common/dist/esm-node/common/packagePath.js
|
|
145930
145911
|
var PackagePathRegex = new RegExp("^[a-z0-9-_]+[a-z0-9-/_]*$");
|
|
145931
145912
|
var getPackagePathSchema = (extra) => {
|
|
145932
|
-
var _extra;
|
|
145933
145913
|
return {
|
|
145934
145914
|
type: "string",
|
|
145935
145915
|
title: i18n2.t(localeKeys2.packagePath.self),
|
|
@@ -145941,7 +145921,7 @@ var getPackagePathSchema = (extra) => {
|
|
|
145941
145921
|
fulfill: {
|
|
145942
145922
|
state: {
|
|
145943
145923
|
value: "{{$deps[0]}}",
|
|
145944
|
-
visible: Boolean(
|
|
145924
|
+
visible: Boolean(extra === null || extra === void 0 ? void 0 : extra.isMonorepoSubProject)
|
|
145945
145925
|
}
|
|
145946
145926
|
}
|
|
145947
145927
|
}
|
|
@@ -146074,7 +146054,6 @@ var ActionFunction;
|
|
|
146074
146054
|
ActionFunction2["Test"] = "test";
|
|
146075
146055
|
ActionFunction2["E2ETest"] = "e2e_test";
|
|
146076
146056
|
ActionFunction2["Storybook"] = "storybook";
|
|
146077
|
-
ActionFunction2["StorybookV7"] = "storybookV7";
|
|
146078
146057
|
ActionFunction2["RuntimeApi"] = "runtimeApi";
|
|
146079
146058
|
ActionFunction2["SSG"] = "ssg";
|
|
146080
146059
|
ActionFunction2["Polyfill"] = "polyfill";
|
|
@@ -146108,7 +146087,6 @@ var ActionFunctionText = {
|
|
|
146108
146087
|
[ActionFunction.Test]: () => i18n2.t(localeKeys2.action.function.test),
|
|
146109
146088
|
[ActionFunction.E2ETest]: () => i18n2.t(localeKeys2.action.function.e2e_test),
|
|
146110
146089
|
[ActionFunction.Storybook]: () => i18n2.t(localeKeys2.action.function.storybook),
|
|
146111
|
-
[ActionFunction.StorybookV7]: () => i18n2.t(localeKeys2.action.function.storybookV7),
|
|
146112
146090
|
[ActionFunction.RuntimeApi]: () => i18n2.t(localeKeys2.action.function.runtime_api),
|
|
146113
146091
|
[ActionFunction.SSG]: () => i18n2.t(localeKeys2.action.function.ssg),
|
|
146114
146092
|
[ActionFunction.Polyfill]: () => i18n2.t(localeKeys2.action.function.polyfill),
|
|
@@ -146141,8 +146119,7 @@ var MWAActionFunctions = [
|
|
|
146141
146119
|
ActionFunction.Test,
|
|
146142
146120
|
ActionFunction.Polyfill,
|
|
146143
146121
|
ActionFunction.Proxy,
|
|
146144
|
-
ActionFunction.Storybook
|
|
146145
|
-
ActionFunction.StorybookV7
|
|
146122
|
+
ActionFunction.Storybook
|
|
146146
146123
|
];
|
|
146147
146124
|
var MWAActionElements = [
|
|
146148
146125
|
ActionElement.Entry,
|
|
@@ -146241,7 +146218,6 @@ var MWAActionFunctionsDevDependencies = {
|
|
|
146241
146218
|
[ActionFunction.SSG]: "@modern-js/plugin-ssg",
|
|
146242
146219
|
[ActionFunction.Test]: "@modern-js/plugin-testing",
|
|
146243
146220
|
[ActionFunction.Storybook]: "@modern-js/plugin-storybook",
|
|
146244
|
-
[ActionFunction.StorybookV7]: "@modern-js/storybook",
|
|
146245
146221
|
[ActionFunction.Proxy]: "@modern-js/plugin-proxy",
|
|
146246
146222
|
[ActionFunction.TailwindCSS]: "tailwindcss",
|
|
146247
146223
|
[ActionFunction.SWC]: "@modern-js/plugin-swc",
|
|
@@ -146274,7 +146250,6 @@ var MWANewActionGenerators = {
|
|
|
146274
146250
|
[ActionFunction.MicroFrontend]: "@modern-js/dependence-generator",
|
|
146275
146251
|
[ActionFunction.Test]: "@modern-js/test-generator",
|
|
146276
146252
|
[ActionFunction.Storybook]: "@modern-js/dependence-generator",
|
|
146277
|
-
[ActionFunction.StorybookV7]: "@modern-js/storybook-generator-next",
|
|
146278
146253
|
[ActionFunction.SSG]: "@modern-js/ssg-generator",
|
|
146279
146254
|
[ActionFunction.Polyfill]: "@modern-js/dependence-generator",
|
|
146280
146255
|
[ActionFunction.Proxy]: "@modern-js/dependence-generator",
|
|
@@ -146295,7 +146270,6 @@ var MWANewActionPluginName = {
|
|
|
146295
146270
|
[ActionFunction.MicroFrontend]: "garfishPlugin",
|
|
146296
146271
|
[ActionFunction.Test]: "testPlugin",
|
|
146297
146272
|
[ActionFunction.Storybook]: "storybookPlugin",
|
|
146298
|
-
[ActionFunction.StorybookV7]: "storybookFramework",
|
|
146299
146273
|
[ActionFunction.SSG]: "ssgPlugin",
|
|
146300
146274
|
[ActionFunction.Polyfill]: "polyfillPlugin",
|
|
146301
146275
|
[ActionFunction.Proxy]: "proxyPlugin",
|
|
@@ -146315,7 +146289,6 @@ var MWANewActionPluginDependence = {
|
|
|
146315
146289
|
[ActionFunction.MicroFrontend]: "@modern-js/plugin-garfish",
|
|
146316
146290
|
[ActionFunction.Test]: "@modern-js/plugin-testing",
|
|
146317
146291
|
[ActionFunction.Storybook]: "@modern-js/plugin-storybook",
|
|
146318
|
-
[ActionFunction.StorybookV7]: "@modern-js/storybook",
|
|
146319
146292
|
[ActionFunction.SSG]: "@modern-js/plugin-ssg",
|
|
146320
146293
|
[ActionFunction.Polyfill]: "@modern-js/plugin-polyfill",
|
|
146321
146294
|
[ActionFunction.Proxy]: "@modern-js/plugin-proxy",
|
|
@@ -146404,7 +146377,6 @@ var ModuleNewActionGenerators = {
|
|
|
146404
146377
|
[ActionFunction.Test]: "@modern-js/module-test-generator",
|
|
146405
146378
|
[ActionFunction.TailwindCSS]: "@modern-js/tailwindcss-generator",
|
|
146406
146379
|
[ActionFunction.Storybook]: "@modern-js/storybook-generator",
|
|
146407
|
-
[ActionFunction.StorybookV7]: "@modern-js/storybook-generator-next",
|
|
146408
146380
|
[ActionFunction.RuntimeApi]: "@modern-js/dependence-generator"
|
|
146409
146381
|
}
|
|
146410
146382
|
};
|
|
@@ -146412,7 +146384,6 @@ var ModuleNewActionPluginName = {
|
|
|
146412
146384
|
[ActionType.Function]: {
|
|
146413
146385
|
[ActionFunction.TailwindCSS]: "tailwindcssPlugin",
|
|
146414
146386
|
[ActionFunction.Storybook]: "storybookPlugin",
|
|
146415
|
-
[ActionFunction.StorybookV7]: "storybookFramework",
|
|
146416
146387
|
[ActionFunction.Test]: "testPlugin"
|
|
146417
146388
|
}
|
|
146418
146389
|
};
|
|
@@ -146420,8 +146391,7 @@ var ModuleNewActionPluginDependence = {
|
|
|
146420
146391
|
[ActionType.Function]: {
|
|
146421
146392
|
[ActionFunction.Test]: "@modern-js/plugin-testing",
|
|
146422
146393
|
[ActionFunction.TailwindCSS]: "@modern-js/plugin-tailwindcss",
|
|
146423
|
-
[ActionFunction.Storybook]: "@modern-js/plugin-storybook"
|
|
146424
|
-
[ActionFunction.StorybookV7]: "@modern-js/storybook"
|
|
146394
|
+
[ActionFunction.Storybook]: "@modern-js/plugin-storybook"
|
|
146425
146395
|
}
|
|
146426
146396
|
};
|
|
146427
146397
|
|
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-20230920124355",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"main": "./dist/index.js",
|
|
21
21
|
"files": [
|
|
@@ -29,16 +29,16 @@
|
|
|
29
29
|
"@types/node": "^14",
|
|
30
30
|
"jest": "^29",
|
|
31
31
|
"typescript": "^5",
|
|
32
|
-
"@modern-js/generator
|
|
33
|
-
"@modern-js/
|
|
34
|
-
"@modern-js/
|
|
35
|
-
"@modern-js/
|
|
36
|
-
"@modern-js/
|
|
37
|
-
"@modern-js/generator
|
|
38
|
-
"@modern-js/generator
|
|
39
|
-
"@modern-js/
|
|
40
|
-
"@scripts/
|
|
41
|
-
"@scripts/
|
|
32
|
+
"@modern-js/base-generator": "0.0.0-next-20230920124355",
|
|
33
|
+
"@modern-js/generator-common": "0.0.0-next-20230920124355",
|
|
34
|
+
"@modern-js/generator-plugin": "0.0.0-next-20230920124355",
|
|
35
|
+
"@modern-js/generator-utils": "0.0.0-next-20230920124355",
|
|
36
|
+
"@modern-js/module-generator": "0.0.0-next-20230920124355",
|
|
37
|
+
"@modern-js/monorepo-generator": "0.0.0-next-20230920124355",
|
|
38
|
+
"@modern-js/mwa-generator": "0.0.0-next-20230920124355",
|
|
39
|
+
"@modern-js/utils": "0.0.0-next-20230920124355",
|
|
40
|
+
"@scripts/build": "0.0.0-next-20230920124355",
|
|
41
|
+
"@scripts/jest-config": "0.0.0-next-20230920124355"
|
|
42
42
|
},
|
|
43
43
|
"sideEffects": false,
|
|
44
44
|
"publishConfig": {
|