@bleedingdev/modern-js-create 3.2.0-ultramodern.117 → 3.2.0-ultramodern.118

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 (62) hide show
  1. package/README.md +35 -125
  2. package/dist/cjs/create-package-root.cjs +1 -1
  3. package/dist/cjs/index.cjs +11 -602
  4. package/dist/cjs/locale/en.cjs +12 -19
  5. package/dist/cjs/locale/zh.cjs +12 -19
  6. package/dist/cjs/ultramodern-workspace.cjs +16 -19
  7. package/dist/esm/create-package-root.js +1 -1
  8. package/dist/esm/index.js +13 -603
  9. package/dist/esm/locale/en.js +12 -19
  10. package/dist/esm/locale/zh.js +12 -19
  11. package/dist/esm/ultramodern-workspace.js +17 -17
  12. package/dist/esm-node/create-package-root.js +1 -1
  13. package/dist/esm-node/index.js +13 -603
  14. package/dist/esm-node/locale/en.js +12 -19
  15. package/dist/esm-node/locale/zh.js +12 -19
  16. package/dist/esm-node/ultramodern-workspace.js +17 -17
  17. package/dist/types/locale/en.d.ts +0 -7
  18. package/dist/types/locale/index.d.ts +0 -14
  19. package/dist/types/locale/zh.d.ts +0 -7
  20. package/dist/types/ultramodern-workspace.d.ts +0 -1
  21. package/package.json +4 -5
  22. package/template-workspace/.github/workflows/ultramodern-workspace-gates.yml.handlebars +22 -6
  23. package/template-workspace/AGENTS.md +7 -3
  24. package/template-workspace/README.md.handlebars +5 -1
  25. package/template-workspace/lefthook.yml +18 -4
  26. package/template/.agents/skills-lock.json +0 -34
  27. package/template/.browserslistrc +0 -4
  28. package/template/.codex/hooks.json +0 -16
  29. package/template/.github/renovate.json +0 -53
  30. package/template/.github/workflows/ultramodern-gates.yml.handlebars +0 -54
  31. package/template/.gitignore.handlebars +0 -30
  32. package/template/.mise.toml.handlebars +0 -2
  33. package/template/.nvmrc +0 -2
  34. package/template/AGENTS.md +0 -23
  35. package/template/README.md +0 -111
  36. package/template/api/effect/index.ts.handlebars +0 -34
  37. package/template/api/lambda/hello.ts.handlebars +0 -6
  38. package/template/config/favicon.svg +0 -5
  39. package/template/config/public/assets/ultramodern-logo.svg +0 -6
  40. package/template/config/public/locales/cs/translation.json +0 -44
  41. package/template/config/public/locales/en/translation.json +0 -44
  42. package/template/lefthook.yml +0 -10
  43. package/template/modern.config.ts.handlebars +0 -78
  44. package/template/oxfmt.config.ts +0 -15
  45. package/template/oxlint.config.ts +0 -19
  46. package/template/package.json.handlebars +0 -69
  47. package/template/pnpm-workspace.yaml +0 -34
  48. package/template/postcss.config.mjs.handlebars +0 -6
  49. package/template/rstest.config.mts +0 -5
  50. package/template/scripts/bootstrap-agent-skills.mjs +0 -228
  51. package/template/scripts/check-i18n-strings.mjs +0 -3
  52. package/template/scripts/validate-ultramodern.mjs.handlebars +0 -658
  53. package/template/shared/effect/api.ts.handlebars +0 -17
  54. package/template/src/modern-app-env.d.ts +0 -3
  55. package/template/src/modern.runtime.ts.handlebars +0 -23
  56. package/template/src/routes/[lang]/page.tsx.handlebars +0 -209
  57. package/template/src/routes/index.css.handlebars +0 -266
  58. package/template/src/routes/layout.tsx.handlebars +0 -10
  59. package/template/tailwind.config.ts.handlebars +0 -10
  60. package/template/tests/tsconfig.json +0 -7
  61. package/template/tests/ultramodern.contract.test.ts.handlebars +0 -163
  62. package/template/tsconfig.json +0 -121
@@ -1,54 +0,0 @@
1
- name: Ultramodern Gates
2
-
3
- on:
4
- push:
5
- pull_request:
6
-
7
- permissions:
8
- contents: read
9
-
10
- defaults:
11
- run:
12
- shell: bash
13
-
14
- env:
15
- FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
16
-
17
- concurrency:
18
- group: ultramodern-gates-${{ github.workflow }}-${{ github.ref }}
19
- cancel-in-progress: true
20
-
21
- jobs:
22
- ultramodern-gates:
23
- runs-on: ubuntu-latest
24
- timeout-minutes: 20
25
- steps:
26
- - name: Harden Runner
27
- uses: step-security/harden-runner@ab7a9404c0f3da075243ca237b5fac12c98deaa5 # v2
28
- with:
29
- egress-policy: audit
30
-
31
- - name: Checkout
32
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
33
- with:
34
- fetch-depth: 1
35
- persist-credentials: false
36
-
37
- - name: Setup Node.js
38
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
39
- with:
40
- node-version: 24
41
-
42
- - name: Setup mise
43
- uses: jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2.0
44
-
45
- - name: Install Dependencies
46
- run: mise exec -- pnpm install --frozen-lockfile
47
-
48
- - name: Validate Ultramodern Contract
49
- run: mise exec -- pnpm run ultramodern:check
50
-
51
- - name: Build
52
- env:
53
- MODERN_PUBLIC_SITE_URL: http://localhost:8080
54
- run: mise exec -- pnpm run build
@@ -1,30 +0,0 @@
1
- .DS_Store
2
-
3
- .pnp
4
- .pnp.js
5
- .env.local
6
- .env.*.local
7
- .history
8
- *.log*
9
-
10
- node_modules/
11
- .yarn-integrity
12
- .pnpm-store/
13
- *.tsbuildinfo
14
- .changeset/pre.json
15
-
16
- dist/
17
- coverage/
18
- release/
19
- output/
20
- output_resource/
21
- log/
22
-
23
- .vscode/**/*
24
- !.vscode/settings.json
25
- !.vscode/extensions.json
26
- .idea/
27
-
28
- **/*/typings/auto-generated
29
-
30
- modern.config.local.*
@@ -1,2 +0,0 @@
1
- [tools]
2
- pnpm = "{{pnpmVersion}}"
package/template/.nvmrc DELETED
@@ -1,2 +0,0 @@
1
- lts/jod
2
-
@@ -1,23 +0,0 @@
1
- # UltraModern Agent Contract
2
-
3
- This project is generated for Codex-first UltraModern.js work.
4
-
5
- ## Quality Gates
6
-
7
- - `pnpm lint` runs Oxlint with the Ultracite preset.
8
- - `pnpm format` runs oxfmt.
9
- - `pnpm typecheck` runs effect-tsgo as the TypeScript checker.
10
- - `pnpm i18n:check` rejects hardcoded user-visible JSX text.
11
- - `pnpm ultramodern:check` verifies the generated contract.
12
- - Generated Codex stop hooks and subagent-stop hooks run `pnpm format && pnpm lint:fix && pnpm ultramodern:check`.
13
- - `postinstall` formats the generated tree, installs private orchestration skills when available, initializes a Git repository when needed, and installs `lefthook`. Generated `lefthook.yml` runs `pnpm format && pnpm lint:fix && pnpm ultramodern:check` on pre-commit; pre-push runs `pnpm ultramodern:check`.
14
-
15
- ## Internationalization
16
-
17
- Runtime i18n is enabled by default. Agents must put user-visible UI copy in `config/public/locales/<lang>/translation.json` and render it through `react-i18next` or `@modern-js/plugin-i18n/runtime`. Do not add hardcoded JSX text, `aria-label`, `title`, `alt`, or `placeholder` strings unless the value is a non-translatable technical token.
18
-
19
- Routes are locale-prefixed by default through `localePathRedirect: true`. Keep localized pages under `src/routes/[lang]`, use links for language switching, and preserve canonical plus `hreflang` metadata. Production builds fail unless `MODERN_PUBLIC_SITE_URL` is set, so deployed canonical URLs always use the production origin.
20
-
21
- ## Private Skills
22
-
23
- Private orchestration skills are installed automatically during `pnpm install` when the current developer is authorized for `TechsioCZ/skills`. The installer clones that private repository and copies only the allowlisted skills from `.agents/skills-lock.json`; unauthorized developers get a warning and can continue with the public contract.
@@ -1,111 +0,0 @@
1
- # UltraModern.js 3.0 Starter
2
-
3
- This generated app is a simple UltraModern.js starting point. It gives one app
4
- with localized routes, production URL metadata, optional BFF support, Rstest,
5
- Oxlint, oxfmt, and a local contract check. You can build a useful product here
6
- without deleting fake product areas, shell packages, or deployment topology.
7
-
8
- ## Setup
9
-
10
- Install the dependencies:
11
-
12
- ```bash
13
- mise install
14
- pnpm install
15
- ```
16
-
17
- ## Get Started
18
-
19
- Start the dev server:
20
-
21
- ```bash
22
- pnpm dev
23
- ```
24
-
25
- Build the app for production:
26
-
27
- ```bash
28
- MODERN_PUBLIC_SITE_URL=https://example.com pnpm build
29
- ```
30
-
31
- Preview the production build locally:
32
-
33
- ```bash
34
- pnpm serve
35
- ```
36
-
37
- Run the local gates before treating the scaffold as ready:
38
-
39
- ```bash
40
- pnpm run ultramodern:check
41
- MODERN_PUBLIC_SITE_URL=https://example.com pnpm run build
42
- ```
43
-
44
- ## What You Get
45
-
46
- The default app is intentionally monolith-friendly:
47
-
48
- | Area | Starting Point |
49
- | --- | --- |
50
- | App routes | Locale-prefixed pages under `src/routes/[lang]` |
51
- | Copy | English and Czech resources in `config/public/locales` |
52
- | Web defaults | Local favicon/logo assets, localized metadata, semantic starter markup |
53
- | Styling | App-local CSS, with Tailwind files only when selected |
54
- | Server logic | Optional BFF entrypoints under `api/` |
55
- | Tests | Rstest smoke coverage in `tests/` |
56
- | Agent workflow | Generated `AGENTS.md`, hooks, and local quality gates |
57
-
58
- Keep feature code in the app while one team owns the workflow, release train,
59
- and operational behavior. Add ordinary workspace packages for shared tokens,
60
- small UI primitives, generated clients, or domain-neutral utilities when that
61
- keeps the app easier to understand.
62
-
63
- ## Customize The App
64
-
65
- Start with the generated page and replace the placeholder cards with your first
66
- real routes, actions, and API calls. Put user-visible text in
67
- `config/public/locales/<lang>/translation.json`, then render it through
68
- `react-i18next` or `@modern-js/plugin-i18n/runtime`.
69
-
70
- The starter keeps favicon and logo assets local in `config/favicon.svg` and
71
- `config/public/assets/ultramodern-logo.svg`. Replace those files when your app
72
- has product branding. The localized page title and description live in the same
73
- translation resources as the visible UI copy.
74
-
75
- Tune the preset in `modern.config.ts`. Production builds require
76
- `MODERN_PUBLIC_SITE_URL` so canonical and `hreflang` URLs use your deployed
77
- origin. The local fallback is `http://localhost:8080`.
78
-
79
- The generated preset defaults are opt-out. Disable specific contracts via env
80
- vars when your app needs a softer lane:
81
-
82
- ```bash
83
- MODERN_BASELINE_ENABLE_MF_SSR=false
84
- MODERN_BASELINE_ENABLE_BFF_REQUEST_ID=false
85
- MODERN_BASELINE_ENABLE_TELEMETRY_EXPORTERS=false
86
- ```
87
-
88
- ## Grow When Needed
89
-
90
- Stay in the single app until a boundary has a real owner and operational reason
91
- to split. A separate package is usually enough when you only need reusable code.
92
- Consider a larger workspace boundary later when a feature needs independent
93
- ownership, rollout, rollback, incident routing, or deployment evidence.
94
-
95
- The public opinionated entrypoint is `presetUltramodern(...)`. It keeps Effect,
96
- TanStack, SSR, BFF, i18n, and quality gates available without requiring a
97
- distributed app layout on day one.
98
-
99
- ## Generated Automation
100
-
101
- The generated starter includes `.github/workflows/ultramodern-gates.yml` and
102
- `.github/renovate.json` for full app projects. The workflow runs
103
- `pnpm run ultramodern:check` and `pnpm run build` on every push and pull request
104
- with read-only permissions, commit-pinned actions, frozen installs, and
105
- StepSecurity audit-mode runner hardening. Renovate is configured for dependency
106
- dashboard review, one-day release age, grouped updates, action digest pinning,
107
- and manual approval for major upgrades.
108
-
109
- For more information, see the
110
- [UltraModern.js guide](https://bleedingdev.github.io/ultramodern.js/guides/get-started/ultramodern.html)
111
- and the [UltraModern.js documentation](https://bleedingdev.github.io/ultramodern.js/).
@@ -1,34 +0,0 @@
1
- {{#if useEffectBff}}import {
2
- Effect,
3
- HttpApiBuilder,
4
- Layer,
5
- defineEffectBff,
6
- } from '@modern-js/plugin-bff/effect-server';
7
- import type { HttpApi, HttpApiGroup } from '@modern-js/plugin-bff/effect-server';
8
- import { bffEffectApi } from '../../shared/effect/api.ts';
9
-
10
- type ApiGroups<TApi> = TApi extends HttpApi.HttpApi<string, infer TGroups> ? TGroups : never;
11
- type GreetingsHandlers = HttpApiBuilder.Handlers.FromGroup<
12
- HttpApiGroup.WithName<ApiGroups<typeof bffEffectApi>, 'greetings'>
13
- >;
14
-
15
- const greetingsLayer = HttpApiBuilder.group(
16
- bffEffectApi,
17
- 'greetings',
18
- (handlers: GreetingsHandlers) =>
19
- handlers.handle('hello', () =>
20
- Effect.succeed({
21
- message: 'Hello from Effect HttpApi',
22
- runtime: 'effect' as const,
23
- }),
24
- ),
25
- );
26
-
27
- const layer = HttpApiBuilder.layer(bffEffectApi).pipe(
28
- Layer.provide(greetingsLayer),
29
- );
30
-
31
- export default defineEffectBff({
32
- api: bffEffectApi,
33
- layer,
34
- });{{/if}}
@@ -1,6 +0,0 @@
1
- {{#if useHonoBff}}const hello = () => ({
2
- message: 'Hello from UltraModern.js BFF ({{bffRuntime}})',
3
- });
4
-
5
- export default hello;
6
- {{/if}}
@@ -1,5 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" role="img" aria-label="UltraModern.js">
2
- <rect width="64" height="64" rx="12" fill="#111827"/>
3
- <path fill="#35d399" d="M14 17h9v21c0 5 3 8 9 8s9-3 9-8V17h9v22c0 11-8 18-18 18s-18-7-18-18V17Z"/>
4
- <path fill="#ffffff" d="M28 17h8v25h-8z"/>
5
- </svg>
@@ -1,6 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 160 160" role="img" aria-label="UltraModern.js logo">
2
- <rect width="160" height="160" rx="28" fill="#111827"/>
3
- <path fill="#35d399" d="M42 36h22v56c0 22 14 34 36 34s36-12 36-34V36h22v57c0 35-24 57-58 57S42 128 42 93V36Z"/>
4
- <path fill="#ffffff" d="M76 36h20v74H76z"/>
5
- <path fill="#8be8ff" d="M112 36h18v74h-18z"/>
6
- </svg>
@@ -1,44 +0,0 @@
1
- {
2
- "home": {
3
- "bff": {
4
- "response": "Odpoved Effect HttpApi:"
5
- },
6
- "cards": {
7
- "bff": {
8
- "body": "Pridej serverovou logiku, kdyz route potrebuje typovana data nebo mutace.",
9
- "title": "BFF + Effect"
10
- },
11
- "config": {
12
- "body": "Upravuj vychozi hodnoty v modern.config.ts podle rustu aplikace.",
13
- "title": "Konfigurace presetUltramodern"
14
- },
15
- "gates": {
16
- "body": "Pred releasem spust ultramodern:check, testy, typecheck, lint a build.",
17
- "title": "Ultramodern kontroly"
18
- },
19
- "guide": {
20
- "body": "Zacni jednou aplikaci a pridej routy, API nebo balicky az kdyz pomuzou.",
21
- "title": "UltraModern.js pruvodce"
22
- }
23
- },
24
- "description": {
25
- "afterConfig": "podle rustu aplikace a udrzuj",
26
- "afterPreset": "profilem. Lad",
27
- "end": "zelene pri pridavani rout, API a workspace balicku.",
28
- "intro": "Zacni s verejnym"
29
- },
30
- "language": {
31
- "cs": "Cestina",
32
- "en": "Anglictina",
33
- "switcher": "Jazyk"
34
- },
35
- "logoAlt": "Logo UltraModern.js",
36
- "meta": {
37
- "description": "Lokalizovany starter aplikace UltraModern.js se silnymi vychozimi hodnotami pro komplexni produkty.",
38
- "title": "UltraModern.js Starter"
39
- },
40
- "name": "Jednoduchy starter aplikace",
41
- "skipLink": "Preskocit na obsah",
42
- "title": "UltraModern.js Starter"
43
- }
44
- }
@@ -1,44 +0,0 @@
1
- {
2
- "home": {
3
- "bff": {
4
- "response": "Effect HttpApi response:"
5
- },
6
- "cards": {
7
- "bff": {
8
- "body": "Add server logic when a route needs typed data or mutation handling.",
9
- "title": "BFF + Effect"
10
- },
11
- "config": {
12
- "body": "Tune generated defaults in modern.config.ts as the app grows.",
13
- "title": "Configure presetUltramodern"
14
- },
15
- "gates": {
16
- "body": "Run ultramodern:check, tests, typecheck, lint, and build before release.",
17
- "title": "Ultramodern Gates"
18
- },
19
- "guide": {
20
- "body": "Start with one app, then add routes, APIs, and packages when they help.",
21
- "title": "UltraModern.js Guide"
22
- }
23
- },
24
- "description": {
25
- "afterConfig": "as the app grows, and keep",
26
- "afterPreset": "profile. Tune",
27
- "end": "green while you add routes, APIs, and workspace packages.",
28
- "intro": "Start from the public"
29
- },
30
- "language": {
31
- "cs": "Czech",
32
- "en": "English",
33
- "switcher": "Language"
34
- },
35
- "logoAlt": "UltraModern.js Logo",
36
- "meta": {
37
- "description": "A localized UltraModern.js app starter with strong defaults for complex products.",
38
- "title": "UltraModern.js Starter"
39
- },
40
- "name": "Simple app starter",
41
- "skipLink": "Skip to content",
42
- "title": "UltraModern.js Starter"
43
- }
44
- }
@@ -1,10 +0,0 @@
1
- pre-commit:
2
- commands:
3
- fix-and-check:
4
- run: pnpm format && pnpm lint:fix && pnpm ultramodern:check
5
- stage_fixed: true
6
-
7
- pre-push:
8
- commands:
9
- check:
10
- run: pnpm ultramodern:check
@@ -1,78 +0,0 @@
1
- // @effect-diagnostics nodeBuiltinImport:off processEnv:off
2
- import { appTools, defineConfig, presetUltramodern } from '@modern-js/app-tools';
3
- import path from 'node:path';
4
- {{#if enableBff}}import { bffPlugin } from '@modern-js/plugin-bff';
5
- {{/if}}import { i18nPlugin } from '@modern-js/plugin-i18n';
6
- {{#if isTanstackRouter}}import { tanstackRouterPlugin } from '@modern-js/plugin-tanstack';
7
- {{/if}}
8
- const appId = process.env['MODERN_BASELINE_APP_ID'] || path.basename(process.cwd());
9
- const enableModuleFederationSSR = process.env['MODERN_BASELINE_ENABLE_MF_SSR'] !== 'false';
10
- const enableBffRequestId = process.env['MODERN_BASELINE_ENABLE_BFF_REQUEST_ID'] !== 'false';
11
- const enableTelemetryExporters =
12
- process.env['MODERN_BASELINE_ENABLE_TELEMETRY_EXPORTERS'] !== 'false';
13
- const telemetryFailLoudStartup = process.env['MODERN_TELEMETRY_FAIL_LOUD_STARTUP'] !== 'false';
14
- const otlpEndpoint = process.env['MODERN_TELEMETRY_OTLP_ENDPOINT'];
15
- const configuredSiteUrl = process.env['MODERN_PUBLIC_SITE_URL'];
16
- const hasConfiguredSiteUrl = typeof configuredSiteUrl === 'string' && configuredSiteUrl.length > 0;
17
- const isProductionBuild =
18
- process.env['NODE_ENV'] === 'production' || process.argv.includes('build');
19
-
20
- if (isProductionBuild && !hasConfiguredSiteUrl) {
21
- throw new Error(
22
- 'MODERN_PUBLIC_SITE_URL must be set for production builds so canonical and hreflang URLs use the deployed origin.',
23
- );
24
- }
25
-
26
- const siteUrl = hasConfiguredSiteUrl ? configuredSiteUrl : 'http://localhost:8080';
27
- const victoriaMetricsEndpoint = process.env['MODERN_TELEMETRY_VICTORIA_ENDPOINT'];
28
-
29
- // https://bleedingdev.github.io/ultramodern.js/configure/app/usage.html
30
- export default defineConfig(
31
- presetUltramodern(
32
- {
33
- {{#if enableBff}} bff: {
34
- {{#if useEffectBff}} effect: {
35
- entry: './api/effect/index',
36
- openapi: true,
37
- },
38
-
39
- {{/if}} runtimeFramework: '{{bffRuntime}}',
40
- },
41
-
42
- {{/if}} html: {
43
- meta: {
44
- viewport: 'width=device-width, initial-scale=1.0, viewport-fit=cover',
45
- },
46
- title: 'UltraModern.js Starter',
47
- },
48
- plugins: [
49
- appTools(),
50
- i18nPlugin({
51
- localeDetection: {
52
- fallbackLanguage: 'en',
53
- languages: ['en', 'cs'],
54
- localePathRedirect: true,
55
- },
56
- }),
57
- {{#if isTanstackRouter}}
58
- tanstackRouterPlugin(),
59
- {{/if}}{{#if enableBff}}
60
- bffPlugin(),
61
- {{/if}} ],
62
- source: {
63
- globalVars: {
64
- ULTRAMODERN_SITE_URL: siteUrl,
65
- },
66
- },
67
- },
68
- {
69
- appId,
70
- enableBffRequestId,
71
- enableModuleFederationSSR,
72
- enableTelemetryExporters,
73
- ...(typeof otlpEndpoint === 'string' ? { otlpEndpoint } : {}),
74
- telemetryFailLoudStartup,
75
- ...(typeof victoriaMetricsEndpoint === 'string' ? { victoriaMetricsEndpoint } : {}),
76
- },
77
- ),
78
- );
@@ -1,15 +0,0 @@
1
- import { defineConfig } from 'oxfmt';
2
- import ultracite from 'ultracite/oxfmt';
3
-
4
- export default defineConfig({
5
- extends: [ultracite],
6
- ignorePatterns: [
7
- '.agents',
8
- 'dist',
9
- 'node_modules',
10
- '.modern',
11
- '.modernjs',
12
- '**/routeTree.gen.ts',
13
- ],
14
- singleQuote: true,
15
- });
@@ -1,19 +0,0 @@
1
- import { defineConfig } from 'oxlint';
2
- import core from 'ultracite/oxlint/core';
3
- import react from 'ultracite/oxlint/react';
4
-
5
- export default defineConfig({
6
- env: {
7
- browser: true,
8
- node: true,
9
- },
10
- extends: [core, react],
11
- ignorePatterns: [
12
- '.agents',
13
- 'dist',
14
- 'node_modules',
15
- '.modern',
16
- '.modernjs',
17
- '**/routeTree.gen.ts',
18
- ],
19
- });
@@ -1,69 +0,0 @@
1
- {
2
- "name": "{{packageName}}",
3
- "version": "0.1.0",
4
- "private": true,
5
- "type": "module",
6
- "packageManager": "pnpm@{{pnpmVersion}}",
7
- "scripts": {
8
- "reset": "npx rimraf node_modules ./**/node_modules",
9
- "dev": "modern dev",
10
- "build": "modern build",
11
- "serve": "modern serve",
12
- "test": "rstest run",
13
- "typecheck": "node -e \"const fs = require('node:fs'); const { execFileSync, spawnSync } = require('node:child_process'); const bin = execFileSync('effect-tsgo', ['get-exe-path'], { encoding: 'utf8' }).trim(); if (process.platform !== 'win32') fs.chmodSync(bin, 0o755); const result = spawnSync(bin, ['--noEmit', '-p', 'tsconfig.json'], { stdio: 'inherit' }); process.exit(result.status ?? 1);\"",
14
- "i18n:check": "node ./scripts/check-i18n-strings.mjs",
15
- {{#unless isSubproject}}
16
- "skills:install": "node ./scripts/bootstrap-agent-skills.mjs",
17
- "skills:check": "node ./scripts/bootstrap-agent-skills.mjs --check",
18
- "postinstall": "oxfmt . && node ./scripts/bootstrap-agent-skills.mjs",
19
- {{/unless}}
20
- "ultramodern:check": "pnpm format:check && pnpm lint && pnpm typecheck && pnpm i18n:check && pnpm test{{#unless isSubproject}} && pnpm skills:check{{/unless}} && node ./scripts/validate-ultramodern.mjs",
21
- "format": "oxfmt .",
22
- "format:check": "oxfmt --check .",
23
- "lint": "oxlint .",
24
- "lint:fix": "oxlint . --fix"
25
- },
26
- "dependencies": {
27
- "@modern-js/plugin-i18n": "{{pluginI18nVersion}}",
28
- {{#if isTanstackRouter}} "@modern-js/plugin-tanstack": "{{pluginTanstackVersion}}",
29
- {{/if}}
30
- "@modern-js/runtime": "{{runtimeVersion}}",
31
- {{#if isTanstackRouter}} "@tanstack/react-router": "{{tanstackRouterVersion}}",
32
- {{/if}}
33
- "i18next": "{{i18nextVersion}}",
34
- "react": "{{reactVersion}}",
35
- "react-dom": "{{reactDomVersion}}",
36
- "react-i18next": "{{reactI18nextVersion}}"
37
- },
38
- "devDependencies": {
39
- "@effect/tsgo": "{{effectTsgoVersion}}",
40
- "@modern-js/adapter-rstest": "{{adapterRstestVersion}}",
41
- "@modern-js/app-tools": "{{appToolsVersion}}",
42
- "@modern-js/code-tools": "{{codeToolsVersion}}",
43
- "@modern-js/create": "{{createVersion}}",
44
- {{#if enableBff}} "@modern-js/plugin-bff": "{{pluginBffVersion}}",
45
- {{/if}} "@modern-js/tsconfig": "{{tsconfigVersion}}",
46
- "@rstest/core": "{{rstestCoreVersion}}",
47
- {{#if enableTailwind}}
48
- "@tailwindcss/postcss": "^{{tailwindPostcssVersion}}",
49
- {{/if}}
50
- "@types/node": "^20",
51
- "@types/react": "{{typesReactVersion}}",
52
- "@types/react-dom": "{{typesReactDomVersion}}",
53
- "@typescript/native-preview": "{{typescriptNativePreviewVersion}}",
54
- "happy-dom": "{{happyDomVersion}}",
55
- {{#unless isSubproject}}
56
- "lefthook": "^2.1.9",
57
- {{/unless}}
58
- "oxfmt": "{{oxfmtVersion}}",
59
- "oxlint": "{{oxlintVersion}}",
60
- {{#if enableTailwind}} "postcss": "{{postcssVersion}}",
61
- {{/if}} "rimraf": "^6.1.3"{{#if enableTailwind}},
62
- "tailwindcss": "^{{tailwindVersion}}"{{/if}},
63
- "ultracite": "{{ultraciteVersion}}"
64
- },
65
- "engines": {
66
- "node": ">=20",
67
- "pnpm": ">={{pnpmVersion}} <11.6.0"
68
- }
69
- }
@@ -1,34 +0,0 @@
1
- minimumReleaseAge: 1440
2
- minimumReleaseAgeStrict: true
3
- minimumReleaseAgeIgnoreMissingTime: false
4
- minimumReleaseAgeExclude:
5
- - '@bleedingdev/modern-js-*'
6
- - '@tanstack/react-router'
7
- - '@tanstack/router-core'
8
- - '@typescript/native-preview'
9
- - '@typescript/native-preview-*'
10
- - '@types/react'
11
- trustPolicy: no-downgrade
12
- trustPolicyIgnoreAfter: 1440
13
- blockExoticSubdeps: true
14
- engineStrict: true
15
- pmOnFail: error
16
- verifyDepsBeforeRun: error
17
- strictDepBuilds: true
18
-
19
- allowBuilds:
20
- '@swc/core': true
21
- core-js: true
22
- esbuild: true
23
- lefthook: true
24
- msgpackr-extract: true
25
- sharp: true
26
- workerd: true
27
- onlyBuiltDependencies:
28
- - '@swc/core'
29
- - core-js
30
- - esbuild
31
- - lefthook
32
- - msgpackr-extract
33
- - sharp
34
- - workerd
@@ -1,6 +0,0 @@
1
- {{#if enableTailwind}}export default {
2
- plugins: {
3
- '@tailwindcss/postcss': {},
4
- },
5
- };
6
- {{/if}}
@@ -1,5 +0,0 @@
1
- import { defineConfig } from '@rstest/core';
2
-
3
- export default defineConfig({
4
- testEnvironment: 'node',
5
- });