@bleedingdev/modern-js-create 3.2.0-ultramodern.3 → 3.2.0-ultramodern.30

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.
Files changed (68) hide show
  1. package/README.md +32 -14
  2. package/dist/index.js +2753 -324
  3. package/dist/types/locale/en.d.ts +2 -0
  4. package/dist/types/locale/zh.d.ts +2 -0
  5. package/dist/types/ultramodern-workspace.d.ts +13 -0
  6. package/package.json +8 -5
  7. package/template/.agents/skills-lock.json +34 -0
  8. package/template/.github/renovate.json +53 -0
  9. package/template/.github/workflows/ultramodern-gates.yml.handlebars +34 -10
  10. package/template/.mise.toml.handlebars +2 -0
  11. package/template/AGENTS.md +27 -0
  12. package/template/README.md +20 -14
  13. package/template/api/effect/index.ts.handlebars +7 -45
  14. package/template/config/public/locales/cs/translation.json +39 -0
  15. package/template/config/public/locales/en/translation.json +39 -0
  16. package/template/modern.config.ts.handlebars +44 -23
  17. package/template/oxfmt.config.ts +8 -0
  18. package/template/oxlint.config.ts +12 -0
  19. package/template/package.json.handlebars +59 -30
  20. package/template/pnpm-workspace.yaml +26 -0
  21. package/template/rstest.config.mts +7 -0
  22. package/template/scripts/bootstrap-agent-skills.mjs +95 -0
  23. package/template/scripts/check-i18n-strings.mjs +83 -0
  24. package/template/scripts/validate-ultramodern.mjs.handlebars +438 -16
  25. package/template/shared/effect/api.ts.handlebars +1 -2
  26. package/template/src/modern-app-env.d.ts +2 -0
  27. package/template/src/modern.runtime.ts.handlebars +17 -3
  28. package/template/src/routes/[lang]/page.tsx.handlebars +210 -0
  29. package/template/src/routes/index.css.handlebars +14 -3
  30. package/template/src/routes/layout.tsx.handlebars +2 -1
  31. package/template/tests/tsconfig.json +7 -0
  32. package/template/tests/ultramodern.contract.test.ts.handlebars +78 -0
  33. package/template/tsconfig.json +106 -2
  34. package/template-workspace/.agents/agent-reference-repos.json +24 -0
  35. package/template-workspace/.agents/rstackjs-agent-skills-LICENSE +21 -0
  36. package/template-workspace/.agents/skills/rsbuild-best-practices/SKILL.md +57 -0
  37. package/template-workspace/.agents/skills/rsdoctor-analysis/SKILL.md +96 -0
  38. package/template-workspace/.agents/skills/rsdoctor-analysis/references/command-map.md +113 -0
  39. package/template-workspace/.agents/skills/rsdoctor-analysis/references/common-analysis-patterns.md +190 -0
  40. package/template-workspace/.agents/skills/rsdoctor-analysis/references/install-rsdoctor-common.md +88 -0
  41. package/template-workspace/.agents/skills/rsdoctor-analysis/references/install-rsdoctor-rspack.md +138 -0
  42. package/template-workspace/.agents/skills/rsdoctor-analysis/references/install-rsdoctor-webpack.md +71 -0
  43. package/template-workspace/.agents/skills/rsdoctor-analysis/references/install-rsdoctor.md +39 -0
  44. package/template-workspace/.agents/skills/rsdoctor-analysis/references/rsdoctor-data-types.md +103 -0
  45. package/template-workspace/.agents/skills/rslib-best-practices/SKILL.md +58 -0
  46. package/template-workspace/.agents/skills/rslib-modern-package/SKILL.md +173 -0
  47. package/template-workspace/.agents/skills/rspack-best-practices/SKILL.md +70 -0
  48. package/template-workspace/.agents/skills/rspack-tracing/SKILL.md +75 -0
  49. package/template-workspace/.agents/skills/rspack-tracing/references/bottlenecks.md +47 -0
  50. package/template-workspace/.agents/skills/rspack-tracing/references/tracing-guide.md +38 -0
  51. package/template-workspace/.agents/skills/rspack-tracing/scripts/analyze_trace.js +184 -0
  52. package/template-workspace/.agents/skills/rstest-best-practices/SKILL.md +133 -0
  53. package/template-workspace/.agents/skills-lock.json +114 -0
  54. package/template-workspace/.github/renovate.json +29 -0
  55. package/template-workspace/.github/workflows/ultramodern-workspace-gates.yml.handlebars +54 -0
  56. package/template-workspace/.gitignore.handlebars +5 -0
  57. package/template-workspace/.mise.toml.handlebars +2 -0
  58. package/template-workspace/AGENTS.md +61 -0
  59. package/template-workspace/README.md.handlebars +26 -5
  60. package/template-workspace/oxfmt.config.ts +16 -0
  61. package/template-workspace/oxlint.config.ts +19 -0
  62. package/template-workspace/pnpm-workspace.yaml +34 -8
  63. package/template-workspace/scripts/assert-mf-types.mjs +44 -0
  64. package/template-workspace/scripts/bootstrap-agent-skills.mjs +155 -0
  65. package/template-workspace/scripts/setup-agent-reference-repos.mjs +364 -0
  66. package/template-workspace/scripts/validate-ultramodern-workspace.mjs.handlebars +755 -87
  67. package/template/biome.json +0 -41
  68. package/template/src/routes/page.tsx.handlebars +0 -119
package/README.md CHANGED
@@ -12,6 +12,13 @@
12
12
 
13
13
  Please follow [Quick Start](https://modernjs.dev/en/guides/get-started/quick-start) to get started with Modern.js.
14
14
 
15
+ For UltraModern.js, use the BleedingDev create package. It defaults to the
16
+ canonical SuperApp workspace and published BleedingDev package aliases:
17
+
18
+ ```bash
19
+ pnpm dlx @bleedingdev/modern-js-create my-super-app
20
+ ```
21
+
15
22
  ### Router Template
16
23
 
17
24
  You can scaffold a TanStack Router first template:
@@ -22,16 +29,17 @@ npx @modern-js/create my-app --router tanstack
22
29
 
23
30
  ### Tailwind Template
24
31
 
25
- You can scaffold Tailwind CSS v4 setup (PostCSS + starter utility classes):
32
+ Tailwind CSS v4 setup is generated by default. Disable it explicitly when you
33
+ need a plain CSS starter:
26
34
 
27
35
  ```bash
28
- npx @modern-js/create my-app --tailwind
36
+ npx @modern-js/create my-app --no-tailwind
29
37
  ```
30
38
 
31
- You can combine both options:
39
+ TanStack Router and Tailwind CSS work together without extra flags:
32
40
 
33
41
  ```bash
34
- npx @modern-js/create my-app --router tanstack --tailwind
42
+ npx @modern-js/create my-app --router tanstack
35
43
  ```
36
44
 
37
45
  ### BFF Runtime Template
@@ -58,24 +66,24 @@ Generated starters expose `presetUltramodern(...)` as the public opinionated
58
66
  config wrapper when you want the full Ultramodern setup surface in
59
67
  `modern.config.ts`.
60
68
 
61
- You can combine TanStack Router + Tailwind + Effect BFF in one command:
69
+ You can combine TanStack Router + default Tailwind + Effect BFF in one command:
62
70
 
63
71
  ```bash
64
- npx @modern-js/create my-app --router tanstack --tailwind --bff-runtime effect
72
+ npx @modern-js/create my-app --router tanstack --bff-runtime effect
65
73
  ```
66
74
 
67
75
  ### Micro Vertical Workspace Recipes
68
76
 
69
- Use the existing create flags to scaffold packages inside a Micro Vertical
70
- workspace. The shell and remotes use TanStack Router; services use Effect by
71
- default, with Hono kept as an explicit compatibility lane.
77
+ Use the workspace add flow from the UltraModern workspace root. It derives the
78
+ package path, package name, port, Module Federation name, topology entry, local
79
+ overlay, ownership entry, and root `dev:*` script from the requested name and
80
+ kind.
72
81
 
73
82
  ```bash
74
- npx @modern-js/create apps/shell --router tanstack --tailwind --workspace --sub
75
- npx @modern-js/create apps/remotes/catalog --router tanstack --tailwind --workspace --sub
76
- npx @modern-js/create apps/remotes/design-system --router tanstack --tailwind --workspace --sub
77
- npx @modern-js/create services/catalog-api --bff-runtime effect --workspace --sub
78
- npx @modern-js/create services/legacy-api --bff-runtime hono --workspace --sub
83
+ npx @modern-js/create catalog --microvertical remote
84
+ npx @modern-js/create design-system --microvertical horizontal-remote
85
+ npx @modern-js/create catalog-api --microvertical service
86
+ npx @modern-js/create catalog-contracts --microvertical shared
79
87
  ```
80
88
 
81
89
  When a design system needs independent deployment, treat it as a horizontal
@@ -85,10 +93,20 @@ regular workspace packages for tokens, primitives, generated clients, or
85
93
  domain-neutral utilities. Keep feature composites and workflow logic owned by a
86
94
  shell, remote, or service package.
87
95
 
96
+ The lower-level `--router`, `--workspace`, and `--sub` flags remain available
97
+ for manual package scaffolding, but UltraModern MicroVertical additions should
98
+ prefer `--microvertical` to avoid hand-writing workspace paths and topology
99
+ metadata.
100
+
88
101
  See
89
102
  `docs/super-app-rfc-adr/WORKSPACE-0001-micro-vertical-workspace-scaffolding.md`
90
103
  for the canonical workspace topology and local orchestration model.
91
104
 
105
+ The published `@bleedingdev/modern-js-create` package is the preferred
106
+ UltraModern.js entrypoint. The lower-level `--ultramodern-*` flags remain
107
+ available for release engineering and local package-source testing, but users
108
+ should not need them for normal app creation.
109
+
92
110
  ### Local Monorepo Testing
93
111
 
94
112
  When testing unreleased Modern.js packages from a local monorepo checkout, use