@bleedingdev/modern-js-create 3.2.0-ultramodern.0 → 3.2.0-ultramodern.1
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 +9 -0
- package/dist/types/locale/index.d.ts +2 -111
- package/package.json +2 -2
- package/template/README.md +6 -5
- package/template/api/lambda/hello.ts.handlebars +1 -1
- package/template/modern.config.ts.handlebars +1 -1
- package/template/src/routes/page.tsx.handlebars +7 -7
- package/template-workspace/README.md.handlebars +8 -7
package/dist/index.js
CHANGED
|
@@ -867,6 +867,15 @@ function createRootPackageJson(scope, packageSource) {
|
|
|
867
867
|
'services/*',
|
|
868
868
|
'packages/*'
|
|
869
869
|
],
|
|
870
|
+
pnpm: {
|
|
871
|
+
onlyBuiltDependencies: [
|
|
872
|
+
'@biomejs/biome',
|
|
873
|
+
'@swc/core',
|
|
874
|
+
'core-js',
|
|
875
|
+
'esbuild',
|
|
876
|
+
'msgpackr-extract'
|
|
877
|
+
]
|
|
878
|
+
},
|
|
870
879
|
modernjs: {
|
|
871
880
|
preset: 'presetUltramodern',
|
|
872
881
|
workspace: 'ultramodern-superapp',
|
|
@@ -1,112 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const
|
|
3
|
-
declare const localeKeys: {
|
|
4
|
-
prompt: {
|
|
5
|
-
projectName: string;
|
|
6
|
-
};
|
|
7
|
-
error: {
|
|
8
|
-
projectNameEmpty: string;
|
|
9
|
-
directoryExists: string;
|
|
10
|
-
invalidRouter: string;
|
|
11
|
-
invalidBffRuntime: string;
|
|
12
|
-
createFailed: string;
|
|
13
|
-
};
|
|
14
|
-
message: {
|
|
15
|
-
welcome: string;
|
|
16
|
-
success: string;
|
|
17
|
-
nextSteps: string;
|
|
18
|
-
step1: string;
|
|
19
|
-
step2: string;
|
|
20
|
-
step3: string;
|
|
21
|
-
};
|
|
22
|
-
help: {
|
|
23
|
-
title: string;
|
|
24
|
-
description: string;
|
|
25
|
-
usage: string;
|
|
26
|
-
usageExample: string;
|
|
27
|
-
options: string;
|
|
28
|
-
optionHelp: string;
|
|
29
|
-
optionVersion: string;
|
|
30
|
-
optionLang: string;
|
|
31
|
-
optionRouter: string;
|
|
32
|
-
optionBff: string;
|
|
33
|
-
optionBffRuntime: string;
|
|
34
|
-
optionTailwind: string;
|
|
35
|
-
optionWorkspace: string;
|
|
36
|
-
optionUltramodernWorkspace: string;
|
|
37
|
-
optionUltramodernPackageSource: string;
|
|
38
|
-
optionUltramodernPackageScope: string;
|
|
39
|
-
optionUltramodernPackageNamePrefix: string;
|
|
40
|
-
optionSub: string;
|
|
41
|
-
examples: string;
|
|
42
|
-
example1: string;
|
|
43
|
-
example2: string;
|
|
44
|
-
example3: string;
|
|
45
|
-
example4: string;
|
|
46
|
-
example5: string;
|
|
47
|
-
example6: string;
|
|
48
|
-
example7: string;
|
|
49
|
-
example8: string;
|
|
50
|
-
example9: string;
|
|
51
|
-
example10: string;
|
|
52
|
-
moreInfo: string;
|
|
53
|
-
};
|
|
54
|
-
version: {
|
|
55
|
-
message: string;
|
|
56
|
-
};
|
|
57
|
-
} | {
|
|
58
|
-
prompt: {
|
|
59
|
-
projectName: string;
|
|
60
|
-
};
|
|
61
|
-
error: {
|
|
62
|
-
projectNameEmpty: string;
|
|
63
|
-
directoryExists: string;
|
|
64
|
-
invalidRouter: string;
|
|
65
|
-
invalidBffRuntime: string;
|
|
66
|
-
createFailed: string;
|
|
67
|
-
};
|
|
68
|
-
message: {
|
|
69
|
-
welcome: string;
|
|
70
|
-
success: string;
|
|
71
|
-
nextSteps: string;
|
|
72
|
-
step1: string;
|
|
73
|
-
step2: string;
|
|
74
|
-
step3: string;
|
|
75
|
-
};
|
|
76
|
-
help: {
|
|
77
|
-
title: string;
|
|
78
|
-
description: string;
|
|
79
|
-
usage: string;
|
|
80
|
-
usageExample: string;
|
|
81
|
-
options: string;
|
|
82
|
-
optionHelp: string;
|
|
83
|
-
optionVersion: string;
|
|
84
|
-
optionLang: string;
|
|
85
|
-
optionRouter: string;
|
|
86
|
-
optionBff: string;
|
|
87
|
-
optionBffRuntime: string;
|
|
88
|
-
optionTailwind: string;
|
|
89
|
-
optionWorkspace: string;
|
|
90
|
-
optionUltramodernWorkspace: string;
|
|
91
|
-
optionUltramodernPackageSource: string;
|
|
92
|
-
optionUltramodernPackageScope: string;
|
|
93
|
-
optionUltramodernPackageNamePrefix: string;
|
|
94
|
-
optionSub: string;
|
|
95
|
-
examples: string;
|
|
96
|
-
example1: string;
|
|
97
|
-
example2: string;
|
|
98
|
-
example3: string;
|
|
99
|
-
example4: string;
|
|
100
|
-
example5: string;
|
|
101
|
-
example6: string;
|
|
102
|
-
example7: string;
|
|
103
|
-
example8: string;
|
|
104
|
-
example9: string;
|
|
105
|
-
example10: string;
|
|
106
|
-
moreInfo: string;
|
|
107
|
-
};
|
|
108
|
-
version: {
|
|
109
|
-
message: string;
|
|
110
|
-
};
|
|
111
|
-
};
|
|
1
|
+
declare const i18n: any;
|
|
2
|
+
declare const localeKeys: any;
|
|
112
3
|
export { i18n, localeKeys };
|
package/package.json
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"engines": {
|
|
22
22
|
"node": ">=20"
|
|
23
23
|
},
|
|
24
|
-
"version": "3.2.0-ultramodern.
|
|
24
|
+
"version": "3.2.0-ultramodern.1",
|
|
25
25
|
"types": "./dist/types/index.d.ts",
|
|
26
26
|
"main": "./dist/index.js",
|
|
27
27
|
"bin": {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@types/node": "^25.8.0",
|
|
42
42
|
"@typescript/native-preview": "7.0.0-dev.20260516.1",
|
|
43
43
|
"tsx": "^4.22.0",
|
|
44
|
-
"@modern-js/i18n-utils": "npm:@bleedingdev/modern-js-i18n-utils@3.2.0-ultramodern.
|
|
44
|
+
"@modern-js/i18n-utils": "npm:@bleedingdev/modern-js-i18n-utils@3.2.0-ultramodern.1"
|
|
45
45
|
},
|
|
46
46
|
"publishConfig": {
|
|
47
47
|
"registry": "https://registry.npmjs.org/",
|
package/template/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# UltraModern.js 3.0 Starter
|
|
2
2
|
|
|
3
3
|
## Setup
|
|
4
4
|
|
|
@@ -64,8 +64,9 @@ Module Federation remote with the same topology, trust, SSR compatibility, and
|
|
|
64
64
|
fallback rules as the vertical remotes. Do not add a second preset or a
|
|
65
65
|
design-system-specific framework mode.
|
|
66
66
|
|
|
67
|
-
The public opinionated entrypoint is `presetUltramodern(...)`.
|
|
68
|
-
|
|
67
|
+
The public opinionated entrypoint is `presetUltramodern(...)`. It is the default
|
|
68
|
+
UltraModern.js SuperApp surface for Effect, TanStack, SSR, BFF, and Micro
|
|
69
|
+
Verticals.
|
|
69
70
|
|
|
70
71
|
Preview the production build locally:
|
|
71
72
|
|
|
@@ -74,5 +75,5 @@ pnpm serve
|
|
|
74
75
|
```
|
|
75
76
|
|
|
76
77
|
For more information, see the
|
|
77
|
-
[UltraModern.js guide](https://
|
|
78
|
-
and the [
|
|
78
|
+
[UltraModern.js guide](https://bleedingdev.github.io/ultramodern.js/guides/get-started/ultramodern.html)
|
|
79
|
+
and the [UltraModern.js documentation](https://bleedingdev.github.io/ultramodern.js/).
|
|
@@ -14,7 +14,7 @@ const enableTelemetryExporters =
|
|
|
14
14
|
const telemetryFailLoudStartup =
|
|
15
15
|
process.env.MODERN_TELEMETRY_FAIL_LOUD_STARTUP !== 'false';
|
|
16
16
|
|
|
17
|
-
// https://
|
|
17
|
+
// https://bleedingdev.github.io/ultramodern.js/configure/app/usage.html
|
|
18
18
|
export default defineConfig(
|
|
19
19
|
presetUltramodern(
|
|
20
20
|
{
|
|
@@ -26,11 +26,11 @@ const Index = () => {
|
|
|
26
26
|
</Helmet>
|
|
27
27
|
<main>
|
|
28
28
|
<div className="title">
|
|
29
|
-
|
|
29
|
+
UltraModern.js 3.0
|
|
30
30
|
<img
|
|
31
31
|
className="logo"
|
|
32
32
|
src="https://lf3-static.bytednsdoc.com/obj/eden-cn/zq-uylkvT/ljhwZthlaukjlkulzlp/modern-js-logo.svg"
|
|
33
|
-
alt="
|
|
33
|
+
alt="UltraModern.js Logo"
|
|
34
34
|
/>
|
|
35
35
|
<p className="name">presetUltramodern</p>
|
|
36
36
|
</div>
|
|
@@ -47,13 +47,13 @@ const Index = () => {
|
|
|
47
47
|
{{/if}}
|
|
48
48
|
<div className="grid">
|
|
49
49
|
<a
|
|
50
|
-
href="https://
|
|
50
|
+
href="https://bleedingdev.github.io/ultramodern.js/guides/get-started/ultramodern.html"
|
|
51
51
|
target="_blank"
|
|
52
52
|
rel="noopener noreferrer"
|
|
53
53
|
className="card"
|
|
54
54
|
>
|
|
55
55
|
<h2>
|
|
56
|
-
|
|
56
|
+
UltraModern.js Guide
|
|
57
57
|
<img
|
|
58
58
|
className="arrow-right"
|
|
59
59
|
src="https://lf3-static.bytednsdoc.com/obj/eden-cn/zq-uylkvT/ljhwZthlaukjlkulzlp/arrow-right.svg"
|
|
@@ -63,7 +63,7 @@ const Index = () => {
|
|
|
63
63
|
<p>Review the MV-first, TanStack-ready, Effect-ready public preset.</p>
|
|
64
64
|
</a>
|
|
65
65
|
<a
|
|
66
|
-
href="https://
|
|
66
|
+
href="https://bleedingdev.github.io/ultramodern.js/configure/app/usage.html"
|
|
67
67
|
target="_blank"
|
|
68
68
|
className="card"
|
|
69
69
|
rel="noreferrer"
|
|
@@ -79,7 +79,7 @@ const Index = () => {
|
|
|
79
79
|
<p>Tune the generated defaults in <code className="code">modern.config.ts</code>.</p>
|
|
80
80
|
</a>
|
|
81
81
|
<a
|
|
82
|
-
href="https://github.com/
|
|
82
|
+
href="https://github.com/BleedingDev/ultramodern.js/blob/main-ultramodern/packages/toolkit/create/template/.github/workflows/ultramodern-gates.yml.handlebars"
|
|
83
83
|
target="_blank"
|
|
84
84
|
className="card"
|
|
85
85
|
rel="noreferrer"
|
|
@@ -95,7 +95,7 @@ const Index = () => {
|
|
|
95
95
|
<p>The starter includes a PR workflow for <code className="code">ultramodern:check</code> and build.</p>
|
|
96
96
|
</a>
|
|
97
97
|
<a
|
|
98
|
-
href="https://
|
|
98
|
+
href="https://bleedingdev.github.io/ultramodern.js/configure/app/bff/effect.html"
|
|
99
99
|
target="_blank"
|
|
100
100
|
rel="noopener noreferrer"
|
|
101
101
|
className="card"
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Generated UltraModern SuperApp workspace.
|
|
4
4
|
|
|
5
|
-
This workspace keeps `presetUltramodern(...)` as the single public
|
|
6
|
-
|
|
5
|
+
This workspace keeps `presetUltramodern(...)` as the single public
|
|
6
|
+
UltraModern.js 3.0 SuperApp surface and scaffolds the canonical Micro Vertical
|
|
7
|
+
starter topology:
|
|
7
8
|
|
|
8
9
|
- `apps/shell-super-app` owns shell route assembly and remote manifest wiring.
|
|
9
10
|
- `apps/remotes/remote-commerce` owns the commerce vertical remote.
|
|
@@ -21,8 +22,8 @@ pnpm ultramodern:check
|
|
|
21
22
|
The topology and ownership metadata are generated under `topology/`.
|
|
22
23
|
|
|
23
24
|
Package source metadata is generated at
|
|
24
|
-
`.modernjs/ultramodern-package-source.json`. The default strategy keeps
|
|
25
|
-
runtime and tooling packages on `workspace:*` for monorepo
|
|
26
|
-
a workspace that can install those packages outside the
|
|
27
|
-
`--ultramodern-package-source install`; generated shared
|
|
28
|
-
`workspace:*` because they are part of this workspace.
|
|
25
|
+
`.modernjs/ultramodern-package-source.json`. The default strategy keeps
|
|
26
|
+
UltraModern.js runtime and tooling packages on `workspace:*` for monorepo
|
|
27
|
+
development. To create a workspace that can install those packages outside the
|
|
28
|
+
monorepo, generate with `--ultramodern-package-source install`; generated shared
|
|
29
|
+
packages still use `workspace:*` because they are part of this workspace.
|