@bleedingdev/modern-js-create 3.2.0-ultramodern.120 → 3.2.0-ultramodern.121
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/README.md +35 -12
- package/dist/cjs/create-package-root.cjs +7 -9
- package/dist/cjs/index.cjs +74 -44
- package/dist/cjs/locale/en.cjs +6 -7
- package/dist/cjs/locale/zh.cjs +6 -7
- package/dist/cjs/ultramodern-workspace/add-vertical.cjs +337 -0
- package/dist/cjs/ultramodern-workspace/app-files.cjs +223 -0
- package/dist/cjs/ultramodern-workspace/contracts.cjs +836 -0
- package/dist/cjs/ultramodern-workspace/demo-components.cjs +422 -0
- package/dist/cjs/ultramodern-workspace/descriptors.cjs +222 -0
- package/dist/cjs/ultramodern-workspace/effect-api.cjs +952 -0
- package/dist/cjs/ultramodern-workspace/fs-io.cjs +191 -0
- package/dist/cjs/ultramodern-workspace/index.cjs +48 -0
- package/dist/cjs/ultramodern-workspace/locales.cjs +173 -0
- package/dist/cjs/ultramodern-workspace/module-federation.cjs +487 -0
- package/dist/cjs/ultramodern-workspace/naming.cjs +161 -0
- package/dist/cjs/ultramodern-workspace/package-json.cjs +406 -0
- package/dist/cjs/ultramodern-workspace/package-source.cjs +59 -0
- package/dist/cjs/ultramodern-workspace/policy.cjs +248 -0
- package/dist/cjs/ultramodern-workspace/public-surface.cjs +268 -0
- package/dist/cjs/ultramodern-workspace/routes.cjs +375 -0
- package/dist/cjs/ultramodern-workspace/types.cjs +61 -0
- package/dist/cjs/ultramodern-workspace/versions.cjs +153 -0
- package/dist/cjs/ultramodern-workspace/workspace-scripts.cjs +153 -0
- package/dist/cjs/ultramodern-workspace/write-workspace.cjs +175 -0
- package/dist/esm/create-package-root.js +7 -9
- package/dist/esm/index.js +72 -42
- package/dist/esm/locale/en.js +6 -7
- package/dist/esm/locale/zh.js +6 -7
- package/dist/esm/ultramodern-workspace/add-vertical.js +252 -0
- package/dist/esm/ultramodern-workspace/app-files.js +149 -0
- package/dist/esm/ultramodern-workspace/contracts.js +741 -0
- package/dist/esm/ultramodern-workspace/demo-components.js +363 -0
- package/dist/esm/ultramodern-workspace/descriptors.js +133 -0
- package/dist/esm/ultramodern-workspace/effect-api.js +854 -0
- package/dist/esm/ultramodern-workspace/fs-io.js +90 -0
- package/dist/esm/ultramodern-workspace/index.js +3 -0
- package/dist/esm/ultramodern-workspace/locales.js +122 -0
- package/dist/esm/ultramodern-workspace/module-federation.js +415 -0
- package/dist/esm/ultramodern-workspace/naming.js +71 -0
- package/dist/esm/ultramodern-workspace/package-json.js +338 -0
- package/dist/esm/ultramodern-workspace/package-source.js +21 -0
- package/dist/esm/ultramodern-workspace/policy.js +183 -0
- package/dist/esm/ultramodern-workspace/public-surface.js +183 -0
- package/dist/esm/ultramodern-workspace/routes.js +280 -0
- package/dist/esm/ultramodern-workspace/types.js +16 -0
- package/dist/esm/ultramodern-workspace/versions.js +34 -0
- package/dist/esm/ultramodern-workspace/workspace-scripts.js +91 -0
- package/dist/esm/ultramodern-workspace/write-workspace.js +121 -0
- package/dist/esm-node/create-package-root.js +7 -9
- package/dist/esm-node/index.js +72 -42
- package/dist/esm-node/locale/en.js +6 -7
- package/dist/esm-node/locale/zh.js +6 -7
- package/dist/esm-node/ultramodern-workspace/add-vertical.js +253 -0
- package/dist/esm-node/ultramodern-workspace/app-files.js +150 -0
- package/dist/esm-node/ultramodern-workspace/contracts.js +742 -0
- package/dist/esm-node/ultramodern-workspace/demo-components.js +364 -0
- package/dist/esm-node/ultramodern-workspace/descriptors.js +134 -0
- package/dist/esm-node/ultramodern-workspace/effect-api.js +855 -0
- package/dist/esm-node/ultramodern-workspace/fs-io.js +91 -0
- package/dist/esm-node/ultramodern-workspace/index.js +4 -0
- package/dist/esm-node/ultramodern-workspace/locales.js +123 -0
- package/dist/esm-node/ultramodern-workspace/module-federation.js +416 -0
- package/dist/esm-node/ultramodern-workspace/naming.js +72 -0
- package/dist/esm-node/ultramodern-workspace/package-json.js +339 -0
- package/dist/esm-node/ultramodern-workspace/package-source.js +22 -0
- package/dist/esm-node/ultramodern-workspace/policy.js +184 -0
- package/dist/esm-node/ultramodern-workspace/public-surface.js +184 -0
- package/dist/esm-node/ultramodern-workspace/routes.js +281 -0
- package/dist/esm-node/ultramodern-workspace/types.js +17 -0
- package/dist/esm-node/ultramodern-workspace/versions.js +35 -0
- package/dist/esm-node/ultramodern-workspace/workspace-scripts.js +92 -0
- package/dist/esm-node/ultramodern-workspace/write-workspace.js +122 -0
- package/dist/types/locale/en.d.ts +4 -5
- package/dist/types/locale/index.d.ts +8 -10
- package/dist/types/locale/zh.d.ts +4 -5
- package/dist/types/ultramodern-workspace/add-vertical.d.ts +19 -0
- package/dist/types/ultramodern-workspace/app-files.d.ts +14 -0
- package/dist/types/ultramodern-workspace/contracts.d.ts +21 -0
- package/dist/types/ultramodern-workspace/demo-components.d.ts +9 -0
- package/dist/types/ultramodern-workspace/descriptors.d.ts +39 -0
- package/dist/types/ultramodern-workspace/effect-api.d.ts +73 -0
- package/dist/types/ultramodern-workspace/fs-io.d.ts +18 -0
- package/dist/types/ultramodern-workspace/index.d.ts +4 -0
- package/dist/types/ultramodern-workspace/locales.d.ts +183 -0
- package/dist/types/ultramodern-workspace/module-federation.d.ts +16 -0
- package/dist/types/ultramodern-workspace/naming.d.ts +16 -0
- package/dist/types/ultramodern-workspace/package-json.d.ts +12 -0
- package/dist/types/ultramodern-workspace/package-source.d.ts +2 -0
- package/dist/types/ultramodern-workspace/policy.d.ts +60 -0
- package/dist/types/ultramodern-workspace/public-surface.d.ts +37 -0
- package/dist/types/ultramodern-workspace/routes.d.ts +25 -0
- package/dist/types/ultramodern-workspace/types.d.ts +95 -0
- package/dist/types/ultramodern-workspace/versions.d.ts +38 -0
- package/dist/types/ultramodern-workspace/workspace-scripts.d.ts +10 -0
- package/dist/types/ultramodern-workspace/write-workspace.d.ts +4 -0
- package/package.json +4 -3
- package/template-workspace/.github/workflows/ultramodern-workspace-gates.yml.handlebars +1 -4
- package/template-workspace/.mise.toml.handlebars +1 -0
- package/template-workspace/{AGENTS.md → AGENTS.md.handlebars} +12 -7
- package/template-workspace/README.md.handlebars +40 -24
- package/template-workspace/{pnpm-workspace.yaml → pnpm-workspace.yaml.handlebars} +2 -2
- package/template-workspace/scripts/bootstrap-agent-skills.mjs +31 -51
- package/templates/app/shell-frame.tsx +49 -0
- package/templates/app/ultramodern-route-head.tsx.handlebars +142 -0
- package/templates/packages/shared-contracts-index.ts +466 -0
- package/templates/workspace-scripts/assert-mf-types.mjs.handlebars +69 -0
- package/templates/workspace-scripts/check-ultramodern-i18n-boundaries.mjs +9 -0
- package/templates/workspace-scripts/generate-public-surface-assets.mjs +529 -0
- package/templates/workspace-scripts/proof-cloudflare-version.mjs +125 -0
- package/templates/workspace-scripts/ultramodern-cloudflare-proof.mjs +851 -0
- package/templates/workspace-scripts/ultramodern-performance-readiness.config.mjs +7 -0
- package/templates/workspace-scripts/ultramodern-performance-readiness.mjs +223 -0
- package/templates/workspace-scripts/validate-ultramodern-workspace.mjs.handlebars +593 -0
- package/dist/cjs/ultramodern-workspace.cjs +0 -6797
- package/dist/esm/ultramodern-workspace.js +0 -6738
- package/dist/esm-node/ultramodern-workspace.js +0 -6739
- package/dist/types/ultramodern-workspace.d.ts +0 -29
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import "node:module";
|
|
2
|
+
import node_fs from "node:fs";
|
|
3
|
+
import { createAppEnvDts, createAppRuntimeConfig, createAppStyles, createPostcssConfig, createSharedDesignTokensCss, createShellFrameComponent, createTailwindConfig } from "./app-files.js";
|
|
4
|
+
import { createDevelopmentOverlay, createGeneratedContract, createOwnership, createPackageSourceMetadata, createTemplateManifest, createTopology } from "./contracts.js";
|
|
5
|
+
import { createLayout, createRemoteEntry, createRemoteExposeComponent, createRemotePage, createShellPage, createShellRemoteComponents, remoteComponentOutputPath } from "./demo-components.js";
|
|
6
|
+
import { GENERATED_CONTRACT_PATH, appHasEffectApi, appI18nNamespace, createShellHost, sharedPackages, shellApp } from "./descriptors.js";
|
|
7
|
+
import { createEffectClient, createEffectServiceEntry, createEffectSharedApi, createShellEffectClient } from "./effect-api.js";
|
|
8
|
+
import { copyRootTemplate, writeFile, writeJson } from "./fs-io.js";
|
|
9
|
+
import { createAppPublicLocaleMessages } from "./locales.js";
|
|
10
|
+
import { createAppModernConfig, createRemoteModuleFederationConfig, createShellModuleFederationConfig, createUltramodernBuildModule } from "./module-federation.js";
|
|
11
|
+
import { assertUniqueTailwindPrefixes, relativeRootFor, toPackageScope } from "./naming.js";
|
|
12
|
+
import { createAppPackage, createPackageTsConfig, createRootPackageJson, createSharedContractsIndex, createSharedPackage, createTsConfigBase } from "./package-json.js";
|
|
13
|
+
import { resolvePackageSource } from "./package-source.js";
|
|
14
|
+
import { createPublicWebAppArtifacts } from "./public-surface.js";
|
|
15
|
+
import { NODE_FETCH_VERSION, NODE_VERSION, PNPM_VERSION, TANSTACK_ROUTER_VERSION } from "./versions.js";
|
|
16
|
+
import { writeGeneratedWorkspaceScripts } from "./workspace-scripts.js";
|
|
17
|
+
function writeApp(targetDir, scope, app, packageSource, enableTailwind, remotes = []) {
|
|
18
|
+
const resolvedApp = 'shell' === app.kind ? createShellHost(remotes) : app;
|
|
19
|
+
const publicWeb = createPublicWebAppArtifacts(resolvedApp);
|
|
20
|
+
const writeAppFile = (relativePath, content)=>{
|
|
21
|
+
writeFile(targetDir, `${resolvedApp.directory}/${relativePath}`, content);
|
|
22
|
+
};
|
|
23
|
+
writeJson(targetDir, `${resolvedApp.directory}/package.json`, createAppPackage(scope, resolvedApp, packageSource, enableTailwind, remotes));
|
|
24
|
+
writeJson(targetDir, `${resolvedApp.directory}/tsconfig.json`, createPackageTsConfig(resolvedApp.directory, appHasEffectApi(resolvedApp)));
|
|
25
|
+
writeFile(targetDir, `${resolvedApp.directory}/src/modern-app-env.d.ts`, createAppEnvDts(resolvedApp, remotes));
|
|
26
|
+
writeFile(targetDir, `${resolvedApp.directory}/src/ultramodern-build.ts`, createUltramodernBuildModule(scope, resolvedApp));
|
|
27
|
+
writeFile(targetDir, publicWeb.jsonLdHelperFile.path, publicWeb.jsonLdHelperFile.content);
|
|
28
|
+
writeFile(targetDir, publicWeb.routeMetadataFile.path, publicWeb.routeMetadataFile.content);
|
|
29
|
+
writeFile(targetDir, publicWeb.routeHeadFile.path, publicWeb.routeHeadFile.content);
|
|
30
|
+
writeFile(targetDir, `${resolvedApp.directory}/modern.config.ts`, createAppModernConfig(scope, resolvedApp));
|
|
31
|
+
writeFile(targetDir, `${resolvedApp.directory}/src/modern.runtime.ts`, createAppRuntimeConfig(resolvedApp, scope, remotes));
|
|
32
|
+
writeJson(targetDir, `${resolvedApp.directory}/locales/en/translation.json`, createAppPublicLocaleMessages(resolvedApp, 'en', remotes));
|
|
33
|
+
writeJson(targetDir, `${resolvedApp.directory}/locales/en/${appI18nNamespace(resolvedApp)}.json`, createAppPublicLocaleMessages(resolvedApp, 'en', remotes));
|
|
34
|
+
writeJson(targetDir, `${resolvedApp.directory}/locales/cs/translation.json`, createAppPublicLocaleMessages(resolvedApp, 'cs', remotes));
|
|
35
|
+
writeJson(targetDir, `${resolvedApp.directory}/locales/cs/${appI18nNamespace(resolvedApp)}.json`, createAppPublicLocaleMessages(resolvedApp, 'cs', remotes));
|
|
36
|
+
writeFile(targetDir, `${resolvedApp.directory}/src/routes/index.css`, createAppStyles(enableTailwind, scope, resolvedApp));
|
|
37
|
+
if (enableTailwind) {
|
|
38
|
+
writeFile(targetDir, `${resolvedApp.directory}/postcss.config.mjs`, createPostcssConfig());
|
|
39
|
+
writeFile(targetDir, `${resolvedApp.directory}/tailwind.config.ts`, createTailwindConfig());
|
|
40
|
+
}
|
|
41
|
+
writeFile(targetDir, `${resolvedApp.directory}/module-federation.config.ts`, 'shell' === resolvedApp.kind ? createShellModuleFederationConfig(scope, remotes) : createRemoteModuleFederationConfig(scope, resolvedApp, remotes));
|
|
42
|
+
writeAppFile('src/routes/layout.tsx', createLayout(resolvedApp.id));
|
|
43
|
+
writeAppFile('src/routes/[lang]/page.tsx', 'shell' === resolvedApp.kind ? createShellPage(remotes) : createRemotePage(resolvedApp));
|
|
44
|
+
for (const generatedFile of publicWeb.routeMetaFiles)writeFile(targetDir, generatedFile.path, generatedFile.content);
|
|
45
|
+
for (const generatedFile of publicWeb.routeAliasFiles)writeFile(targetDir, generatedFile.path, generatedFile.content);
|
|
46
|
+
if ('shell' === resolvedApp.kind) {
|
|
47
|
+
writeAppFile('src/routes/vertical-components.tsx', createShellRemoteComponents(scope, remotes));
|
|
48
|
+
writeAppFile('src/routes/shell-frame.tsx', createShellFrameComponent());
|
|
49
|
+
writeFile(targetDir, `${resolvedApp.directory}/src/effect/vertical-clients.ts`, createShellEffectClient(scope, remotes));
|
|
50
|
+
}
|
|
51
|
+
if (appHasEffectApi(resolvedApp)) {
|
|
52
|
+
writeFile(targetDir, `${resolvedApp.directory}/shared/effect/api.ts`, createEffectSharedApi(resolvedApp));
|
|
53
|
+
writeFile(targetDir, `${resolvedApp.directory}/api/effect/index.ts`, createEffectServiceEntry(resolvedApp, '../../shared/effect/api.ts'));
|
|
54
|
+
writeFile(targetDir, `${resolvedApp.directory}/src/effect/${resolvedApp.effectApi.stem}-client.ts`, createEffectClient(resolvedApp, '../../shared/effect/api'));
|
|
55
|
+
}
|
|
56
|
+
if ('vertical' === resolvedApp.kind) {
|
|
57
|
+
writeAppFile('src/federation-entry.tsx', createRemoteEntry(resolvedApp));
|
|
58
|
+
for (const expose of Object.keys(resolvedApp.exposes ?? {})){
|
|
59
|
+
const outputPath = remoteComponentOutputPath(resolvedApp, expose);
|
|
60
|
+
if (outputPath) writeAppFile(outputPath.slice(resolvedApp.directory.length + 1), createRemoteExposeComponent(resolvedApp, expose));
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
function writeSharedPackages(targetDir, scope) {
|
|
65
|
+
for (const sharedPackage of sharedPackages){
|
|
66
|
+
writeJson(targetDir, `${sharedPackage.directory}/package.json`, createSharedPackage(scope, sharedPackage.id, sharedPackage.description));
|
|
67
|
+
writeJson(targetDir, `${sharedPackage.directory}/tsconfig.json`, {
|
|
68
|
+
extends: `${relativeRootFor(sharedPackage.directory)}/tsconfig.base.json`,
|
|
69
|
+
include: [
|
|
70
|
+
'src'
|
|
71
|
+
]
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
writeFile(targetDir, 'packages/shared-contracts/src/index.ts', createSharedContractsIndex());
|
|
75
|
+
writeFile(targetDir, 'packages/shared-design-tokens/src/index.ts', `export const sharedDesignTokens = {
|
|
76
|
+
color: {
|
|
77
|
+
accent: '#2f8f68',
|
|
78
|
+
foreground: '#133225',
|
|
79
|
+
surface: '#f6fbf7',
|
|
80
|
+
},
|
|
81
|
+
} as const;
|
|
82
|
+
`);
|
|
83
|
+
writeFile(targetDir, 'packages/shared-design-tokens/src/tokens.css', createSharedDesignTokensCss());
|
|
84
|
+
}
|
|
85
|
+
function generateUltramodernWorkspace(options) {
|
|
86
|
+
const scope = toPackageScope(options.packageName);
|
|
87
|
+
const packageSource = resolvePackageSource(options);
|
|
88
|
+
const enableTailwind = false !== options.enableTailwind;
|
|
89
|
+
const initialVerticals = [];
|
|
90
|
+
assertUniqueTailwindPrefixes([
|
|
91
|
+
shellApp,
|
|
92
|
+
...initialVerticals
|
|
93
|
+
]);
|
|
94
|
+
node_fs.mkdirSync(options.targetDir, {
|
|
95
|
+
recursive: true
|
|
96
|
+
});
|
|
97
|
+
copyRootTemplate(options.targetDir, {
|
|
98
|
+
packageName: options.packageName,
|
|
99
|
+
packageScope: scope,
|
|
100
|
+
nodeVersion: NODE_VERSION,
|
|
101
|
+
pnpmVersion: PNPM_VERSION,
|
|
102
|
+
nodeFetchVersion: NODE_FETCH_VERSION,
|
|
103
|
+
tanstackRouterVersion: TANSTACK_ROUTER_VERSION,
|
|
104
|
+
tailwindEnabled: String(enableTailwind)
|
|
105
|
+
});
|
|
106
|
+
writeJson(options.targetDir, 'package.json', createRootPackageJson(scope, packageSource, initialVerticals));
|
|
107
|
+
writeJson(options.targetDir, 'tsconfig.base.json', createTsConfigBase());
|
|
108
|
+
writeJson(options.targetDir, 'topology/reference-topology.json', createTopology(scope, initialVerticals));
|
|
109
|
+
writeJson(options.targetDir, 'topology/ownership.json', createOwnership(scope, initialVerticals));
|
|
110
|
+
writeJson(options.targetDir, 'topology/local-overlays/development.json', createDevelopmentOverlay(initialVerticals));
|
|
111
|
+
writeJson(options.targetDir, '.modernjs/ultramodern-workspace-template-manifest.json', createTemplateManifest(options.modernVersion, packageSource));
|
|
112
|
+
writeJson(options.targetDir, '.modernjs/ultramodern-package-source.json', createPackageSourceMetadata(scope, packageSource));
|
|
113
|
+
writeJson(options.targetDir, GENERATED_CONTRACT_PATH, createGeneratedContract(scope, [
|
|
114
|
+
createShellHost(initialVerticals),
|
|
115
|
+
...initialVerticals
|
|
116
|
+
], enableTailwind));
|
|
117
|
+
writeApp(options.targetDir, scope, shellApp, packageSource, enableTailwind, initialVerticals);
|
|
118
|
+
for (const remote of initialVerticals)writeApp(options.targetDir, scope, remote, packageSource, enableTailwind, initialVerticals);
|
|
119
|
+
writeSharedPackages(options.targetDir, scope);
|
|
120
|
+
writeGeneratedWorkspaceScripts(options.targetDir, scope, enableTailwind, initialVerticals);
|
|
121
|
+
}
|
|
122
|
+
export { generateUltramodernWorkspace, writeApp, writeSharedPackages };
|
|
@@ -28,8 +28,12 @@ export declare const EN_LOCALE: {
|
|
|
28
28
|
optionVersion: string;
|
|
29
29
|
optionLang: string;
|
|
30
30
|
optionTailwind: string;
|
|
31
|
+
optionBff: string;
|
|
32
|
+
optionBffRuntime: string;
|
|
31
33
|
optionWorkspace: string;
|
|
32
34
|
optionUltramodernPackageSource: string;
|
|
35
|
+
optionUltramodernPackageVersion: string;
|
|
36
|
+
optionUltramodernPackageRegistry: string;
|
|
33
37
|
optionUltramodernPackageScope: string;
|
|
34
38
|
optionUltramodernPackageNamePrefix: string;
|
|
35
39
|
optionVertical: string;
|
|
@@ -42,11 +46,6 @@ export declare const EN_LOCALE: {
|
|
|
42
46
|
example5: string;
|
|
43
47
|
example6: string;
|
|
44
48
|
example7: string;
|
|
45
|
-
example8: string;
|
|
46
|
-
example9: string;
|
|
47
|
-
example10: string;
|
|
48
|
-
example11: string;
|
|
49
|
-
example12: string;
|
|
50
49
|
moreInfo: string;
|
|
51
50
|
};
|
|
52
51
|
version: {
|
|
@@ -30,8 +30,12 @@ declare const localeKeys: {
|
|
|
30
30
|
optionVersion: string;
|
|
31
31
|
optionLang: string;
|
|
32
32
|
optionTailwind: string;
|
|
33
|
+
optionBff: string;
|
|
34
|
+
optionBffRuntime: string;
|
|
33
35
|
optionWorkspace: string;
|
|
34
36
|
optionUltramodernPackageSource: string;
|
|
37
|
+
optionUltramodernPackageVersion: string;
|
|
38
|
+
optionUltramodernPackageRegistry: string;
|
|
35
39
|
optionUltramodernPackageScope: string;
|
|
36
40
|
optionUltramodernPackageNamePrefix: string;
|
|
37
41
|
optionVertical: string;
|
|
@@ -44,11 +48,6 @@ declare const localeKeys: {
|
|
|
44
48
|
example5: string;
|
|
45
49
|
example6: string;
|
|
46
50
|
example7: string;
|
|
47
|
-
example8: string;
|
|
48
|
-
example9: string;
|
|
49
|
-
example10: string;
|
|
50
|
-
example11: string;
|
|
51
|
-
example12: string;
|
|
52
51
|
moreInfo: string;
|
|
53
52
|
};
|
|
54
53
|
version: {
|
|
@@ -84,8 +83,12 @@ declare const localeKeys: {
|
|
|
84
83
|
optionVersion: string;
|
|
85
84
|
optionLang: string;
|
|
86
85
|
optionTailwind: string;
|
|
86
|
+
optionBff: string;
|
|
87
|
+
optionBffRuntime: string;
|
|
87
88
|
optionWorkspace: string;
|
|
88
89
|
optionUltramodernPackageSource: string;
|
|
90
|
+
optionUltramodernPackageVersion: string;
|
|
91
|
+
optionUltramodernPackageRegistry: string;
|
|
89
92
|
optionUltramodernPackageScope: string;
|
|
90
93
|
optionUltramodernPackageNamePrefix: string;
|
|
91
94
|
optionVertical: string;
|
|
@@ -98,11 +101,6 @@ declare const localeKeys: {
|
|
|
98
101
|
example5: string;
|
|
99
102
|
example6: string;
|
|
100
103
|
example7: string;
|
|
101
|
-
example8: string;
|
|
102
|
-
example9: string;
|
|
103
|
-
example10: string;
|
|
104
|
-
example11: string;
|
|
105
|
-
example12: string;
|
|
106
104
|
moreInfo: string;
|
|
107
105
|
};
|
|
108
106
|
version: {
|
|
@@ -28,8 +28,12 @@ export declare const ZH_LOCALE: {
|
|
|
28
28
|
optionVersion: string;
|
|
29
29
|
optionLang: string;
|
|
30
30
|
optionTailwind: string;
|
|
31
|
+
optionBff: string;
|
|
32
|
+
optionBffRuntime: string;
|
|
31
33
|
optionWorkspace: string;
|
|
32
34
|
optionUltramodernPackageSource: string;
|
|
35
|
+
optionUltramodernPackageVersion: string;
|
|
36
|
+
optionUltramodernPackageRegistry: string;
|
|
33
37
|
optionUltramodernPackageScope: string;
|
|
34
38
|
optionUltramodernPackageNamePrefix: string;
|
|
35
39
|
optionVertical: string;
|
|
@@ -42,11 +46,6 @@ export declare const ZH_LOCALE: {
|
|
|
42
46
|
example5: string;
|
|
43
47
|
example6: string;
|
|
44
48
|
example7: string;
|
|
45
|
-
example8: string;
|
|
46
|
-
example9: string;
|
|
47
|
-
example10: string;
|
|
48
|
-
example11: string;
|
|
49
|
-
example12: string;
|
|
50
49
|
moreInfo: string;
|
|
51
50
|
};
|
|
52
51
|
version: {
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { AddUltramodernVerticalOptions, JsonValue, Ownership, ResolvedPackageSource, UltramodernWorkspaceOptions, WorkspaceApp } from './types';
|
|
2
|
+
export declare function existingPackageSource(workspaceRoot: string, modernVersion: string, packageSource?: UltramodernWorkspaceOptions['packageSource']): ResolvedPackageSource;
|
|
3
|
+
export declare function existingTailwindEnabled(workspaceRoot: string): boolean;
|
|
4
|
+
export declare function assertValidVerticalName(name: string): string;
|
|
5
|
+
export declare function nextAvailablePort(ports: Record<string, unknown>): number;
|
|
6
|
+
export declare function assertCanCreate(workspaceRoot: string, relativePath: string): void;
|
|
7
|
+
export declare function updateRootWorkspaceScripts(workspaceRoot: string, scope: string, packageSource: ResolvedPackageSource, remotes: WorkspaceApp[]): void;
|
|
8
|
+
export declare function rewriteShellAppFiles(workspaceRoot: string, scope: string, packageSource: ResolvedPackageSource, enableTailwind: boolean, remotes: WorkspaceApp[]): void;
|
|
9
|
+
export declare function addShellZephyrDependency(workspaceRoot: string, scope: string, remote: WorkspaceApp): void;
|
|
10
|
+
export declare function addShellWorkspaceDependency(workspaceRoot: string, scope: string, remote: WorkspaceApp): void;
|
|
11
|
+
export declare function verticalTopologyEntry(scope: string, vertical: WorkspaceApp, remotes?: WorkspaceApp[]): JsonValue;
|
|
12
|
+
export declare function ownershipEntry(scope: string, owner: {
|
|
13
|
+
id: string;
|
|
14
|
+
packageSuffix: string;
|
|
15
|
+
directory: string;
|
|
16
|
+
ownership: Ownership;
|
|
17
|
+
}): JsonValue;
|
|
18
|
+
export declare function verticalsFromTopology(topology: Record<string, any>, ports: Record<string, unknown>): WorkspaceApp[];
|
|
19
|
+
export declare function addUltramodernVertical(options: AddUltramodernVerticalOptions): void;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { JsonValue, WorkspaceApp } from './types';
|
|
2
|
+
export declare function createBoundaryDebugMetadata(scope: string, remotes?: WorkspaceApp[]): JsonValue;
|
|
3
|
+
export declare function createAppEnvDts(app: WorkspaceApp, remotes?: WorkspaceApp[]): string;
|
|
4
|
+
export declare function createAppRuntimeConfig(app: WorkspaceApp, scope: string, remotes?: WorkspaceApp[]): string;
|
|
5
|
+
export declare function createCssTokenImport(scope: string): string;
|
|
6
|
+
export declare function createTailwindImport(prefix: string): string;
|
|
7
|
+
export declare function createShellStyles(enableTailwind: boolean, scope: string): string;
|
|
8
|
+
export declare function createRemoteStyles(enableTailwind: boolean, scope: string, app: WorkspaceApp): string;
|
|
9
|
+
export declare function createAppStyles(enableTailwind: boolean, scope: string, app: WorkspaceApp): string;
|
|
10
|
+
export declare function createPostcssConfig(): string;
|
|
11
|
+
export declare function createTailwindConfig(): string;
|
|
12
|
+
export declare function createSharedDesignTokensCss(): string;
|
|
13
|
+
export declare function createRouteHeadModule(app: WorkspaceApp): string;
|
|
14
|
+
export declare function createShellFrameComponent(): string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { JsonValue, ResolvedPackageSource, WorkspaceApp } from './types';
|
|
2
|
+
export declare const baselineAgentSkills: string[];
|
|
3
|
+
export declare const moduleFederationAgentSkills: string[];
|
|
4
|
+
export declare const privateAgentSkills: string[];
|
|
5
|
+
export declare function createTopology(scope: string, remotes?: WorkspaceApp[]): JsonValue;
|
|
6
|
+
export declare function createOwnership(scope: string, remotes?: WorkspaceApp[]): JsonValue;
|
|
7
|
+
export declare function createDevelopmentOverlay(remotes?: WorkspaceApp[]): JsonValue;
|
|
8
|
+
export declare function createPackageSourceMetadata(scope: string, packageSource: ResolvedPackageSource): JsonValue;
|
|
9
|
+
export declare function createAppConfigContract(app: WorkspaceApp): JsonValue;
|
|
10
|
+
export declare function createPerformanceReadinessContract(): JsonValue;
|
|
11
|
+
export declare function cssLayerName(app: WorkspaceApp): string;
|
|
12
|
+
export declare function cssRole(app: WorkspaceApp): string;
|
|
13
|
+
export declare function cssClassPrefix(app: WorkspaceApp): string;
|
|
14
|
+
export declare function createCssDedupeContract(scope: string): JsonValue;
|
|
15
|
+
export declare function createCssSsrContract(app: WorkspaceApp): JsonValue;
|
|
16
|
+
export declare function createAppCssFederationContract(scope: string, app: WorkspaceApp): JsonValue;
|
|
17
|
+
export declare function createCssFederationContract(scope: string): JsonValue;
|
|
18
|
+
export declare function createStylingContract(scope: string, app: WorkspaceApp, enableTailwind: boolean): JsonValue;
|
|
19
|
+
export declare function createAppGeneratedContract(scope: string, app: WorkspaceApp, apps: WorkspaceApp[], enableTailwind: boolean): JsonValue;
|
|
20
|
+
export declare function createGeneratedContract(scope: string, apps?: WorkspaceApp[], enableTailwind?: boolean): JsonValue;
|
|
21
|
+
export declare function createTemplateManifest(modernVersion: string, packageSource: ResolvedPackageSource): JsonValue;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { WorkspaceApp } from './types';
|
|
2
|
+
export declare function createShellPage(remotes?: WorkspaceApp[]): string;
|
|
3
|
+
export declare function createShellRemoteComponents(scope: string, remotes?: WorkspaceApp[]): string;
|
|
4
|
+
export declare function createRemotePage(app: WorkspaceApp): string;
|
|
5
|
+
export declare function createLayout(appId: string): string;
|
|
6
|
+
export declare function createRemoteEntry(app: WorkspaceApp): string;
|
|
7
|
+
export declare function createRemoteWidget(app: WorkspaceApp): string;
|
|
8
|
+
export declare function createRemoteExposeComponent(app: WorkspaceApp, expose: string): string;
|
|
9
|
+
export declare function remoteComponentOutputPath(app: WorkspaceApp, expose: string): string | undefined;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { Ownership, WorkspaceApp, WorkspaceEffectApi } from './types';
|
|
2
|
+
export declare const GENERATED_CONTRACT_PATH = ".modernjs/ultramodern-generated-contract.json";
|
|
3
|
+
export declare const shellApp: WorkspaceApp;
|
|
4
|
+
export declare function createShellHost(remotes?: WorkspaceApp[]): WorkspaceApp;
|
|
5
|
+
export declare const sharedPackages: {
|
|
6
|
+
id: string;
|
|
7
|
+
directory: string;
|
|
8
|
+
description: string;
|
|
9
|
+
}[];
|
|
10
|
+
export declare function createNeutralOwnership(id: string, tier?: string): Ownership;
|
|
11
|
+
export declare function createVerticalDescriptor(name: string, port: number): WorkspaceApp;
|
|
12
|
+
export declare function appHasEffectApi(app: WorkspaceApp): app is WorkspaceApp & {
|
|
13
|
+
effectApi: WorkspaceEffectApi;
|
|
14
|
+
};
|
|
15
|
+
export declare function effectApiPrefix(target: {
|
|
16
|
+
id: string;
|
|
17
|
+
effectApi?: WorkspaceEffectApi;
|
|
18
|
+
}): string;
|
|
19
|
+
export declare function effectApiStem(target: {
|
|
20
|
+
id: string;
|
|
21
|
+
effectApi?: WorkspaceEffectApi;
|
|
22
|
+
}): string;
|
|
23
|
+
export declare function verticalEffectApps(remotes?: WorkspaceApp[]): (WorkspaceApp & {
|
|
24
|
+
effectApi: WorkspaceEffectApi;
|
|
25
|
+
})[];
|
|
26
|
+
export declare function remoteDependencyAlias(remote: WorkspaceApp): string;
|
|
27
|
+
export declare function zephyrRemoteDependency(scope: string, remote: WorkspaceApp): string;
|
|
28
|
+
export declare function resolveRemoteRefs(app: WorkspaceApp, remotes?: WorkspaceApp[]): WorkspaceApp[];
|
|
29
|
+
export declare function createRemoteManifestEnv(remote: WorkspaceApp): string;
|
|
30
|
+
export declare function createModuleFederationRemoteContracts(app: WorkspaceApp, remotes?: WorkspaceApp[]): {
|
|
31
|
+
id: string;
|
|
32
|
+
alias: string;
|
|
33
|
+
name: string;
|
|
34
|
+
manifestEnv: string;
|
|
35
|
+
manifestUrl: string;
|
|
36
|
+
}[];
|
|
37
|
+
export declare function createCloudflareWorkerName(scope: string, app: WorkspaceApp): string;
|
|
38
|
+
export declare function createCloudflarePublicUrlEnv(app: WorkspaceApp): string;
|
|
39
|
+
export declare function appI18nNamespace(app: WorkspaceApp): string;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import type { JsonValue, WorkspaceApp, WorkspaceEffectApi } from './types';
|
|
2
|
+
export declare function verticalEffectApiExport(service: {
|
|
3
|
+
id: string;
|
|
4
|
+
effectApi?: WorkspaceEffectApi;
|
|
5
|
+
}): string;
|
|
6
|
+
export declare function verticalEffectGroupName(service: {
|
|
7
|
+
id: string;
|
|
8
|
+
effectApi?: WorkspaceEffectApi;
|
|
9
|
+
}): string;
|
|
10
|
+
export declare function verticalEffectApiName(service: {
|
|
11
|
+
id: string;
|
|
12
|
+
effectApi?: WorkspaceEffectApi;
|
|
13
|
+
}): string;
|
|
14
|
+
export declare function verticalEffectSchemaExport(service: {
|
|
15
|
+
id: string;
|
|
16
|
+
effectApi?: WorkspaceEffectApi;
|
|
17
|
+
}): string;
|
|
18
|
+
export declare function verticalEffectMarkerSchemaExport(service: {
|
|
19
|
+
id: string;
|
|
20
|
+
effectApi?: WorkspaceEffectApi;
|
|
21
|
+
}): string;
|
|
22
|
+
export declare function verticalEffectReadinessSchemaExport(service: {
|
|
23
|
+
id: string;
|
|
24
|
+
effectApi?: WorkspaceEffectApi;
|
|
25
|
+
}): string;
|
|
26
|
+
export declare function verticalEffectErrorStem(service: {
|
|
27
|
+
id: string;
|
|
28
|
+
effectApi?: WorkspaceEffectApi;
|
|
29
|
+
}): string;
|
|
30
|
+
export declare function verticalEffectCreatePayloadSchemaExport(service: {
|
|
31
|
+
id: string;
|
|
32
|
+
effectApi?: WorkspaceEffectApi;
|
|
33
|
+
}): string;
|
|
34
|
+
export declare function verticalEffectNotFoundErrorExport(service: {
|
|
35
|
+
id: string;
|
|
36
|
+
effectApi?: WorkspaceEffectApi;
|
|
37
|
+
}): string;
|
|
38
|
+
export declare function verticalEffectNotFoundSchemaExport(service: {
|
|
39
|
+
id: string;
|
|
40
|
+
effectApi?: WorkspaceEffectApi;
|
|
41
|
+
}): string;
|
|
42
|
+
export declare function createEffectSharedApiImports(): string;
|
|
43
|
+
export declare function createEffectSharedApiContract(service: {
|
|
44
|
+
id: string;
|
|
45
|
+
effectApi?: WorkspaceEffectApi;
|
|
46
|
+
}): string;
|
|
47
|
+
export declare function createEffectSharedApi(service: {
|
|
48
|
+
id: string;
|
|
49
|
+
effectApi?: WorkspaceEffectApi;
|
|
50
|
+
}): string;
|
|
51
|
+
export declare function createEffectServiceEntry(service: {
|
|
52
|
+
id: string;
|
|
53
|
+
effectApi?: WorkspaceEffectApi;
|
|
54
|
+
}, contractImportPath: string): string;
|
|
55
|
+
export declare function createEffectClient(service: {
|
|
56
|
+
id: string;
|
|
57
|
+
effectApi?: WorkspaceEffectApi;
|
|
58
|
+
}, contractImportPath: string): string;
|
|
59
|
+
export declare function createShellEffectClient(scope: string, remotes?: WorkspaceApp[]): string;
|
|
60
|
+
export declare function createEffectReadinessContract(app: {
|
|
61
|
+
id: string;
|
|
62
|
+
effectApi?: WorkspaceEffectApi;
|
|
63
|
+
}): JsonValue;
|
|
64
|
+
export declare function createEffectRequestContextContract(): JsonValue;
|
|
65
|
+
export declare function createEffectDomainOperations(app: {
|
|
66
|
+
id: string;
|
|
67
|
+
effectApi?: WorkspaceEffectApi;
|
|
68
|
+
}): JsonValue;
|
|
69
|
+
export declare function effectApiTopologyMetadata(app: WorkspaceApp): JsonValue | undefined;
|
|
70
|
+
export declare function createEffectOperationContract(target: {
|
|
71
|
+
id: string;
|
|
72
|
+
effectApi?: WorkspaceEffectApi;
|
|
73
|
+
}): JsonValue;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { JsonValue } from './types';
|
|
2
|
+
export declare const createPackageRoot: string;
|
|
3
|
+
export declare const workspaceTemplateDir: any;
|
|
4
|
+
export declare const fileTemplatesDir: any;
|
|
5
|
+
export declare function readFileTemplate(relativePath: string): string;
|
|
6
|
+
export declare function renderFileTemplate(relativePath: string, data: Record<string, string>): string;
|
|
7
|
+
export declare function assertSafeRelativePath(relativePath: string): void;
|
|
8
|
+
export declare function ensureInsideRoot(root: string, targetPath: string): void;
|
|
9
|
+
export declare function writeFile(targetDir: string, relativePath: string, content: string): void;
|
|
10
|
+
export declare function writeFileReplacing(targetDir: string, relativePath: string, content: string): void;
|
|
11
|
+
export declare function writeJson(targetDir: string, relativePath: string, value: JsonValue): void;
|
|
12
|
+
export declare function renderTemplate(template: string, data: Record<string, string>): string;
|
|
13
|
+
export declare function collectTemplateFiles(dir: string): string[];
|
|
14
|
+
export declare function hashFile(filePath: string): string;
|
|
15
|
+
export declare function hashTemplateTree(dir: string): string;
|
|
16
|
+
export declare function copyRootTemplate(targetDir: string, data: Record<string, string>): void;
|
|
17
|
+
export declare function readJsonFile(filePath: string): Record<string, any>;
|
|
18
|
+
export declare function writeJsonFile(filePath: string, value: JsonValue): void;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { addUltramodernVertical } from './add-vertical';
|
|
2
|
+
export type { AddUltramodernVerticalOptions, UltramodernWorkspaceOptions, } from './types';
|
|
3
|
+
export { ultramodernWorkspaceVersions } from './versions';
|
|
4
|
+
export { generateUltramodernWorkspace } from './write-workspace';
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import type { WorkspaceApp } from './types';
|
|
2
|
+
export declare const commonLocaleMessages: {
|
|
3
|
+
cs: {
|
|
4
|
+
language: {
|
|
5
|
+
cs: string;
|
|
6
|
+
en: string;
|
|
7
|
+
switcher: string;
|
|
8
|
+
};
|
|
9
|
+
routes: {
|
|
10
|
+
home: string;
|
|
11
|
+
};
|
|
12
|
+
seo: {
|
|
13
|
+
description: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
en: {
|
|
17
|
+
language: {
|
|
18
|
+
cs: string;
|
|
19
|
+
en: string;
|
|
20
|
+
switcher: string;
|
|
21
|
+
};
|
|
22
|
+
routes: {
|
|
23
|
+
home: string;
|
|
24
|
+
};
|
|
25
|
+
seo: {
|
|
26
|
+
description: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export declare const generatedLocaleResources: {
|
|
31
|
+
cs: {
|
|
32
|
+
shell: {
|
|
33
|
+
boundaries: {
|
|
34
|
+
toggle: string;
|
|
35
|
+
};
|
|
36
|
+
hero: {
|
|
37
|
+
cardOne: string;
|
|
38
|
+
cardOneKicker: string;
|
|
39
|
+
cardTwo: string;
|
|
40
|
+
cardTwoKicker: string;
|
|
41
|
+
empty: string;
|
|
42
|
+
eyebrow: string;
|
|
43
|
+
lede: string;
|
|
44
|
+
primary: string;
|
|
45
|
+
secondary: string;
|
|
46
|
+
};
|
|
47
|
+
language: {
|
|
48
|
+
cs: string;
|
|
49
|
+
en: string;
|
|
50
|
+
switcher: string;
|
|
51
|
+
};
|
|
52
|
+
remoteUnavailable: string;
|
|
53
|
+
remotes: {};
|
|
54
|
+
routes: {
|
|
55
|
+
home: string;
|
|
56
|
+
};
|
|
57
|
+
seo: {
|
|
58
|
+
description: string;
|
|
59
|
+
};
|
|
60
|
+
title: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
en: {
|
|
64
|
+
shell: {
|
|
65
|
+
boundaries: {
|
|
66
|
+
toggle: string;
|
|
67
|
+
};
|
|
68
|
+
hero: {
|
|
69
|
+
cardOne: string;
|
|
70
|
+
cardOneKicker: string;
|
|
71
|
+
cardTwo: string;
|
|
72
|
+
cardTwoKicker: string;
|
|
73
|
+
empty: string;
|
|
74
|
+
eyebrow: string;
|
|
75
|
+
lede: string;
|
|
76
|
+
primary: string;
|
|
77
|
+
secondary: string;
|
|
78
|
+
};
|
|
79
|
+
language: {
|
|
80
|
+
cs: string;
|
|
81
|
+
en: string;
|
|
82
|
+
switcher: string;
|
|
83
|
+
};
|
|
84
|
+
remoteUnavailable: string;
|
|
85
|
+
remotes: {};
|
|
86
|
+
routes: {
|
|
87
|
+
home: string;
|
|
88
|
+
};
|
|
89
|
+
seo: {
|
|
90
|
+
description: string;
|
|
91
|
+
};
|
|
92
|
+
title: string;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
export declare const createFallbackLocaleMessages: (app: WorkspaceApp, language: 'en' | 'cs') => {
|
|
97
|
+
language: {
|
|
98
|
+
cs: string;
|
|
99
|
+
en: string;
|
|
100
|
+
switcher: string;
|
|
101
|
+
};
|
|
102
|
+
routes: {
|
|
103
|
+
home: string;
|
|
104
|
+
};
|
|
105
|
+
seo: {
|
|
106
|
+
description: string;
|
|
107
|
+
};
|
|
108
|
+
federatedSurface: "Federated surface owned by this vertical." | "Federovaná plocha vlastněná tímto verticalem.";
|
|
109
|
+
remoteUnavailable: "Remote vertical je nedostupný" | "Remote vertical unavailable";
|
|
110
|
+
role: string;
|
|
111
|
+
routeSurface: "Route surface owned by this vertical." | "Routovaná plocha vlastněná tímto verticalem.";
|
|
112
|
+
title: string;
|
|
113
|
+
widgetBody: "Owns a vertical route surface." | "Vlastní routovanou plochu verticalu.";
|
|
114
|
+
} | {
|
|
115
|
+
language: {
|
|
116
|
+
cs: string;
|
|
117
|
+
en: string;
|
|
118
|
+
switcher: string;
|
|
119
|
+
};
|
|
120
|
+
routes: {
|
|
121
|
+
home: string;
|
|
122
|
+
};
|
|
123
|
+
seo: {
|
|
124
|
+
description: string;
|
|
125
|
+
};
|
|
126
|
+
federatedSurface: "Federated surface owned by this vertical." | "Federovaná plocha vlastněná tímto verticalem.";
|
|
127
|
+
remoteUnavailable: "Remote vertical je nedostupný" | "Remote vertical unavailable";
|
|
128
|
+
role: string;
|
|
129
|
+
routeSurface: "Route surface owned by this vertical." | "Routovaná plocha vlastněná tímto verticalem.";
|
|
130
|
+
title: string;
|
|
131
|
+
widgetBody: "Owns a vertical route surface." | "Vlastní routovanou plochu verticalu.";
|
|
132
|
+
};
|
|
133
|
+
export declare function createAppLocaleMessages(app: WorkspaceApp, language: 'en' | 'cs'): {
|
|
134
|
+
[x: string]: {
|
|
135
|
+
boundaries: {
|
|
136
|
+
toggle: string;
|
|
137
|
+
};
|
|
138
|
+
hero: {
|
|
139
|
+
cardOne: string;
|
|
140
|
+
cardOneKicker: string;
|
|
141
|
+
cardTwo: string;
|
|
142
|
+
cardTwoKicker: string;
|
|
143
|
+
empty: string;
|
|
144
|
+
eyebrow: string;
|
|
145
|
+
lede: string;
|
|
146
|
+
primary: string;
|
|
147
|
+
secondary: string;
|
|
148
|
+
};
|
|
149
|
+
language: {
|
|
150
|
+
cs: string;
|
|
151
|
+
en: string;
|
|
152
|
+
switcher: string;
|
|
153
|
+
};
|
|
154
|
+
remoteUnavailable: string;
|
|
155
|
+
remotes: {};
|
|
156
|
+
routes: {
|
|
157
|
+
home: string;
|
|
158
|
+
};
|
|
159
|
+
seo: {
|
|
160
|
+
description: string;
|
|
161
|
+
};
|
|
162
|
+
title: string;
|
|
163
|
+
} | {
|
|
164
|
+
language: {
|
|
165
|
+
cs: string;
|
|
166
|
+
en: string;
|
|
167
|
+
switcher: string;
|
|
168
|
+
};
|
|
169
|
+
routes: {
|
|
170
|
+
home: string;
|
|
171
|
+
};
|
|
172
|
+
seo: {
|
|
173
|
+
description: string;
|
|
174
|
+
};
|
|
175
|
+
federatedSurface: "Federated surface owned by this vertical." | "Federovaná plocha vlastněná tímto verticalem.";
|
|
176
|
+
remoteUnavailable: "Remote vertical je nedostupný" | "Remote vertical unavailable";
|
|
177
|
+
role: string;
|
|
178
|
+
routeSurface: "Route surface owned by this vertical." | "Routovaná plocha vlastněná tímto verticalem.";
|
|
179
|
+
title: string;
|
|
180
|
+
widgetBody: "Owns a vertical route surface." | "Vlastní routovanou plochu verticalu.";
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
export declare function createAppPublicLocaleMessages(app: WorkspaceApp, language: 'en' | 'cs', remotes?: WorkspaceApp[]): any;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { WorkspaceApp } from './types';
|
|
2
|
+
export declare function createAppModernConfig(scope: string, app: WorkspaceApp): string;
|
|
3
|
+
export declare function createSharedModuleFederationConfig(): string;
|
|
4
|
+
export declare function formatTsObjectLiteral(value: Record<string, string>): string;
|
|
5
|
+
export declare function createModuleFederationRemoteUrlHelpers(app: WorkspaceApp, remotes?: WorkspaceApp[]): string;
|
|
6
|
+
export declare function createModuleFederationRemotesConfig(scope: string, app: WorkspaceApp, remotes?: WorkspaceApp[]): string;
|
|
7
|
+
export declare function createShellModuleFederationConfig(scope: string, remotes?: WorkspaceApp[]): string;
|
|
8
|
+
export declare function createBuildMarker(scope: string, app: {
|
|
9
|
+
id: string;
|
|
10
|
+
packageSuffix: string;
|
|
11
|
+
}): any;
|
|
12
|
+
export declare function createUltramodernBuildModule(scope: string, app: {
|
|
13
|
+
id: string;
|
|
14
|
+
packageSuffix: string;
|
|
15
|
+
}): string;
|
|
16
|
+
export declare function createRemoteModuleFederationConfig(scope: string, app: WorkspaceApp, remotes?: WorkspaceApp[]): string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { WorkspaceApp } from './types';
|
|
2
|
+
export declare const TAILWIND_PREFIX_DIGIT_WORDS: readonly ['zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine'];
|
|
3
|
+
export declare function normalizePath(filePath: string): string;
|
|
4
|
+
export declare function toPackageScope(packageName: string): string;
|
|
5
|
+
export declare function toKebabCase(value: string): string;
|
|
6
|
+
export declare function toCamelCase(value: string): string;
|
|
7
|
+
export declare function toEnvSegment(value: string): string;
|
|
8
|
+
export declare function createRspackUniqueName(app: WorkspaceApp): string;
|
|
9
|
+
export declare function createRspackChunkLoadingGlobal(app: WorkspaceApp): string;
|
|
10
|
+
export declare function packageName(scope: string, suffix: string): string;
|
|
11
|
+
export declare function relativeRootFor(packageDir: string): string;
|
|
12
|
+
export declare function createTailwindPrefix(raw: string): string;
|
|
13
|
+
export declare function tailwindPrefixForApp(app: WorkspaceApp): string;
|
|
14
|
+
export declare function assertUniqueTailwindPrefixes(apps: WorkspaceApp[]): void;
|
|
15
|
+
export declare function createTw(prefix: string): (classList: string) => string;
|
|
16
|
+
export declare function toPascalCase(value: string): string;
|