@bleedingdev/modern-js-create 3.2.0-ultramodern.5 → 3.2.0-ultramodern.51

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 +118 -15
  2. package/dist/index.js +5125 -454
  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 +115 -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 +103 -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 +19 -8
  63. package/template-workspace/scripts/assert-mf-types.mjs +44 -0
  64. package/template-workspace/scripts/bootstrap-agent-skills.mjs +163 -0
  65. package/template-workspace/scripts/setup-agent-reference-repos.mjs +364 -0
  66. package/template-workspace/scripts/validate-ultramodern-workspace.mjs.handlebars +743 -87
  67. package/template/biome.json +0 -41
  68. package/template/src/routes/page.tsx.handlebars +0 -119
@@ -1,41 +0,0 @@
1
- {
2
- "root": false,
3
- "$schema": "https://biomejs.dev/schemas/2.4.15/schema.json",
4
- "vcs": {
5
- "enabled": true,
6
- "defaultBranch": "main",
7
- "clientKind": "git",
8
- "useIgnoreFile": true
9
- },
10
- "formatter": {
11
- "enabled": true,
12
- "indentStyle": "space"
13
- },
14
- "javascript": {
15
- "formatter": {
16
- "quoteStyle": "single",
17
- "arrowParentheses": "asNeeded",
18
- "jsxQuoteStyle": "double",
19
- "lineWidth": 80
20
- }
21
- },
22
- "linter": {
23
- "enabled": true,
24
- "rules": {
25
- "recommended": true,
26
- "suspicious": {
27
- "noDuplicateFontNames": "off"
28
- }
29
- }
30
- },
31
- "assist": { "actions": { "source": { "organizeImports": "on" } } },
32
- "files": {
33
- "ignoreUnknown": true,
34
- "includes": [
35
- "**",
36
- "!**/.vscode/**/*",
37
- "!**/node_modules/**/*",
38
- "!**/dist/**/*"
39
- ]
40
- }
41
- }
@@ -1,119 +0,0 @@
1
- import { Helmet } from '@modern-js/runtime/head';
2
- {{#if useEffectBff}}import effectBff from '@api/effect/index';
3
- import { useEffect, useState } from 'react';
4
- {{/if}}
5
- import './index.css';
6
-
7
- const Index = () => {
8
- {{#if useEffectBff}}
9
- const [effectMessage, setEffectMessage] = useState('loading...');
10
-
11
- useEffect(() => {
12
- effectBff.client.greetings.hello({}).then(data => {
13
- setEffectMessage(data.message);
14
- });
15
- }, []);
16
- {{/if}}
17
-
18
- return (
19
- <div className="container-box">
20
- <Helmet>
21
- <link
22
- rel="icon"
23
- type="image/x-icon"
24
- href="https://lf3-static.bytednsdoc.com/obj/eden-cn/uhbfnupenuhf/favicon.ico"
25
- />
26
- </Helmet>
27
- <main>
28
- <div className="title">
29
- UltraModern.js 3.0
30
- <img
31
- className="logo"
32
- src="https://lf3-static.bytednsdoc.com/obj/eden-cn/zq-uylkvT/ljhwZthlaukjlkulzlp/modern-js-logo.svg"
33
- alt="UltraModern.js Logo"
34
- />
35
- <p className="name">presetUltramodern</p>
36
- </div>
37
- <p className="description{{#if enableTailwind}} text-emerald-700 font-semibold{{/if}}">
38
- This starter ships the public <code className="code">presetUltramodern(...)</code> profile. Start in
39
- <code className="code">modern.config.ts</code>, keep
40
- <code className="code">pnpm run ultramodern:check</code> green, and
41
- tune the generated preset only where your app needs a softer lane.
42
- </p>
43
- {{#if useEffectBff}}
44
- <p className="description effect-message{{#if enableTailwind}} text-emerald-700 font-semibold{{/if}}">
45
- Effect HttpApi response: <code className="code">{effectMessage}</code>
46
- </p>
47
- {{/if}}
48
- <div className="grid">
49
- <a
50
- href="https://bleedingdev.github.io/ultramodern.js/guides/get-started/ultramodern.html"
51
- target="_blank"
52
- rel="noopener noreferrer"
53
- className="card"
54
- >
55
- <h2>
56
- UltraModern.js Guide
57
- <img
58
- className="arrow-right"
59
- src="https://lf3-static.bytednsdoc.com/obj/eden-cn/zq-uylkvT/ljhwZthlaukjlkulzlp/arrow-right.svg"
60
- alt="Guide"
61
- />
62
- </h2>
63
- <p>Review the MV-first, TanStack-ready, Effect-ready public preset.</p>
64
- </a>
65
- <a
66
- href="https://bleedingdev.github.io/ultramodern.js/configure/app/usage.html"
67
- target="_blank"
68
- className="card"
69
- rel="noreferrer"
70
- >
71
- <h2>
72
- Configure presetUltramodern
73
- <img
74
- className="arrow-right"
75
- src="https://lf3-static.bytednsdoc.com/obj/eden-cn/zq-uylkvT/ljhwZthlaukjlkulzlp/arrow-right.svg"
76
- alt="Tutorials"
77
- />
78
- </h2>
79
- <p>Tune the generated defaults in <code className="code">modern.config.ts</code>.</p>
80
- </a>
81
- <a
82
- href="https://github.com/BleedingDev/ultramodern.js/blob/main-ultramodern/packages/toolkit/create/template/.github/workflows/ultramodern-gates.yml.handlebars"
83
- target="_blank"
84
- className="card"
85
- rel="noreferrer"
86
- >
87
- <h2>
88
- Ultramodern Gates
89
- <img
90
- className="arrow-right"
91
- src="https://lf3-static.bytednsdoc.com/obj/eden-cn/zq-uylkvT/ljhwZthlaukjlkulzlp/arrow-right.svg"
92
- alt="Config"
93
- />
94
- </h2>
95
- <p>The starter includes a PR workflow for <code className="code">ultramodern:check</code> and build.</p>
96
- </a>
97
- <a
98
- href="https://bleedingdev.github.io/ultramodern.js/configure/app/bff/effect.html"
99
- target="_blank"
100
- rel="noopener noreferrer"
101
- className="card"
102
- >
103
- <h2>
104
- BFF + Effect
105
- <img
106
- className="arrow-right"
107
- src="https://lf3-static.bytednsdoc.com/obj/eden-cn/zq-uylkvT/ljhwZthlaukjlkulzlp/arrow-right.svg"
108
- alt="Github"
109
- />
110
- </h2>
111
- <p>Keep Effect as the preferred BFF lane while Hono stays an explicit fallback.</p>
112
- </a>
113
- </div>
114
- </main>
115
- </div>
116
- );
117
- };
118
-
119
- export default Index;