@bleedingdev/modern-js-main-doc 3.2.0-ultramodern.81 → 3.2.0-ultramodern.83
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.
|
@@ -285,14 +285,15 @@ The following are intentionally out of scope for this public V3 preset profile:
|
|
|
285
285
|
The public BleedingDev create package starts small. The default command creates
|
|
286
286
|
one production-ready UltraModern app with `presetUltramodern(...)`, SSR,
|
|
287
287
|
TanStack Router, Tailwind CSS v4, i18n, Effect BFF, generated quality gates, and
|
|
288
|
-
|
|
288
|
+
production URL metadata:
|
|
289
289
|
|
|
290
290
|
```bash
|
|
291
291
|
pnpm dlx @bleedingdev/modern-js-create myapp
|
|
292
292
|
cd myapp
|
|
293
293
|
mise install
|
|
294
|
-
|
|
295
|
-
|
|
294
|
+
pnpm install
|
|
295
|
+
pnpm run ultramodern:check
|
|
296
|
+
MODERN_PUBLIC_SITE_URL=https://example.com pnpm build
|
|
296
297
|
```
|
|
297
298
|
|
|
298
299
|
Create a SuperApp workspace only when independent ownership is useful:
|
|
@@ -301,10 +302,16 @@ Create a SuperApp workspace only when independent ownership is useful:
|
|
|
301
302
|
pnpm dlx @bleedingdev/modern-js-create my-super-app --ultramodern-workspace
|
|
302
303
|
cd my-super-app
|
|
303
304
|
mise install
|
|
304
|
-
|
|
305
|
-
|
|
305
|
+
pnpm install
|
|
306
|
+
pnpm check
|
|
307
|
+
pnpm build
|
|
306
308
|
```
|
|
307
309
|
|
|
310
|
+
The initial SuperApp workspace is shell-only: `apps/shell-super-app` owns route
|
|
311
|
+
assembly and Module Federation host wiring, `verticals/*` starts empty, and
|
|
312
|
+
`packages/shared-*` holds placeholders for contracts, tokens, and API support.
|
|
313
|
+
Add verticals only when a real business domain needs independent ownership.
|
|
314
|
+
|
|
308
315
|
Add real business MicroVerticals as they become ownership boundaries:
|
|
309
316
|
|
|
310
317
|
```bash
|
|
@@ -312,7 +319,8 @@ pnpm dlx @bleedingdev/modern-js-create transportation --vertical
|
|
|
312
319
|
pnpm dlx @bleedingdev/modern-js-create food-delivery --vertical
|
|
313
320
|
pnpm dlx @bleedingdev/modern-js-create payments --vertical
|
|
314
321
|
pnpm dlx @bleedingdev/modern-js-create maps --vertical
|
|
315
|
-
|
|
322
|
+
pnpm check
|
|
323
|
+
pnpm build
|
|
316
324
|
```
|
|
317
325
|
|
|
318
326
|
The `--vertical` command mutates the current workspace. It creates the vertical
|
|
@@ -338,9 +346,34 @@ prefixes, and SSR first paint uses Modern/Rspack assets plus manifest-owned
|
|
|
338
346
|
vertical CSS.
|
|
339
347
|
|
|
340
348
|
Generated workspaces include `scripts/proof-cloudflare-version.mjs` for live
|
|
341
|
-
Cloudflare and Zephyr proof.
|
|
342
|
-
|
|
343
|
-
|
|
349
|
+
Cloudflare and Zephyr proof. Deploy first, then pass each deployed app's
|
|
350
|
+
generated public URL env key into the proof step. Shell-only workspaces only
|
|
351
|
+
need the shell URL; added verticals use the same
|
|
352
|
+
`ULTRAMODERN_PUBLIC_URL_<APP_ID>` pattern with hyphens converted to underscores
|
|
353
|
+
and uppercased.
|
|
354
|
+
|
|
355
|
+
```bash
|
|
356
|
+
pnpm cloudflare:deploy
|
|
357
|
+
ULTRAMODERN_PUBLIC_URL_SHELL_SUPER_APP=https://shell-super-app.example.workers.dev \
|
|
358
|
+
ULTRAMODERN_PUBLIC_URL_TRANSPORTATION=https://transportation.example.workers.dev \
|
|
359
|
+
pnpm cloudflare:proof -- --require-public-urls
|
|
360
|
+
```
|
|
361
|
+
|
|
362
|
+
Live proof requires public Worker URLs and Zephyr credentials; local checks
|
|
363
|
+
still validate generated contracts, builds, Cloudflare output, dry-run Zephyr
|
|
364
|
+
evidence plans, and local evidence schemas.
|
|
365
|
+
|
|
366
|
+
## Current Troubleshooting
|
|
367
|
+
|
|
368
|
+
| Symptom | Current check | Owner |
|
|
369
|
+
| --- | --- | --- |
|
|
370
|
+
| Package cohort mismatch | Regenerate with one package source strategy, run `mise install`, then rerun `pnpm install` from the activated shell. | Generated workspace package source metadata |
|
|
371
|
+
| Install failure | Check the active Node/pnpm from `mise install`; rerun `pnpm install` after the shell sees the pinned versions. | Toolchain setup |
|
|
372
|
+
| Build failure | Run `pnpm check` before `pnpm build`; fix reported format, lint, type, skill, i18n, or generated-contract failures first. | Owning package or generated contract |
|
|
373
|
+
| Missing public URL | Set the env key from `.modernjs/ultramodern-generated-contract.json`, for example `ULTRAMODERN_PUBLIC_URL_SHELL_SUPER_APP`. | Deployment operator |
|
|
374
|
+
| Cloudflare credentials | Confirm Wrangler credentials before `pnpm cloudflare:deploy`; local checks do not prove live Worker access. | Deployment operator |
|
|
375
|
+
| Asset or CSS 404 | Rebuild with `pnpm build` or `pnpm cloudflare:deploy` and inspect emitted Modern/Rspack asset paths instead of hardcoding CSS URLs. | Framework/runtime asset pipeline |
|
|
376
|
+
| Federation manifest failure | Run the shell and vertical build scripts, then check each deployed `/mf-manifest.json` URL used by the shell. | Module Federation owner |
|
|
344
377
|
|
|
345
378
|
BleedingDev packages are published through GitHub Actions trusted publishing.
|
|
346
379
|
The public workflow is tokenless; do not publish packages manually from a
|
package/package.json
CHANGED
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
"modern",
|
|
19
19
|
"modern.js"
|
|
20
20
|
],
|
|
21
|
-
"version": "3.2.0-ultramodern.
|
|
21
|
+
"version": "3.2.0-ultramodern.83",
|
|
22
22
|
"publishConfig": {
|
|
23
23
|
"registry": "https://registry.npmjs.org/",
|
|
24
24
|
"access": "public"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"mermaid": "^11.15.0",
|
|
28
|
-
"@modern-js/sandpack-react": "npm:@bleedingdev/modern-js-sandpack-react@3.2.0-ultramodern.
|
|
28
|
+
"@modern-js/sandpack-react": "npm:@bleedingdev/modern-js-sandpack-react@3.2.0-ultramodern.83"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@rsbuild/plugin-sass": "1.5.2",
|