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