@bleedingdev/modern-js-create 3.2.0-ultramodern.2 → 3.2.0-ultramodern.21
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 +12 -0
- package/dist/index.js +676 -198
- package/package.json +5 -2
- package/template/.agents/skills-lock.json +34 -0
- package/template/.github/renovate.json +53 -0
- package/template/.github/workflows/ultramodern-gates.yml.handlebars +26 -4
- package/template/AGENTS.md +27 -0
- package/template/README.md +7 -3
- package/template/api/effect/index.ts.handlebars +7 -45
- package/template/config/public/locales/cs/translation.json +39 -0
- package/template/config/public/locales/en/translation.json +39 -0
- package/template/modern.config.ts.handlebars +44 -23
- package/template/oxfmt.config.ts +8 -0
- package/template/oxlint.config.ts +12 -0
- package/template/package.json.handlebars +56 -27
- package/template/pnpm-workspace.yaml +24 -0
- package/template/rstest.config.mts +7 -0
- package/template/scripts/bootstrap-agent-skills.mjs +95 -0
- package/template/scripts/check-i18n-strings.mjs +83 -0
- package/template/scripts/validate-ultramodern.mjs.handlebars +350 -16
- package/template/shared/effect/api.ts.handlebars +1 -2
- package/template/src/modern-app-env.d.ts +2 -0
- package/template/src/modern.runtime.ts.handlebars +17 -3
- package/template/src/routes/[lang]/page.tsx.handlebars +211 -0
- package/template/src/routes/index.css.handlebars +14 -3
- package/template/src/routes/layout.tsx.handlebars +1 -1
- package/template/tests/tsconfig.json +7 -0
- package/template/tests/ultramodern.contract.test.ts +67 -0
- package/template/tsconfig.json +106 -2
- package/template-workspace/.agents/agent-reference-repos.json +24 -0
- package/template-workspace/.agents/rstackjs-agent-skills-LICENSE +21 -0
- package/template-workspace/.agents/skills/rsbuild-best-practices/SKILL.md +57 -0
- package/template-workspace/.agents/skills/rsdoctor-analysis/SKILL.md +96 -0
- package/template-workspace/.agents/skills/rsdoctor-analysis/references/command-map.md +113 -0
- package/template-workspace/.agents/skills/rsdoctor-analysis/references/common-analysis-patterns.md +190 -0
- package/template-workspace/.agents/skills/rsdoctor-analysis/references/install-rsdoctor-common.md +88 -0
- package/template-workspace/.agents/skills/rsdoctor-analysis/references/install-rsdoctor-rspack.md +138 -0
- package/template-workspace/.agents/skills/rsdoctor-analysis/references/install-rsdoctor-webpack.md +71 -0
- package/template-workspace/.agents/skills/rsdoctor-analysis/references/install-rsdoctor.md +39 -0
- package/template-workspace/.agents/skills/rsdoctor-analysis/references/rsdoctor-data-types.md +103 -0
- package/template-workspace/.agents/skills/rslib-best-practices/SKILL.md +58 -0
- package/template-workspace/.agents/skills/rslib-modern-package/SKILL.md +173 -0
- package/template-workspace/.agents/skills/rspack-best-practices/SKILL.md +70 -0
- package/template-workspace/.agents/skills/rspack-tracing/SKILL.md +75 -0
- package/template-workspace/.agents/skills/rspack-tracing/references/bottlenecks.md +47 -0
- package/template-workspace/.agents/skills/rspack-tracing/references/tracing-guide.md +38 -0
- package/template-workspace/.agents/skills/rspack-tracing/scripts/analyze_trace.js +184 -0
- package/template-workspace/.agents/skills/rstest-best-practices/SKILL.md +133 -0
- package/template-workspace/.agents/skills-lock.json +95 -0
- package/template-workspace/.github/renovate.json +29 -0
- package/template-workspace/.github/workflows/ultramodern-workspace-gates.yml.handlebars +52 -0
- package/template-workspace/.gitignore.handlebars +5 -0
- package/template-workspace/AGENTS.md +61 -0
- package/template-workspace/README.md.handlebars +11 -1
- package/template-workspace/oxfmt.config.ts +16 -0
- package/template-workspace/oxlint.config.ts +19 -0
- package/template-workspace/pnpm-workspace.yaml +24 -6
- package/template-workspace/scripts/bootstrap-agent-skills.mjs +95 -0
- package/template-workspace/scripts/check-i18n-strings.mjs +83 -0
- package/template-workspace/scripts/setup-agent-reference-repos.mjs +364 -0
- package/template-workspace/scripts/validate-ultramodern-workspace.mjs.handlebars +405 -59
- package/template/biome.json +0 -41
- package/template/src/routes/page.tsx.handlebars +0 -119
package/template/biome.json
DELETED
|
@@ -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;
|