@bleedingdev/modern-js-create 3.4.0-ultramodern.8 → 3.5.0-ultramodern.0
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 +25 -23
- package/dist/cjs/index.cjs +37 -4
- package/dist/cjs/locale/en.cjs +12 -2
- package/dist/cjs/locale/zh.cjs +12 -2
- package/dist/cjs/ultramodern-tooling/commands.cjs +185 -0
- package/dist/cjs/ultramodern-tooling/config.cjs +172 -0
- package/dist/cjs/ultramodern-workspace/add-vertical.cjs +87 -75
- package/dist/cjs/ultramodern-workspace/{effect-api.cjs → api.cjs} +207 -208
- package/dist/cjs/ultramodern-workspace/bridge-config.cjs +327 -0
- package/dist/cjs/ultramodern-workspace/codesmith.cjs +1 -0
- package/dist/cjs/ultramodern-workspace/contracts.cjs +127 -657
- package/dist/cjs/ultramodern-workspace/demo-components.cjs +12 -12
- package/dist/cjs/ultramodern-workspace/descriptors.cjs +25 -25
- package/dist/cjs/ultramodern-workspace/fs-io.cjs +117 -0
- package/dist/cjs/ultramodern-workspace/generation-result.cjs +5 -5
- package/dist/cjs/ultramodern-workspace/index.cjs +4 -0
- package/dist/cjs/ultramodern-workspace/mf-validation.cjs +571 -0
- package/dist/cjs/ultramodern-workspace/module-federation.cjs +33 -18
- package/dist/cjs/ultramodern-workspace/overlays.cjs +2 -2
- package/dist/cjs/ultramodern-workspace/package-json.cjs +57 -41
- package/dist/cjs/ultramodern-workspace/policy.cjs +4 -4
- package/dist/cjs/ultramodern-workspace/public-api.cjs +4 -0
- package/dist/cjs/ultramodern-workspace/public-surface.cjs +2 -2
- package/dist/cjs/ultramodern-workspace/versions.cjs +5 -0
- package/dist/cjs/ultramodern-workspace/workspace-scripts.cjs +119 -50
- package/dist/cjs/ultramodern-workspace/write-workspace.cjs +62 -21
- package/dist/esm/index.js +37 -4
- package/dist/esm/locale/en.js +12 -2
- package/dist/esm/locale/zh.js +12 -2
- package/dist/esm/ultramodern-tooling/commands.js +132 -0
- package/dist/esm/ultramodern-tooling/config.js +120 -0
- package/dist/esm/ultramodern-workspace/add-vertical.js +88 -79
- package/dist/esm/ultramodern-workspace/{effect-api.js → api.js} +146 -147
- package/dist/esm/ultramodern-workspace/bridge-config.js +270 -0
- package/dist/esm/ultramodern-workspace/codesmith.js +1 -0
- package/dist/esm/ultramodern-workspace/contracts.js +129 -611
- package/dist/esm/ultramodern-workspace/demo-components.js +13 -13
- package/dist/esm/ultramodern-workspace/descriptors.js +11 -11
- package/dist/esm/ultramodern-workspace/fs-io.js +116 -2
- package/dist/esm/ultramodern-workspace/generation-result.js +6 -6
- package/dist/esm/ultramodern-workspace/index.js +1 -0
- package/dist/esm/ultramodern-workspace/mf-validation.js +516 -0
- package/dist/esm/ultramodern-workspace/module-federation.js +34 -19
- package/dist/esm/ultramodern-workspace/overlays.js +2 -2
- package/dist/esm/ultramodern-workspace/package-json.js +56 -40
- package/dist/esm/ultramodern-workspace/policy.js +5 -5
- package/dist/esm/ultramodern-workspace/public-api.js +1 -0
- package/dist/esm/ultramodern-workspace/public-surface.js +2 -2
- package/dist/esm/ultramodern-workspace/versions.js +3 -1
- package/dist/esm/ultramodern-workspace/workspace-scripts.js +107 -34
- package/dist/esm/ultramodern-workspace/write-workspace.js +64 -26
- package/dist/esm-node/index.js +37 -4
- package/dist/esm-node/locale/en.js +12 -2
- package/dist/esm-node/locale/zh.js +12 -2
- package/dist/esm-node/ultramodern-tooling/commands.js +133 -0
- package/dist/esm-node/ultramodern-tooling/config.js +121 -0
- package/dist/esm-node/ultramodern-workspace/add-vertical.js +88 -79
- package/dist/esm-node/ultramodern-workspace/{effect-api.js → api.js} +146 -147
- package/dist/esm-node/ultramodern-workspace/bridge-config.js +271 -0
- package/dist/esm-node/ultramodern-workspace/codesmith.js +1 -0
- package/dist/esm-node/ultramodern-workspace/contracts.js +129 -611
- package/dist/esm-node/ultramodern-workspace/demo-components.js +13 -13
- package/dist/esm-node/ultramodern-workspace/descriptors.js +11 -11
- package/dist/esm-node/ultramodern-workspace/fs-io.js +116 -2
- package/dist/esm-node/ultramodern-workspace/generation-result.js +6 -6
- package/dist/esm-node/ultramodern-workspace/index.js +1 -0
- package/dist/esm-node/ultramodern-workspace/mf-validation.js +517 -0
- package/dist/esm-node/ultramodern-workspace/module-federation.js +34 -19
- package/dist/esm-node/ultramodern-workspace/overlays.js +2 -2
- package/dist/esm-node/ultramodern-workspace/package-json.js +56 -40
- package/dist/esm-node/ultramodern-workspace/policy.js +5 -5
- package/dist/esm-node/ultramodern-workspace/public-api.js +1 -0
- package/dist/esm-node/ultramodern-workspace/public-surface.js +2 -2
- package/dist/esm-node/ultramodern-workspace/versions.js +3 -1
- package/dist/esm-node/ultramodern-workspace/workspace-scripts.js +107 -34
- package/dist/esm-node/ultramodern-workspace/write-workspace.js +64 -26
- package/dist/types/locale/en.d.ts +10 -0
- package/dist/types/locale/index.d.ts +20 -0
- package/dist/types/locale/zh.d.ts +10 -0
- package/dist/types/ultramodern-tooling/commands.d.ts +1 -0
- package/dist/types/ultramodern-tooling/config.d.ts +43 -0
- package/dist/types/ultramodern-workspace/add-vertical.d.ts +5 -2
- package/dist/types/ultramodern-workspace/api.d.ts +73 -0
- package/dist/types/ultramodern-workspace/bridge-config.d.ts +64 -0
- package/dist/types/ultramodern-workspace/codesmith.d.ts +1 -0
- package/dist/types/ultramodern-workspace/contracts.d.ts +2 -17
- package/dist/types/ultramodern-workspace/descriptors.d.ts +10 -10
- package/dist/types/ultramodern-workspace/fs-io.d.ts +1 -0
- package/dist/types/ultramodern-workspace/index.d.ts +2 -0
- package/dist/types/ultramodern-workspace/mf-validation.d.ts +27 -0
- package/dist/types/ultramodern-workspace/package-json.d.ts +5 -4
- package/dist/types/ultramodern-workspace/public-api.d.ts +2 -0
- package/dist/types/ultramodern-workspace/types.d.ts +9 -7
- package/dist/types/ultramodern-workspace/versions.d.ts +2 -0
- package/dist/types/ultramodern-workspace/workspace-scripts.d.ts +2 -7
- package/dist/types/ultramodern-workspace/write-workspace.d.ts +4 -2
- package/package.json +5 -3
- package/template-workspace/{.agents → .codex}/skills-lock.json +12 -12
- package/template-workspace/.github/workflows/ultramodern-workspace-gates.yml.handlebars +2 -0
- package/template-workspace/.gitignore.handlebars +3 -0
- package/template-workspace/AGENTS.md.handlebars +11 -5
- package/template-workspace/README.md.handlebars +15 -12
- package/template-workspace/oxfmt.config.ts +1 -0
- package/template-workspace/oxlint.config.ts +1 -0
- package/template-workspace/patches/@tanstack__router-core@1.171.13.patch +51 -0
- package/template-workspace/pnpm-workspace.yaml.handlebars +4 -0
- package/template-workspace/scripts/bootstrap-agent-skills.mjs +77 -67
- package/templates/workspace-scripts/assert-mf-types.mjs.handlebars +51 -8
- package/templates/workspace-scripts/check-ultramodern-api-boundaries.mts +344 -0
- package/templates/workspace-scripts/{check-ultramodern-i18n-boundaries.mjs → check-ultramodern-i18n-boundaries.mts} +1 -1
- package/templates/workspace-scripts/generate-public-surface-assets.mjs +246 -9
- package/templates/workspace-scripts/proof-cloudflare-version.mjs +277 -9
- package/templates/workspace-scripts/ultramodern-cloudflare-proof.mjs +35 -10
- package/templates/workspace-scripts/ultramodern-performance-readiness.mjs +165 -2
- package/templates/workspace-scripts/ultramodern-typecheck.mjs +4 -2
- package/templates/workspace-scripts/validate-ultramodern-workspace.mjs.handlebars +840 -84
- package/dist/types/ultramodern-workspace/effect-api.d.ts +0 -73
- /package/template-workspace/{.agents → .codex}/rstackjs-agent-skills-LICENSE +0 -0
- /package/template-workspace/{.agents → .codex}/skills/rsbuild-best-practices/SKILL.md +0 -0
- /package/template-workspace/{.agents → .codex}/skills/rsdoctor-analysis/SKILL.md +0 -0
- /package/template-workspace/{.agents → .codex}/skills/rsdoctor-analysis/references/command-map.md +0 -0
- /package/template-workspace/{.agents → .codex}/skills/rsdoctor-analysis/references/common-analysis-patterns.md +0 -0
- /package/template-workspace/{.agents → .codex}/skills/rsdoctor-analysis/references/install-rsdoctor-common.md +0 -0
- /package/template-workspace/{.agents → .codex}/skills/rsdoctor-analysis/references/install-rsdoctor-rspack.md +0 -0
- /package/template-workspace/{.agents → .codex}/skills/rsdoctor-analysis/references/install-rsdoctor-webpack.md +0 -0
- /package/template-workspace/{.agents → .codex}/skills/rsdoctor-analysis/references/install-rsdoctor.md +0 -0
- /package/template-workspace/{.agents → .codex}/skills/rsdoctor-analysis/references/rsdoctor-data-types.md +0 -0
- /package/template-workspace/{.agents → .codex}/skills/rslib-best-practices/SKILL.md +0 -0
- /package/template-workspace/{.agents → .codex}/skills/rslib-modern-package/SKILL.md +0 -0
- /package/template-workspace/{.agents → .codex}/skills/rspack-best-practices/SKILL.md +0 -0
- /package/template-workspace/{.agents → .codex}/skills/rspack-tracing/SKILL.md +0 -0
- /package/template-workspace/{.agents → .codex}/skills/rspack-tracing/references/bottlenecks.md +0 -0
- /package/template-workspace/{.agents → .codex}/skills/rspack-tracing/references/tracing-guide.md +0 -0
- /package/template-workspace/{.agents → .codex}/skills/rspack-tracing/scripts/analyze_trace.js +0 -0
- /package/template-workspace/{.agents → .codex}/skills/rstest-best-practices/SKILL.md +0 -0
|
@@ -38,6 +38,16 @@ export declare const EN_LOCALE: {
|
|
|
38
38
|
optionUltramodernPackageRegistry: string;
|
|
39
39
|
optionUltramodernPackageScope: string;
|
|
40
40
|
optionUltramodernPackageNamePrefix: string;
|
|
41
|
+
optionBridge: string;
|
|
42
|
+
optionBridgeParentRoot: string;
|
|
43
|
+
optionBridgeWorkspacePackage: string;
|
|
44
|
+
optionBridgeWorkspacePackageName: string;
|
|
45
|
+
optionBridgeTestAlias: string;
|
|
46
|
+
optionBridgeDependency: string;
|
|
47
|
+
optionBridgeLockfilePolicy: string;
|
|
48
|
+
optionBridgeGate: string;
|
|
49
|
+
optionBridgeGateCwd: string;
|
|
50
|
+
optionBridgeReactSingleton: string;
|
|
41
51
|
optionVertical: string;
|
|
42
52
|
optionVerticalName: string;
|
|
43
53
|
optionDryRun: string;
|
|
@@ -40,6 +40,16 @@ declare const localeKeys: {
|
|
|
40
40
|
optionUltramodernPackageRegistry: string;
|
|
41
41
|
optionUltramodernPackageScope: string;
|
|
42
42
|
optionUltramodernPackageNamePrefix: string;
|
|
43
|
+
optionBridge: string;
|
|
44
|
+
optionBridgeParentRoot: string;
|
|
45
|
+
optionBridgeWorkspacePackage: string;
|
|
46
|
+
optionBridgeWorkspacePackageName: string;
|
|
47
|
+
optionBridgeTestAlias: string;
|
|
48
|
+
optionBridgeDependency: string;
|
|
49
|
+
optionBridgeLockfilePolicy: string;
|
|
50
|
+
optionBridgeGate: string;
|
|
51
|
+
optionBridgeGateCwd: string;
|
|
52
|
+
optionBridgeReactSingleton: string;
|
|
43
53
|
optionVertical: string;
|
|
44
54
|
optionVerticalName: string;
|
|
45
55
|
optionDryRun: string;
|
|
@@ -101,6 +111,16 @@ declare const localeKeys: {
|
|
|
101
111
|
optionUltramodernPackageRegistry: string;
|
|
102
112
|
optionUltramodernPackageScope: string;
|
|
103
113
|
optionUltramodernPackageNamePrefix: string;
|
|
114
|
+
optionBridge: string;
|
|
115
|
+
optionBridgeParentRoot: string;
|
|
116
|
+
optionBridgeWorkspacePackage: string;
|
|
117
|
+
optionBridgeWorkspacePackageName: string;
|
|
118
|
+
optionBridgeTestAlias: string;
|
|
119
|
+
optionBridgeDependency: string;
|
|
120
|
+
optionBridgeLockfilePolicy: string;
|
|
121
|
+
optionBridgeGate: string;
|
|
122
|
+
optionBridgeGateCwd: string;
|
|
123
|
+
optionBridgeReactSingleton: string;
|
|
104
124
|
optionVertical: string;
|
|
105
125
|
optionVerticalName: string;
|
|
106
126
|
optionDryRun: string;
|
|
@@ -38,6 +38,16 @@ export declare const ZH_LOCALE: {
|
|
|
38
38
|
optionUltramodernPackageRegistry: string;
|
|
39
39
|
optionUltramodernPackageScope: string;
|
|
40
40
|
optionUltramodernPackageNamePrefix: string;
|
|
41
|
+
optionBridge: string;
|
|
42
|
+
optionBridgeParentRoot: string;
|
|
43
|
+
optionBridgeWorkspacePackage: string;
|
|
44
|
+
optionBridgeWorkspacePackageName: string;
|
|
45
|
+
optionBridgeTestAlias: string;
|
|
46
|
+
optionBridgeDependency: string;
|
|
47
|
+
optionBridgeLockfilePolicy: string;
|
|
48
|
+
optionBridgeGate: string;
|
|
49
|
+
optionBridgeGateCwd: string;
|
|
50
|
+
optionBridgeReactSingleton: string;
|
|
41
51
|
optionVertical: string;
|
|
42
52
|
optionVerticalName: string;
|
|
43
53
|
optionDryRun: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function runUltramodernToolingCli(args: string[], workspaceRoot?: any): Promise<number>;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { type UltramodernBridgeConfig } from '../ultramodern-workspace/bridge-config';
|
|
2
|
+
import type { ResolvedPackageSource, WorkspaceApi, WorkspaceApp } from '../ultramodern-workspace/types';
|
|
3
|
+
export type UltramodernToolingConfigSource = 'compact';
|
|
4
|
+
export type UltramodernToolingConfigApp = {
|
|
5
|
+
id: string;
|
|
6
|
+
kind: WorkspaceApp['kind'];
|
|
7
|
+
path: string;
|
|
8
|
+
package?: string;
|
|
9
|
+
packageSuffix?: string;
|
|
10
|
+
displayName?: string;
|
|
11
|
+
domain?: string;
|
|
12
|
+
port?: number;
|
|
13
|
+
portEnv?: string;
|
|
14
|
+
moduleFederation?: {
|
|
15
|
+
role?: 'host' | 'remote';
|
|
16
|
+
name?: string;
|
|
17
|
+
exposes?: string[];
|
|
18
|
+
exposePaths?: Record<string, string>;
|
|
19
|
+
verticalRefs?: string[];
|
|
20
|
+
hostOnly?: boolean;
|
|
21
|
+
noExposes?: boolean;
|
|
22
|
+
};
|
|
23
|
+
api?: WorkspaceApi;
|
|
24
|
+
};
|
|
25
|
+
export type UltramodernToolingConfig = {
|
|
26
|
+
schemaVersion: number;
|
|
27
|
+
profile?: string;
|
|
28
|
+
source: UltramodernToolingConfigSource;
|
|
29
|
+
sourcePath: string;
|
|
30
|
+
workspace: {
|
|
31
|
+
packageScope: string;
|
|
32
|
+
};
|
|
33
|
+
packageSource?: ResolvedPackageSource;
|
|
34
|
+
features: {
|
|
35
|
+
tailwind: boolean;
|
|
36
|
+
};
|
|
37
|
+
bridge?: UltramodernBridgeConfig;
|
|
38
|
+
topology: {
|
|
39
|
+
apps: UltramodernToolingConfigApp[];
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
export declare function readUltramodernConfig(workspaceRoot?: any): UltramodernToolingConfig;
|
|
43
|
+
export declare function workspaceAppsFromToolingConfig(config: UltramodernToolingConfig): WorkspaceApp[];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { UltramodernBridgeConfig } from './bridge-config';
|
|
1
2
|
import type { AddUltramodernVerticalOptions, JsonValue, Ownership, ResolvedPackageSource, UltramodernGenerationResult, UltramodernVerticalPlan, UltramodernWorkspaceOptions, WorkspaceApp } from './types';
|
|
2
3
|
export type AddUltramodernVerticalPreflight = {
|
|
3
4
|
name: string;
|
|
@@ -11,16 +12,18 @@ export type AddUltramodernVerticalPreflight = {
|
|
|
11
12
|
overlay: Record<string, any>;
|
|
12
13
|
packageSource: ResolvedPackageSource;
|
|
13
14
|
enableTailwind: boolean;
|
|
15
|
+
bridge?: UltramodernBridgeConfig;
|
|
14
16
|
vertical: WorkspaceApp;
|
|
15
17
|
updatedVerticals: WorkspaceApp[];
|
|
16
18
|
};
|
|
17
19
|
export declare function existingPackageSource(workspaceRoot: string, modernVersion: string, packageSource?: UltramodernWorkspaceOptions['packageSource']): ResolvedPackageSource;
|
|
18
20
|
export declare function existingTailwindEnabled(workspaceRoot: string): boolean;
|
|
21
|
+
export declare function existingBridgeConfig(workspaceRoot: string): UltramodernBridgeConfig | undefined;
|
|
19
22
|
export declare function assertValidVerticalName(name: string): string;
|
|
20
23
|
export declare function nextAvailablePort(ports: Record<string, unknown>): number;
|
|
21
24
|
export declare function assertCanCreate(workspaceRoot: string, relativePath: string): void;
|
|
22
|
-
export declare function updateRootWorkspaceScripts(workspaceRoot: string, scope: string, packageSource: ResolvedPackageSource, remotes: WorkspaceApp[]): void;
|
|
23
|
-
export declare function rewriteShellAppFiles(workspaceRoot: string, scope: string, packageSource: ResolvedPackageSource, enableTailwind: boolean, remotes: WorkspaceApp[]): void;
|
|
25
|
+
export declare function updateRootWorkspaceScripts(workspaceRoot: string, scope: string, packageSource: ResolvedPackageSource, remotes: WorkspaceApp[], bridge?: UltramodernBridgeConfig): void;
|
|
26
|
+
export declare function rewriteShellAppFiles(workspaceRoot: string, scope: string, packageSource: ResolvedPackageSource, enableTailwind: boolean, remotes: WorkspaceApp[], bridge?: UltramodernBridgeConfig): void;
|
|
24
27
|
export declare function addShellZephyrDependency(workspaceRoot: string, scope: string, remote: WorkspaceApp): void;
|
|
25
28
|
export declare function addShellWorkspaceDependency(workspaceRoot: string, scope: string, remote: WorkspaceApp): void;
|
|
26
29
|
export declare function verticalTopologyEntry(scope: string, vertical: WorkspaceApp, remotes?: WorkspaceApp[]): JsonValue;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import type { JsonValue, WorkspaceApi, WorkspaceApp } from './types';
|
|
2
|
+
export declare function verticalApiExport(service: {
|
|
3
|
+
id: string;
|
|
4
|
+
api?: WorkspaceApi;
|
|
5
|
+
}): string;
|
|
6
|
+
export declare function verticalApiGroupName(service: {
|
|
7
|
+
id: string;
|
|
8
|
+
api?: WorkspaceApi;
|
|
9
|
+
}): string;
|
|
10
|
+
export declare function verticalApiName(service: {
|
|
11
|
+
id: string;
|
|
12
|
+
api?: WorkspaceApi;
|
|
13
|
+
}): string;
|
|
14
|
+
export declare function verticalApiSchemaExport(service: {
|
|
15
|
+
id: string;
|
|
16
|
+
api?: WorkspaceApi;
|
|
17
|
+
}): string;
|
|
18
|
+
export declare function verticalApiMarkerSchemaExport(service: {
|
|
19
|
+
id: string;
|
|
20
|
+
api?: WorkspaceApi;
|
|
21
|
+
}): string;
|
|
22
|
+
export declare function verticalApiReadinessSchemaExport(service: {
|
|
23
|
+
id: string;
|
|
24
|
+
api?: WorkspaceApi;
|
|
25
|
+
}): string;
|
|
26
|
+
export declare function verticalApiErrorStem(service: {
|
|
27
|
+
id: string;
|
|
28
|
+
api?: WorkspaceApi;
|
|
29
|
+
}): string;
|
|
30
|
+
export declare function verticalApiCreatePayloadSchemaExport(service: {
|
|
31
|
+
id: string;
|
|
32
|
+
api?: WorkspaceApi;
|
|
33
|
+
}): string;
|
|
34
|
+
export declare function verticalApiNotFoundErrorExport(service: {
|
|
35
|
+
id: string;
|
|
36
|
+
api?: WorkspaceApi;
|
|
37
|
+
}): string;
|
|
38
|
+
export declare function verticalApiNotFoundSchemaExport(service: {
|
|
39
|
+
id: string;
|
|
40
|
+
api?: WorkspaceApi;
|
|
41
|
+
}): string;
|
|
42
|
+
export declare function createSharedApiImports(): string;
|
|
43
|
+
export declare function createSharedApiContract(service: {
|
|
44
|
+
id: string;
|
|
45
|
+
api?: WorkspaceApi;
|
|
46
|
+
}): string;
|
|
47
|
+
export declare function createSharedApi(service: {
|
|
48
|
+
id: string;
|
|
49
|
+
api?: WorkspaceApi;
|
|
50
|
+
}): string;
|
|
51
|
+
export declare function createApiServiceEntry(service: {
|
|
52
|
+
id: string;
|
|
53
|
+
api?: WorkspaceApi;
|
|
54
|
+
}, contractImportPath: string): string;
|
|
55
|
+
export declare function createApiClient(service: {
|
|
56
|
+
id: string;
|
|
57
|
+
api?: WorkspaceApi;
|
|
58
|
+
}, contractImportPath: string): string;
|
|
59
|
+
export declare function createShellApiClient(scope: string, remotes?: WorkspaceApp[]): string;
|
|
60
|
+
export declare function createApiReadinessContract(app: {
|
|
61
|
+
id: string;
|
|
62
|
+
api?: WorkspaceApi;
|
|
63
|
+
}): JsonValue;
|
|
64
|
+
export declare function createApiRequestContextContract(): JsonValue;
|
|
65
|
+
export declare function createApiDomainOperations(app: {
|
|
66
|
+
id: string;
|
|
67
|
+
api?: WorkspaceApi;
|
|
68
|
+
}): JsonValue;
|
|
69
|
+
export declare function apiTopologyMetadata(app: WorkspaceApp): JsonValue | undefined;
|
|
70
|
+
export declare function createApiOperationContract(target: {
|
|
71
|
+
id: string;
|
|
72
|
+
api?: WorkspaceApi;
|
|
73
|
+
}): JsonValue;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export declare const ultramodernBridgeCliFlags: {
|
|
2
|
+
readonly enabled: '--bridge';
|
|
3
|
+
readonly parentRoot: '--bridge-parent-root';
|
|
4
|
+
readonly workspacePackage: '--bridge-workspace-package';
|
|
5
|
+
readonly workspacePackageName: '--bridge-workspace-package-name';
|
|
6
|
+
readonly testAlias: '--bridge-test-alias';
|
|
7
|
+
readonly dependency: '--bridge-dependency';
|
|
8
|
+
readonly lockfilePolicy: '--bridge-lockfile-policy';
|
|
9
|
+
readonly gate: '--bridge-gate';
|
|
10
|
+
readonly gateCwd: '--bridge-gate-cwd';
|
|
11
|
+
readonly reactSingleton: '--bridge-react-singleton';
|
|
12
|
+
};
|
|
13
|
+
export declare const ultramodernBridgeCliValueFlags: readonly ["--bridge-parent-root", "--bridge-workspace-package", "--bridge-workspace-package-name", "--bridge-test-alias", "--bridge-dependency", "--bridge-lockfile-policy", "--bridge-gate", "--bridge-gate-cwd", "--bridge-react-singleton"];
|
|
14
|
+
export declare const ultramodernBridgeCliBooleanFlags: readonly ["--bridge"];
|
|
15
|
+
export declare const ultramodernBridgeLockfilePolicies: readonly ['nested', 'parent'];
|
|
16
|
+
export type UltramodernBridgeLockfilePolicy = (typeof ultramodernBridgeLockfilePolicies)[number];
|
|
17
|
+
export type UltramodernBridgeTestAlias = {
|
|
18
|
+
alias: string;
|
|
19
|
+
target: string;
|
|
20
|
+
};
|
|
21
|
+
export type UltramodernBridgeWorkspacePackage = {
|
|
22
|
+
pattern: string;
|
|
23
|
+
packageNames?: string[];
|
|
24
|
+
testAliases?: UltramodernBridgeTestAlias[];
|
|
25
|
+
};
|
|
26
|
+
export type UltramodernBridgeGate = {
|
|
27
|
+
name: string;
|
|
28
|
+
command: string;
|
|
29
|
+
cwd?: string;
|
|
30
|
+
};
|
|
31
|
+
export type UltramodernBridgeConfig = {
|
|
32
|
+
enabled: true;
|
|
33
|
+
parentRoot: string;
|
|
34
|
+
workspacePackages: UltramodernBridgeWorkspacePackage[];
|
|
35
|
+
dependencies: string[];
|
|
36
|
+
lockfilePolicy: UltramodernBridgeLockfilePolicy;
|
|
37
|
+
gates: UltramodernBridgeGate[];
|
|
38
|
+
reactSingletons: string[];
|
|
39
|
+
};
|
|
40
|
+
export type UltramodernBridgeWorkspacePackageInput = {
|
|
41
|
+
pattern: string;
|
|
42
|
+
packageNames?: readonly string[];
|
|
43
|
+
testAliases?: readonly UltramodernBridgeTestAlias[];
|
|
44
|
+
};
|
|
45
|
+
export type UltramodernBridgeGateInput = {
|
|
46
|
+
name: string;
|
|
47
|
+
command: string;
|
|
48
|
+
cwd?: string;
|
|
49
|
+
};
|
|
50
|
+
export type UltramodernEnabledBridgeConfigInput = {
|
|
51
|
+
enabled?: true;
|
|
52
|
+
parentRoot: string;
|
|
53
|
+
workspacePackages: readonly UltramodernBridgeWorkspacePackageInput[];
|
|
54
|
+
dependencies: readonly string[];
|
|
55
|
+
lockfilePolicy?: UltramodernBridgeLockfilePolicy;
|
|
56
|
+
gates: readonly UltramodernBridgeGateInput[];
|
|
57
|
+
reactSingletons?: readonly string[];
|
|
58
|
+
};
|
|
59
|
+
export type UltramodernBridgeConfigInput = UltramodernEnabledBridgeConfigInput | {
|
|
60
|
+
enabled: false;
|
|
61
|
+
};
|
|
62
|
+
export declare function hasUltramodernBridgeCliOptions(args: string[]): boolean;
|
|
63
|
+
export declare function parseUltramodernBridgeCliOptions(args: string[]): UltramodernBridgeConfig | undefined;
|
|
64
|
+
export declare function normalizeUltramodernBridgeConfig(bridge: UltramodernBridgeConfigInput | undefined): UltramodernBridgeConfig | undefined;
|
|
@@ -12,6 +12,7 @@ export type UltramodernCodeSmithConfig = {
|
|
|
12
12
|
tailwind?: boolean;
|
|
13
13
|
dryRun?: boolean;
|
|
14
14
|
logResult?: boolean;
|
|
15
|
+
bridge?: UltramodernWorkspaceOptions['bridge'];
|
|
15
16
|
overlays?: UltramodernWorkspaceOptions['overlays'];
|
|
16
17
|
packageSource?: UltramodernWorkspaceOptions['packageSource'];
|
|
17
18
|
packageSourceStrategy?: NonNullable<UltramodernWorkspaceOptions['packageSource']>['strategy'];
|
|
@@ -1,21 +1,6 @@
|
|
|
1
|
+
import type { UltramodernBridgeConfig } from './bridge-config';
|
|
1
2
|
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
3
|
export declare function createTopology(scope: string, remotes?: WorkspaceApp[]): JsonValue;
|
|
6
4
|
export declare function createOwnership(scope: string, remotes?: WorkspaceApp[]): JsonValue;
|
|
7
5
|
export declare function createDevelopmentOverlay(remotes?: WorkspaceApp[]): JsonValue;
|
|
8
|
-
export declare function
|
|
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;
|
|
6
|
+
export declare function createUltramodernConfig(scope: string, modernVersion: string, packageSource: ResolvedPackageSource, apps?: WorkspaceApp[], enableTailwind?: boolean, bridge?: UltramodernBridgeConfig): JsonValue;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Ownership,
|
|
2
|
-
export declare const
|
|
1
|
+
import type { Ownership, WorkspaceApi, WorkspaceApp } from './types';
|
|
2
|
+
export declare const ULTRAMODERN_CONFIG_PATH = ".modernjs/ultramodern.json";
|
|
3
3
|
export declare const shellApp: WorkspaceApp;
|
|
4
4
|
export declare function createShellHost(remotes?: WorkspaceApp[]): WorkspaceApp;
|
|
5
5
|
export declare const sharedPackages: {
|
|
@@ -9,19 +9,19 @@ export declare const sharedPackages: {
|
|
|
9
9
|
}[];
|
|
10
10
|
export declare function createNeutralOwnership(id: string, tier?: string): Ownership;
|
|
11
11
|
export declare function createVerticalDescriptor(name: string, port: number): WorkspaceApp;
|
|
12
|
-
export declare function
|
|
13
|
-
|
|
12
|
+
export declare function appHasApi(app: WorkspaceApp): app is WorkspaceApp & {
|
|
13
|
+
api: WorkspaceApi;
|
|
14
14
|
};
|
|
15
|
-
export declare function
|
|
15
|
+
export declare function resolveApiPrefix(target: {
|
|
16
16
|
id: string;
|
|
17
|
-
|
|
17
|
+
api?: WorkspaceApi;
|
|
18
18
|
}): string;
|
|
19
|
-
export declare function
|
|
19
|
+
export declare function resolveApiStem(target: {
|
|
20
20
|
id: string;
|
|
21
|
-
|
|
21
|
+
api?: WorkspaceApi;
|
|
22
22
|
}): string;
|
|
23
|
-
export declare function
|
|
24
|
-
|
|
23
|
+
export declare function verticalApiApps(remotes?: WorkspaceApp[]): (WorkspaceApp & {
|
|
24
|
+
api: WorkspaceApi;
|
|
25
25
|
})[];
|
|
26
26
|
export declare function remoteDependencyAlias(remote: WorkspaceApp): string;
|
|
27
27
|
export declare function zephyrRemoteDependency(scope: string, remote: WorkspaceApp): string;
|
|
@@ -9,6 +9,7 @@ export declare function ensureInsideRoot(root: string, targetPath: string): void
|
|
|
9
9
|
export declare function writeFile(targetDir: string, relativePath: string, content: string): void;
|
|
10
10
|
export declare function writeFileReplacing(targetDir: string, relativePath: string, content: string): void;
|
|
11
11
|
export declare function writeJson(targetDir: string, relativePath: string, value: JsonValue): void;
|
|
12
|
+
export declare function formatGeneratedWorkspaceFiles(targetDir: string, relativePaths?: readonly string[]): void;
|
|
12
13
|
export declare function renderTemplate(template: string, data: Record<string, string>): string;
|
|
13
14
|
export declare function collectTemplateFiles(dir: string): string[];
|
|
14
15
|
export declare function hashFile(filePath: string): string;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { addUltramodernVertical, planUltramodernVertical, } from './add-vertical';
|
|
2
|
+
export type { UltramodernBridgeConfig, UltramodernBridgeConfigInput, UltramodernBridgeGate, UltramodernBridgeGateInput, UltramodernBridgeLockfilePolicy, UltramodernBridgeTestAlias, UltramodernBridgeWorkspacePackage, UltramodernBridgeWorkspacePackageInput, UltramodernEnabledBridgeConfigInput, } from './bridge-config';
|
|
3
|
+
export { normalizeUltramodernBridgeConfig } from './bridge-config';
|
|
2
4
|
export type { AddUltramodernVerticalOptions, UltramodernCodeSmithOverlay, UltramodernCodeSmithOverlayRuntimeConfig, UltramodernGeneratedAppDescriptor, UltramodernGeneratedContractChange, UltramodernGenerationOperation, UltramodernGenerationResult, UltramodernGenerationWarning, UltramodernJsonMutation, UltramodernShellDependencyChange, UltramodernVerticalPlan, UltramodernWorkspaceOptions, } from './types';
|
|
3
5
|
export { ultramodernWorkspaceVersions } from './versions';
|
|
4
6
|
export { generateUltramodernWorkspace } from './write-workspace';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export type ModuleFederationConfigInspection = {
|
|
2
|
+
appDir: string;
|
|
3
|
+
configPath: string;
|
|
4
|
+
dts: {
|
|
5
|
+
compilerInstance?: string;
|
|
6
|
+
tsConfigPath?: string;
|
|
7
|
+
};
|
|
8
|
+
exposes: string[];
|
|
9
|
+
hostOnlyNoExposes: boolean;
|
|
10
|
+
};
|
|
11
|
+
export type ModuleFederationDiscoveredConfig = {
|
|
12
|
+
appDir: string;
|
|
13
|
+
configPath: string;
|
|
14
|
+
};
|
|
15
|
+
export type ModuleFederationValidationResult = {
|
|
16
|
+
configCount: number;
|
|
17
|
+
exposedAppCount: number;
|
|
18
|
+
hostOnlyAppCount: number;
|
|
19
|
+
apps: ModuleFederationConfigInspection[];
|
|
20
|
+
};
|
|
21
|
+
export type ModuleFederationValidationOptions = {
|
|
22
|
+
workspaceRoot: string;
|
|
23
|
+
appDirs?: string[];
|
|
24
|
+
};
|
|
25
|
+
export declare function discoverModuleFederationConfigs(options: ModuleFederationValidationOptions): ModuleFederationDiscoveredConfig[];
|
|
26
|
+
export declare function inspectModuleFederationConfigSource(source: string, appDir: string, configPath: string): ModuleFederationConfigInspection;
|
|
27
|
+
export declare function validateModuleFederationTypes(options: ModuleFederationValidationOptions): ModuleFederationValidationResult;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import type { UltramodernBridgeConfig } from './bridge-config';
|
|
1
2
|
import type { JsonValue, ResolvedPackageSource, WorkspaceApp } from './types';
|
|
2
|
-
export declare const
|
|
3
|
+
export declare const createStrictTsgoTypecheckCommand: (packageDir: string) => string;
|
|
3
4
|
export declare const effectDiagnostics: string[];
|
|
4
|
-
export declare function appDependencies(scope: string, packageSource: ResolvedPackageSource, app: WorkspaceApp, remotes?: WorkspaceApp[]): Record<string, string>;
|
|
5
|
+
export declare function appDependencies(scope: string, packageSource: ResolvedPackageSource, app: WorkspaceApp, remotes?: WorkspaceApp[], bridge?: UltramodernBridgeConfig): Record<string, string>;
|
|
5
6
|
export declare function appDevDependencies(packageSource: ResolvedPackageSource, enableTailwind: boolean): Record<string, string>;
|
|
6
|
-
export declare function createRootPackageJson(scope: string, packageSource: ResolvedPackageSource, remotes?: WorkspaceApp[]): JsonValue;
|
|
7
|
+
export declare function createRootPackageJson(scope: string, packageSource: ResolvedPackageSource, remotes?: WorkspaceApp[], bridge?: UltramodernBridgeConfig): JsonValue;
|
|
7
8
|
export declare function createZephyrDependencies(scope: string, app: WorkspaceApp, remotes?: WorkspaceApp[]): JsonValue;
|
|
8
9
|
export declare function createTsConfigBase(): JsonValue;
|
|
9
10
|
type CreatePackageTsConfigOptions = {
|
|
@@ -16,7 +17,7 @@ export declare function createAppTsConfig(app: WorkspaceApp, remotes?: Workspace
|
|
|
16
17
|
export declare function createAppMfTypesTsConfig(app: WorkspaceApp): JsonValue;
|
|
17
18
|
export declare function createSharedPackageTsConfig(packageDir: string): JsonValue;
|
|
18
19
|
export declare function createRootTsConfig(apps?: WorkspaceApp[]): JsonValue;
|
|
19
|
-
export declare function createAppPackage(scope: string, app: WorkspaceApp, packageSource: ResolvedPackageSource, enableTailwind: boolean, remotes?: WorkspaceApp[]): JsonValue;
|
|
20
|
+
export declare function createAppPackage(scope: string, app: WorkspaceApp, packageSource: ResolvedPackageSource, enableTailwind: boolean, remotes?: WorkspaceApp[], bridge?: UltramodernBridgeConfig): JsonValue;
|
|
20
21
|
export declare function createSharedPackage(scope: string, id: string, description: string): JsonValue;
|
|
21
22
|
export declare function createSharedContractsIndex(): string;
|
|
22
23
|
export {};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export { addUltramodernVertical, planUltramodernVertical, } from './add-vertical';
|
|
2
|
+
export type { UltramodernBridgeConfig, UltramodernBridgeConfigInput, UltramodernBridgeGate, UltramodernBridgeGateInput, UltramodernBridgeLockfilePolicy, UltramodernBridgeTestAlias, UltramodernBridgeWorkspacePackage, UltramodernBridgeWorkspacePackageInput, UltramodernEnabledBridgeConfigInput, } from './bridge-config';
|
|
3
|
+
export { normalizeUltramodernBridgeConfig } from './bridge-config';
|
|
2
4
|
export type { AddUltramodernVerticalOptions, UltramodernCodeSmithOverlay, UltramodernCodeSmithOverlayRuntimeConfig, UltramodernGeneratedAppDescriptor, UltramodernGeneratedContractChange, UltramodernGenerationOperation, UltramodernGenerationResult, UltramodernGenerationWarning, UltramodernJsonMutation, UltramodernShellDependencyChange, UltramodernVerticalPlan, UltramodernWorkspaceOptions, } from './types';
|
|
3
5
|
export { generateUltramodernWorkspace } from './write-workspace';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ResolvedUltramodernPackageSource, UltramodernPackageSourceStrategy } from '../ultramodern-package-source';
|
|
2
|
+
import type { UltramodernBridgeConfigInput } from './bridge-config';
|
|
2
3
|
export type JsonValue = string | number | boolean | null | JsonValue[] | {
|
|
3
4
|
[key: string]: JsonValue;
|
|
4
5
|
};
|
|
@@ -18,11 +19,11 @@ export type WorkspaceApp = {
|
|
|
18
19
|
port: number;
|
|
19
20
|
mfName: string;
|
|
20
21
|
exposes?: Record<string, string>;
|
|
21
|
-
|
|
22
|
+
api?: WorkspaceApi;
|
|
22
23
|
verticalRefs?: string[];
|
|
23
24
|
ownership: Ownership;
|
|
24
25
|
};
|
|
25
|
-
export type
|
|
26
|
+
export type WorkspaceApi = {
|
|
26
27
|
stem: string;
|
|
27
28
|
prefix: string;
|
|
28
29
|
consumedBy: string[];
|
|
@@ -78,6 +79,7 @@ export type UltramodernWorkspaceOptions = {
|
|
|
78
79
|
modernVersion: string;
|
|
79
80
|
enableTailwind?: boolean;
|
|
80
81
|
overlays?: UltramodernCodeSmithOverlay[];
|
|
82
|
+
bridge?: UltramodernBridgeConfigInput;
|
|
81
83
|
packageSource?: {
|
|
82
84
|
strategy?: UltramodernPackageSourceStrategy;
|
|
83
85
|
modernPackageVersion?: string;
|
|
@@ -111,7 +113,7 @@ export type UltramodernGeneratedAppDescriptor = {
|
|
|
111
113
|
port: number;
|
|
112
114
|
moduleFederationName: string;
|
|
113
115
|
exposes?: Record<string, string>;
|
|
114
|
-
|
|
116
|
+
apiPrefix?: string;
|
|
115
117
|
};
|
|
116
118
|
/**
|
|
117
119
|
* Stable public warning shape for non-fatal generator decisions.
|
|
@@ -136,7 +138,7 @@ export type UltramodernGenerationResult = {
|
|
|
136
138
|
rewrittenPaths: string[];
|
|
137
139
|
assignedPorts: Record<string, number>;
|
|
138
140
|
moduleFederationNames: Record<string, string>;
|
|
139
|
-
|
|
141
|
+
apiPrefixes: Record<string, string>;
|
|
140
142
|
generatedContractPath: string;
|
|
141
143
|
warnings: UltramodernGenerationWarning[];
|
|
142
144
|
};
|
|
@@ -154,8 +156,8 @@ export type UltramodernCodeSmithOverlayRuntimeConfig = {
|
|
|
154
156
|
assignedPorts: Record<string, number>;
|
|
155
157
|
moduleFederationName?: string;
|
|
156
158
|
moduleFederationNames: Record<string, string>;
|
|
157
|
-
|
|
158
|
-
|
|
159
|
+
apiPrefix?: string;
|
|
160
|
+
apiPrefixes: Record<string, string>;
|
|
159
161
|
packageSource: ResolvedPackageSource;
|
|
160
162
|
generationResult: UltramodernGenerationResult;
|
|
161
163
|
};
|
|
@@ -189,7 +191,7 @@ export type UltramodernVerticalPlan = UltramodernGenerationResult & {
|
|
|
189
191
|
name: string;
|
|
190
192
|
manifestUrl: string;
|
|
191
193
|
};
|
|
192
|
-
|
|
194
|
+
apiPrefix?: string;
|
|
193
195
|
jsonMutations: UltramodernJsonMutation[];
|
|
194
196
|
shellDependencyChanges: UltramodernShellDependencyChange[];
|
|
195
197
|
generatedContractChanges: UltramodernGeneratedContractChange[];
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* checked-in templates under templates/ and template-workspace/.
|
|
5
5
|
*/
|
|
6
6
|
export declare const TANSTACK_ROUTER_VERSION = "1.170.16";
|
|
7
|
+
export declare const TANSTACK_ROUTER_CORE_VERSION = "1.171.13";
|
|
7
8
|
export declare const MODULE_FEDERATION_VERSION = "2.6.0";
|
|
8
9
|
export declare const ZEPHYR_RSPACK_PLUGIN_VERSION = "1.1.1";
|
|
9
10
|
export declare const ZEPHYR_AGENT_VERSION = "1.1.1";
|
|
@@ -33,6 +34,7 @@ export declare const RSTACK_AGENT_SKILLS_COMMIT = "61c948b42512e223bad44b83af408
|
|
|
33
34
|
export declare const MODULE_FEDERATION_AGENT_SKILLS_COMMIT = "07bb5b6c43ad457609e00c081b72d4c42508ec76";
|
|
34
35
|
export declare const ultramodernWorkspaceVersions: {
|
|
35
36
|
tanstackRouter: string;
|
|
37
|
+
tanstackRouterCore: string;
|
|
36
38
|
moduleFederation: string;
|
|
37
39
|
tailwind: string;
|
|
38
40
|
tailwindPostcss: string;
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import type { WorkspaceApp } from './types';
|
|
2
|
-
export declare function createAssertMfTypesScript(remotes?: WorkspaceApp[]): string;
|
|
3
2
|
export declare function createWorkspaceValidationScript(scope: string, enableTailwind: boolean, remotes?: WorkspaceApp[]): string;
|
|
4
3
|
export declare function createWorkspaceI18nBoundaryValidationScript(): string;
|
|
5
|
-
export declare function
|
|
6
|
-
export declare function createCloudflareProofHelperScript(): string;
|
|
7
|
-
export declare function createCloudflareVersionProofScript(): string;
|
|
4
|
+
export declare function createWorkspaceApiBoundaryValidationScript(): string;
|
|
8
5
|
export declare function createPerformanceReadinessConfigScript(): string;
|
|
9
|
-
export declare function
|
|
10
|
-
export declare function createUltramodernTypecheckScript(): string;
|
|
11
|
-
export declare function writeGeneratedWorkspaceScripts(targetDir: string, scope: string, enableTailwind: boolean, remotes?: WorkspaceApp[]): void;
|
|
6
|
+
export declare function writeGeneratedWorkspaceScripts(targetDir: string, _scope: string, _enableTailwind: boolean, _remotes?: WorkspaceApp[]): void;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { UltramodernBridgeConfig } from './bridge-config';
|
|
2
|
+
import type { JsonValue, ResolvedPackageSource, UltramodernGenerationResult, UltramodernWorkspaceOptions, WorkspaceApp } from './types';
|
|
3
|
+
export declare function writeApp(targetDir: string, scope: string, app: WorkspaceApp, packageSource: ResolvedPackageSource, enableTailwind: boolean, remotes?: WorkspaceApp[], bridge?: UltramodernBridgeConfig): void;
|
|
3
4
|
export declare function writeSharedPackages(targetDir: string, scope: string): void;
|
|
5
|
+
export declare function createCompactUltramodernConfig(scope: string, modernVersion: string, packageSource: ResolvedPackageSource, apps?: WorkspaceApp[], enableTailwind?: boolean, bridge?: UltramodernBridgeConfig): JsonValue;
|
|
4
6
|
export declare function generateUltramodernWorkspace(options: UltramodernWorkspaceOptions): UltramodernGenerationResult;
|
package/package.json
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"engines": {
|
|
22
22
|
"node": ">=20"
|
|
23
23
|
},
|
|
24
|
-
"version": "3.
|
|
24
|
+
"version": "3.5.0-ultramodern.0",
|
|
25
25
|
"types": "./dist/types/index.d.ts",
|
|
26
26
|
"main": "./dist/esm-node/index.js",
|
|
27
27
|
"bin": {
|
|
@@ -75,7 +75,9 @@
|
|
|
75
75
|
],
|
|
76
76
|
"dependencies": {
|
|
77
77
|
"@modern-js/codesmith": "2.6.9",
|
|
78
|
-
"
|
|
78
|
+
"oxfmt": "0.55.0",
|
|
79
|
+
"ultracite": "7.8.3",
|
|
80
|
+
"@modern-js/i18n-utils": "npm:@bleedingdev/modern-js-i18n-utils@3.5.0-ultramodern.0"
|
|
79
81
|
},
|
|
80
82
|
"devDependencies": {
|
|
81
83
|
"@rslib/core": "0.23.0",
|
|
@@ -97,6 +99,6 @@
|
|
|
97
99
|
"test": "rm -rf dist && rslib build -c rslibconfig.mts && rstest --passWithNoTests"
|
|
98
100
|
},
|
|
99
101
|
"ultramodern": {
|
|
100
|
-
"frameworkVersion": "3.
|
|
102
|
+
"frameworkVersion": "3.5.0-ultramodern.0"
|
|
101
103
|
}
|
|
102
104
|
}
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
"repository": "https://github.com/rstackjs/agent-skills",
|
|
5
5
|
"commit": "61c948b42512e223bad44b83af4080eba48b2677",
|
|
6
6
|
"license": "MIT",
|
|
7
|
-
"licensePath": ".
|
|
7
|
+
"licensePath": ".codex/rstackjs-agent-skills-LICENSE"
|
|
8
8
|
},
|
|
9
|
-
"installDir": ".
|
|
9
|
+
"installDir": ".codex/skills",
|
|
10
10
|
"sources": [
|
|
11
11
|
{
|
|
12
12
|
"id": "rstack-agent-skills",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"repository": "https://github.com/rstackjs/agent-skills",
|
|
15
15
|
"commit": "61c948b42512e223bad44b83af4080eba48b2677",
|
|
16
16
|
"license": "MIT",
|
|
17
|
-
"licensePath": ".
|
|
17
|
+
"licensePath": ".codex/rstackjs-agent-skills-LICENSE",
|
|
18
18
|
"install": "vendored"
|
|
19
19
|
},
|
|
20
20
|
{
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"baseline": [
|
|
27
27
|
{
|
|
28
28
|
"name": "mf",
|
|
29
|
-
"path": ".
|
|
29
|
+
"path": ".codex/skills/mf",
|
|
30
30
|
"reason": "Module Federation docs, config inspection, type checking, shared dependency checks, and observability troubleshooting"
|
|
31
31
|
}
|
|
32
32
|
]
|
|
@@ -63,42 +63,42 @@
|
|
|
63
63
|
"baseline": [
|
|
64
64
|
{
|
|
65
65
|
"name": "rsbuild-best-practices",
|
|
66
|
-
"path": ".
|
|
66
|
+
"path": ".codex/skills/rsbuild-best-practices",
|
|
67
67
|
"reason": "Modern.js application build configuration and Rsbuild troubleshooting"
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
70
|
"name": "rspack-best-practices",
|
|
71
|
-
"path": ".
|
|
71
|
+
"path": ".codex/skills/rspack-best-practices",
|
|
72
72
|
"reason": "Rspack bundling, CSS, asset, profiling, and production behavior"
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
75
|
"name": "rspack-tracing",
|
|
76
|
-
"path": ".
|
|
76
|
+
"path": ".codex/skills/rspack-tracing",
|
|
77
77
|
"reason": "Trace-backed Rspack failure and performance debugging"
|
|
78
78
|
},
|
|
79
79
|
{
|
|
80
80
|
"name": "rsdoctor-analysis",
|
|
81
|
-
"path": ".
|
|
81
|
+
"path": ".codex/skills/rsdoctor-analysis",
|
|
82
82
|
"reason": "Evidence-backed bundle composition, duplication, and retained-module analysis"
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
85
|
"name": "rslib-best-practices",
|
|
86
|
-
"path": ".
|
|
86
|
+
"path": ".codex/skills/rslib-best-practices",
|
|
87
87
|
"reason": "Rslib shared package and design-system library authoring"
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
90
|
"name": "rslib-modern-package",
|
|
91
|
-
"path": ".
|
|
91
|
+
"path": ".codex/skills/rslib-modern-package",
|
|
92
92
|
"reason": "Modern package contracts, exports, declarations, side effects, and release readiness"
|
|
93
93
|
},
|
|
94
94
|
{
|
|
95
95
|
"name": "rstest-best-practices",
|
|
96
|
-
"path": ".
|
|
96
|
+
"path": ".codex/skills/rstest-best-practices",
|
|
97
97
|
"reason": "Rstest configuration, test writing, mocking, snapshots, coverage, and CI behavior"
|
|
98
98
|
},
|
|
99
99
|
{
|
|
100
100
|
"name": "mf",
|
|
101
|
-
"path": ".
|
|
101
|
+
"path": ".codex/skills/mf",
|
|
102
102
|
"reason": "Module Federation docs, config inspection, type checking, shared dependency checks, and observability troubleshooting"
|
|
103
103
|
}
|
|
104
104
|
],
|