@zukhruf/nx 0.8.31 → 0.8.32

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 (34) hide show
  1. package/README.md +40 -43
  2. package/dist/generators/dokploy/files.d.ts +2 -0
  3. package/dist/generators/dokploy/files.d.ts.map +1 -1
  4. package/dist/generators/dokploy/files.js +96 -118
  5. package/dist/generators/dokploy/files.js.map +1 -1
  6. package/dist/generators/dokploy/generator.d.ts.map +1 -1
  7. package/dist/generators/dokploy/generator.js +12 -5
  8. package/dist/generators/dokploy/generator.js.map +1 -1
  9. package/dist/generators/init/files.d.ts.map +1 -1
  10. package/dist/generators/init/files.js +8 -2
  11. package/dist/generators/init/files.js.map +1 -1
  12. package/dist/generators/node-app/generator.d.ts.map +1 -1
  13. package/dist/generators/node-app/generator.js +8 -5
  14. package/dist/generators/node-app/generator.js.map +1 -1
  15. package/dist/generators/react-app/generator.d.ts.map +1 -1
  16. package/dist/generators/react-app/generator.js +2 -1
  17. package/dist/generators/react-app/generator.js.map +1 -1
  18. package/dist/generators/root-dependencies.d.ts +9 -0
  19. package/dist/generators/root-dependencies.d.ts.map +1 -1
  20. package/dist/generators/root-dependencies.js +7 -0
  21. package/dist/generators/root-dependencies.js.map +1 -1
  22. package/dist/generators/ui-package/files.d.ts +2 -0
  23. package/dist/generators/ui-package/files.d.ts.map +1 -1
  24. package/dist/generators/ui-package/files.js +45 -0
  25. package/dist/generators/ui-package/files.js.map +1 -1
  26. package/dist/generators/ui-package/generator.d.ts +2 -2
  27. package/dist/generators/ui-package/generator.d.ts.map +1 -1
  28. package/dist/generators/ui-package/generator.js +10 -5
  29. package/dist/generators/ui-package/generator.js.map +1 -1
  30. package/dist/generators/versions.d.ts +1 -0
  31. package/dist/generators/versions.d.ts.map +1 -1
  32. package/dist/generators/versions.js +3 -0
  33. package/dist/generators/versions.js.map +1 -1
  34. package/package.json +3 -3
package/README.md CHANGED
@@ -23,24 +23,24 @@ The monorepo standard is the set of rules that each new Nx repo follows. The gen
23
23
 
24
24
  ### Where each rule lives
25
25
 
26
- | Part of the standard | Written by | Checked by |
27
- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
28
- | Tooling: npm workspaces, one exact version of the Nx family, TypeScript 7 with the TypeScript 6 API, exact root versions, `allowScripts`, peer `overrides` | `init` ([`root-package-json.ts`](./src/generators/init/root-package-json.ts), [`versions.ts`](./src/generators/versions.ts)); `preset` refuses another package manager; `node-app` adds the sdk-it peer `overrides` | `manifest/nx-family-pinned` ([`@zukhruf/eslint`](../eslint/README.md#every-other-manifest)); [`NpmrcPolicy`](../git-hooks/README.md#decide-how-npm-installs-in-the-repo) (`legacy-peer-deps=false`, `strict-allow-scripts=true`); [`LockfileSync`](../git-hooks/README.md#keep-package-lockjson-in-step-with-each-packagejson) |
29
- | Versions as LTS aliases: `.nvmrc` `lts/*`, `node:lts-*` images, `npm@latest`, no `engines` and no `packageManager` | `init` ([`files.ts`](./src/generators/init/files.ts)); the Dockerfiles of `node-app` and `prisma`; the workflows of `dokploy` | [`NoNumericPins`](../git-hooks/README.md#refuse-a-node-or-npm-version-written-as-a-number) |
30
- | Root files and the layout `apps/`, `packages/`, `tools/` | `init` and `preset`: [What the generators write](#what-the-generators-write) | the `Format` step for the root files; `NpmrcPolicy` for `.npmrc` |
31
- | TypeScript: the Bundler base, and project tsconfigs that write to `out-tsc` with `rootDir: "src"` | `init` (base and solution file); the app generators and `prisma` (project tsconfigs) | `zukhruf/no-enum` |
32
- | Nx: `nx.json` keys, plugins, target defaults, generator defaults; targets in the `nx` key of the project's `package.json` | `init` ([`nx-json.ts`](./src/generators/init/nx-json.ts)); each app generator adds its wiring: [What only an app generator writes](#what-only-an-app-generator-writes) | the `format`, `test` and `lint` areas, which no default may replace ([ADR 0001](./docs/adr/0001-inferred-targets-not-copied-defaults.md)) |
33
- | Format: `.prettierrc` and `.prettierignore` | `init`; `react-app` adds `prettier-plugin-tailwindcss` | `format:check`; the `Format` step |
34
- | Lint: the root and the project `eslint.config.mjs` | `init` (root); each app generator and `prisma` (project) | the `lint` area; the configs of `@zukhruf/eslint` |
35
- | Git hooks: `Sync`, `Format`, the manifest steps, `Build` on pre-push, `NxReleaseScope` on commit-msg | `init` | — |
36
- | Tests: `node:test` everywhere, Vitest in a Vite app, no lifecycle hooks, `test:docker` for Docker tests | the `test` area; `react-app` (the Vitest block and its `test` target); `prisma` (the Docker test and the tag) | `zukhruf/no-other-test-runner`, `zukhruf/no-test-lifecycle-hooks` |
37
- | Backend: Hono, terminus, evlog, zod env, sdk-it client, one ESM bundle, Dockerfile, build sha | `node-app` | the `hono` and `env` configs; [`DockerfileInstallsFromLockfile`](../git-hooks/README.md#install-from-the-lockfile-in-a-dockerfile) |
38
- | Web: React Router in data mode, Vite, Tailwind, React Compiler, Vitest; a UI library | `react-app`; `ui-package` | `@zukhruf/eslint/react`, the `react-router` and `tailwind` configs |
39
- | Mobile: Expo | no generator: [Mobile with Expo](#mobile-with-expo) | [`@zukhruf/eslint/react-native`](../eslint/README.md#react-native-hermes) |
40
- | Pair of a web app and a backend | `pair` | — |
41
- | Database: a Prisma 7 package on Postgres | `prisma` | the `prisma` area |
42
- | Agent workflow: the commands in `AGENTS.md` | `init` (`AGENTS.md`, `CLAUDE.md`) | — |
43
- | Delivery: CI, deploy, encrypted OpenTofu state applied only by CI | `dokploy` | the `opentofu` area (`typecheck` with no secret, no `apply` target, [ADR 0007](./docs/adr/0007-opentofu-targets-from-environments-with-no-apply.md)) |
26
+ | Part of the standard | Written by | Checked by |
27
+ | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
28
+ | Tooling: npm workspaces, one exact version of the Nx family, TypeScript 7 with the TypeScript 6 API, exact root versions, `allowScripts`, peer `overrides` | `init` ([`root-package-json.ts`](./src/generators/init/root-package-json.ts), [`versions.ts`](./src/generators/versions.ts)); `preset` refuses another package manager; `node-app` adds the sdk-it peer `overrides` | `manifest/nx-family-pinned` ([`@zukhruf/eslint`](../eslint/README.md#every-other-manifest)); [`NpmrcPolicy`](../git-hooks/README.md#decide-how-npm-installs-in-the-repo) (`legacy-peer-deps=false`, `strict-allow-scripts=true`); [`LockfileSync`](../git-hooks/README.md#keep-package-lockjson-in-step-with-each-packagejson); [`OneRuntimeCopy`](../git-hooks/README.md#keep-one-copy-of-each-runtime-package) (one `react`, `react-dom` and `zod`); [`InstallScriptsReviewed`](../git-hooks/README.md#decide-each-install-script) (`allowScripts` decides each install script, for every platform); `manifest/no-root-script` (only `prepare`); `manifest/no-globstar-workspace` (single-`*` workspace globs, no `**`) |
29
+ | Versions as LTS aliases: `.nvmrc` `lts/*`, `node:lts-*` images, `npm@latest`, no `engines` and no `packageManager` | `init` ([`files.ts`](./src/generators/init/files.ts)); the Dockerfiles of `node-app` and `prisma`; the workflows of `dokploy` | [`NoNumericPins`](../git-hooks/README.md#refuse-a-node-or-npm-version-written-as-a-number) |
30
+ | Root files and the layout `apps/`, `packages/`, `tools/` | `init` and `preset`: [What the generators write](#what-the-generators-write) | the `Format` step for the root files; `NpmrcPolicy` for `.npmrc` |
31
+ | TypeScript: the Bundler base, and project tsconfigs that write to `out-tsc` with `rootDir: "src"` | `init` (base and solution file); the app generators and `prisma` (project tsconfigs) | `zukhruf/no-enum`; [`zukhruf/no-cross-project-paths`](../eslint/README.md#configs) (no `paths` alias between projects) |
32
+ | Nx: `nx.json` keys, plugins, target defaults, generator defaults; targets in the `nx` key of the project's `package.json` | `init` ([`nx-json.ts`](./src/generators/init/nx-json.ts)); each app generator adds its wiring: [What only an app generator writes](#what-only-an-app-generator-writes) | the `format`, `test` and `lint` areas, which no default may replace ([ADR 0001](./docs/adr/0001-inferred-targets-not-copied-defaults.md)); [`zukhruf/nx-project-json`](../eslint/README.md#configs): `no-missing-command-executor` (a shell target has an executor), `no-depends-on-project` (build order from the import graph), `no-duplicate-nx-key` (a key in `project.json` or in the `nx` key, not both) |
33
+ | Format: `.prettierrc` and `.prettierignore` | `init`; `react-app` adds `prettier-plugin-tailwindcss` | `format:check`; the `Format` step |
34
+ | Lint: the root and the project `eslint.config.mjs` | `init` (root); each app generator and `prisma` (project) | the `lint` area; the configs of `@zukhruf/eslint` |
35
+ | Git hooks: `Sync`, `Format`, the manifest and lockfile steps, `Build` on pre-push, `NxReleaseScope` on commit-msg | `init` | — |
36
+ | Tests: `node:test` everywhere, Vitest in a Vite app, no lifecycle hooks, `test:docker` for Docker tests | the `test` area; `react-app` (the Vitest block and its `test` target); `prisma` (the Docker test and the tag) | `zukhruf/no-other-test-runner`, `zukhruf/no-test-lifecycle-hooks` |
37
+ | Backend: Hono, terminus, evlog, zod env, sdk-it client, one ESM bundle, Dockerfile, build sha | `node-app` | the `hono` and `env` configs; [`DockerfileInstallsFromLockfile`](../git-hooks/README.md#install-from-the-lockfile-in-a-dockerfile) |
38
+ | Web: React Router in data mode, Vite, Tailwind, React Compiler, Vitest; a UI library | `react-app`; `ui-package` | `@zukhruf/eslint/react`, the `react-router` and `tailwind` configs |
39
+ | Mobile: Expo | no generator: [Mobile with Expo](#mobile-with-expo) | [`@zukhruf/eslint/react-native`](../eslint/README.md#react-native-hermes) |
40
+ | Pair of a web app and a backend | `pair` | — |
41
+ | Database: a Prisma 7 package on Postgres | `prisma` | the `prisma` area |
42
+ | Agent workflow: the commands in `AGENTS.md` | `init` (`AGENTS.md`, `CLAUDE.md`) | — |
43
+ | Delivery: CI, deploy, encrypted OpenTofu state applied only by CI | `dokploy` | the `opentofu` area (`typecheck` with no secret, no `apply` target, [ADR 0007](./docs/adr/0007-opentofu-targets-from-environments-with-no-apply.md)) |
44
44
 
45
45
  ### Decisions and their reasons
46
46
 
@@ -61,14 +61,9 @@ The monorepo standard is the set of rules that each new Nx repo follows. The gen
61
61
  No generator writes these and no check runs them. Each one cost time once.
62
62
 
63
63
  - Pass Nx flags through `npx nx`, never `npm exec`: npm eats the flags.
64
- - Review each install script before you name it in `allowScripts`, and name a package with no version. The reasons so far: `esbuild: true`, because its postinstall links the native binary over the Node wrapper and downloads it when the platform package is missing; `nx: false`, because its postinstall only updates the Nx Cloud client and exits 0 on each error, and no repo uses Nx Cloud; `unrs-resolver`, `@parcel/watcher` and `fsevents` are native fallbacks. Some scripts block only on Linux (`dtrace-provider` under `eas-cli`, `protobufjs`), so read the list from a Linux install too: `docker run node:lts-bookworm-slim … npm ci`.
65
- - Keep one copy of each shared runtime package, and run `npm ls <pkg>` after each generator. When tooling pins an older major (`zod` 3 for `@expo/cli`), declare the runtime major as a root `devDependency`, so npm hoists it and nests the old one.
64
+ - Read each install script before you name it in `allowScripts`, and name a package with no version. [`InstallScriptsReviewed`](../git-hooks/README.md#decide-each-install-script) stops a script with no decision, on every platform, but not a wrong decision. The reasons so far: `esbuild: true`, because its postinstall links the native binary over the Node wrapper and downloads it when the platform package is missing; `nx: false`, because its postinstall only updates the Nx Cloud client and exits 0 on each error, and no repo uses Nx Cloud; `unrs-resolver`, `@parcel/watcher` and `fsevents` are native fallbacks.
66
65
  - Add a package only for a real second caller.
67
- - No `paths` aliases between projects. Projects import each other by package name, and `nx sync` writes the references.
68
- - Never set the same key in a `project.json` and in the `nx` key of a `package.json`.
69
- - A shell target sets a top-level `command`, or `executor: "nx:run-commands"`. `options.command` with no executor becomes `nx:noop`, and the target passes without running.
70
- - Build order comes from the import graph. Write no `dependsOn` on a named project.
71
- - Fix each lint finding; no `warn` for later. A ban that names one repo goes in that repo's config, and a rule for each repo goes in `@zukhruf/eslint`. An ESLint config does not read the project graph when it loads.
66
+ - Fix each lint finding; no `warn` for later. A ban that names one repo goes in that repo's config, and a rule for each repo goes in `@zukhruf/eslint`. An ESLint config does not read the project graph when it loads ([ADR 0009 of `@zukhruf/eslint`](../eslint/docs/adr/0009-project-config-rules-read-the-file-not-the-graph.md) says why no rule checks it).
72
67
  - No lint-staged: it put the files of other sessions into commits. Never `--no-verify` without asking.
73
68
  - Test fixtures (a Docker database, an HTTP server, a temp folder, msw) come from `@zukhruf/testing`, and `await using` cleans them up.
74
69
  - A React component of a library package is tested with `node:test`: the test registers a DOM with `@happy-dom/global-registrator`, then imports `react`, `react-dom/client` and the component from the built package. Node cannot load `.tsx`.
@@ -101,12 +96,12 @@ No generator writes a mobile app yet. This is the Nx 24 shape of 2026-10-29:
101
96
  - A phantom TS2307 or TS6305 comes from a stale `.tsbuildinfo`. Run `nx reset`; do not edit the references.
102
97
  - An incremental `typecheck` can miss a `.tsx` call-site error after a move, and `tsc` does not see a bundler break. Verify with the real build.
103
98
  - After you delete a workspace, delete its `extraneous` entries from `package-lock.json`. A commit that adds a package carries its lockfile entries and its root tsconfig reference.
104
- - `@nx/esbuild`: `thirdParty` decides what is bundled; `additionalEntryPoints` duplicate shared classes and break `instanceof`; an asset that the root `.gitignore` matches is dropped; a failed watch rebuild deletes the output. `generatePackageJson` throws in a TS solution workspace: use `prune-lockfile`.
99
+ - `@nx/esbuild`: `thirdParty` decides what is bundled; `additionalEntryPoints` duplicate shared classes and break `instanceof`; an asset that the root `.gitignore` matches is dropped; a failed watch rebuild deletes the output. `generatePackageJson` throws in a TS solution workspace: use `prune-lockfile` (`zukhruf/no-generate-package-json` of [`@zukhruf/eslint`](../eslint/README.md) reports it).
105
100
  - `nx migrate --create-commits` runs `git add -A`. Read `migrations.json` first. `parallel` in `nx.json` takes only a number.
106
101
  - A generator of Nx rewrites root files through an AST: it can drop the comments of `eslint.config.mjs` and add `@swc/helpers` again. Stage before a generator of Nx, and diff after.
107
102
  - Nx applies a sync only in an interactive run. A piped or CI run stops with "The workspace is out of sync": run `npx nx sync`.
108
103
  - When Nx detects an AI agent, it holds the output of a task until the task ends. Add `--output-style=stream-without-prefixes` to read a server while it runs.
109
- - With no green CI run yet, `nrwl/nx-set-shas` falls back to `HEAD~1`, and `affected` sees only the last commit. The generated CI runs `run-many` when `noPreviousBuild` is set.
104
+ - With no green CI run yet, `nrwl/nx-set-shas` falls back to `HEAD~1`, and `affected` sees only the last commit. zukhruf's `affected-range` action then takes the empty tree as the base, so every project is affected.
110
105
  - On a Mac, Microsoft Defender has killed the `commit-msg` and `pre-push` hooks. A `pre-push` that dies with SIGKILL is that, not the build.
111
106
  - The macOS firewall in stealth mode drops LAN connections to `node`, even from the same Mac, so Expo's LAN URL times out in Expo Go. On the simulator, start with `-- --ios --localhost`.
112
107
  - The Claude Code TypeScript LSP finds no `tsserver.js` under the TypeScript 6 alias, so it shows no diagnostics. Use `nx run <project>:typecheck`.
@@ -1118,12 +1113,12 @@ Each schema sets `additionalProperties: false`. The project name is the package
1118
1113
 
1119
1114
  ### What each app generator writes
1120
1115
 
1121
- | Generator | Files of the project | Root and nx.json |
1122
- | ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1123
- | `node-app` | `src/server.ts` (terminus, the `@nx-target-name: serve` header), `app.ts` (Hono on `/api`), `env.ts` (zod, `BUILD_SHA`), `logging.ts` (evlog), `startup.ts`, `routes/healthz.route.ts`, `app.test.ts`; `.env.example` (always) and `.env` (when missing); `Dockerfile`; `sdk-it.config.ts` and the client stub in `.sdk-it/`; the tsconfigs; `eslint.config.mjs` with `hono`, Modern Node and the env settings | `@nx/node`, `@nx/esbuild`, `esbuild`, `@sdk-it/cli`; `.dockerignore` when missing; the client in `workspaces`; the `.sdk-it` lines of `.gitignore` and `.prettierignore`; the `@nx/esbuild:esbuild` default; `^sdk` in `build`, `dev`, `typecheck` and `test` (`["...", "^sdk"]`); the sdk-it exclusion of `production`; `generators["@nx/node"]` |
1124
- | `react-app` | `index.html`, `src/main.tsx` (React Router 8 in data mode), `src/app/app.tsx` and its test, `src/styles.css` (Tailwind with the sync markers), `vite.config.ts` (the React Compiler, Tailwind, brotli and gzip, the portless and `/api` dev proxy, the `test` block), `tsconfig.app.json` writing to `out-tsc`, `tsconfig.spec.json`, `eslint.config.mjs` with `@zukhruf/eslint/react`, `react-router` and `tailwind` | `@nx/react`, `@nx/vite`, `@nx/vitest` with `testMode: "run"`, Vite, Vitest, Testing Library, happy-dom, Tailwind, the 4 React lint plugins; `prettier-plugin-tailwindcss` in `.prettierrc`; the Tailwind sync generator in `sync` and in `build`, `dev`, `serve`; `generators["@nx/react"]`; the `test` default as it was |
1125
- | `pair` | in the web: `src/api.ts` and the client, `zod` and `fast-content-type-parse` in its manifest; in the api: `src/routes/ui.route.ts`, its mount in `app.ts`, and the Dockerfile again with the web build | — |
1126
- | `ui-package` | `package.json` with the `development` export of `src/index.ts`, `vite.config.ts` (a library with `vite-plugin-dts`), the tsconfigs, `eslint.config.mjs` with `@zukhruf/eslint/react` and `tailwind`, `tests/public-api.test.mjs` | the React root packages |
1116
+ | Generator | Files of the project | Root and nx.json |
1117
+ | ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1118
+ | `node-app` | `src/server.ts` (terminus, the `@nx-target-name: serve` header), `app.ts` (Hono on `/api`), `env.ts` (zod, `BUILD_SHA`), `logging.ts` (evlog), `startup.ts`, `routes/healthz.route.ts`, `app.test.ts`; `.env.example` (always) and `.env` (when missing); `Dockerfile`; `sdk-it.config.ts` and the client stub in `.sdk-it/`; the tsconfigs; `eslint.config.mjs` with `hono`, Modern Node and the env settings | `@nx/node`, `@nx/esbuild`, `esbuild`, `@sdk-it/cli`; `.dockerignore` when missing; the client in `workspaces`; the `.sdk-it` lines of `.gitignore` and `.prettierignore`; the `@nx/esbuild:esbuild` default; `^sdk` in `build`, `dev`, `typecheck` and `test` (`["...", "^sdk"]`); the sdk-it exclusion of `production`; `generators["@nx/node"]` |
1119
+ | `react-app` | `index.html`, `src/main.tsx` (React Router 8 in data mode), `src/app/app.tsx` and its test, `src/styles.css` (Tailwind with the sync markers), `vite.config.ts` (the React Compiler, Tailwind, brotli and gzip, the portless and `/api` dev proxy, the `test` block), `tsconfig.app.json` writing to `out-tsc`, `tsconfig.spec.json`, `eslint.config.mjs` with `@zukhruf/eslint/react`, `react-router` and `tailwind` | `@nx/react`, `@nx/vite`, `@nx/vitest` with `testMode: "run"`, Vite, Vitest, Testing Library, happy-dom, Tailwind, the 4 React lint plugins; `prettier-plugin-tailwindcss` in `.prettierrc`; the Tailwind sync generator in `sync` and in `build`, `dev`, `serve`; `generators["@nx/react"]`; the `test` default as it was |
1120
+ | `pair` | in the web: `src/api.ts` and the client, `zod` and `fast-content-type-parse` in its manifest; in the api: `src/routes/ui.route.ts`, its mount in `app.ts`, and the Dockerfile again with the web build | — |
1121
+ | `ui-package` | `package.json` with the `development` export of `src/index.ts`, `src/package-name.tsx` (a `PackageName` component), `vite.config.ts` (a library with `vite-plugin-dts`), the tsconfigs, `eslint.config.mjs` with `@zukhruf/eslint/react` and `tailwind`, `tests/public-api.test.mjs`, `tests/package-name.test.mjs` (renders `PackageName` in happy-dom under `node:test`; `@happy-dom/global-registrator` and `react-dom` in its `devDependencies`) | the React root packages; `fsevents: false` in `allowScripts` |
1127
1122
 
1128
1123
  The targets of a project are in the `nx` key of its `package.json`: the generators pass `useProjectJson: false` and `addPlugin: true` to Nx, so Nx 23 and 24 write the same shape. `format`, `lint`, `test` (node) and `typecheck` come from the inference plugins; `node-app` writes `build` (one ESM esbuild bundle, each npm package external, with a `require` banner), `serve` (with `NODE_ENV=development`), `portless` (`<app>.<scope>`), `docker:build` and `docker:run`, and keeps `prune-lockfile` of `@nx/node`. `react-app` writes `portless` and the `test` target of the project (`^sdk`, `NODE_ENV=test`).
1129
1124
 
@@ -1136,7 +1131,7 @@ The targets of a project are in the `nx` key of its `package.json`: the generato
1136
1131
  - The packages of the apps have exact versions in `appPackageVersions` of `src/generators/versions.ts`, the latest on 2026-11-18: Hono 4.13, `@hono/node-server` 2.1, evlog 2.35, zod 4.6, sdk-it 0.46.11, esbuild 0.28, React 19.3, React Router 8.5, Vite 8.3, Vitest 5.1, Tailwind 4.3, `@vitejs/plugin-react` 6.3, `@rolldown/plugin-babel` 0.3, `vite-plugin-dts` 5.1.
1137
1132
  - An app generator reads the root package names before the generator of Nx runs. After it, a package of the app that was not there gets its pin, also over the version that Nx wrote; a version that was there stays. Each root `nx` and `@nx/*` gets `nxVersion`.
1138
1133
  - Residue goes when the run added it: the swc toolchain, `eslint-plugin-import`, `eslint-plugin-jsx-a11y` and `eslint-plugin-react` (they cap ESLint below 10), the root `react` and `react-dom` (each project declares its own), `@vitest/ui`, and for `ui-package` `@babel/core`, `@babel/preset-react`, `ajv` and the root `vite-plugin-dts`.
1139
- - `allowScripts`: `esbuild: true`, `@parcel/watcher: false` and `fsevents: false` from `node-app`. A decision that is there stays.
1134
+ - `allowScripts`: `esbuild: true`, `@parcel/watcher: false` and `fsevents: false` from `node-app`; `fsevents: false` from `ui-package`, because its `vite` brings it. A decision that is there stays.
1140
1135
  - `overrides`: `@juristr/nx-tailwind-sync` takes the one `@nx/devkit` (#4532); `@sdk-it/cli` and `@sdk-it/hono` take the root `typescript`, because sdk-it peers on `^6.0.3` and the TypeScript 6 alias is 6.0.2.
1141
1136
 
1142
1137
  ### Where the Nx plugins come from
@@ -1284,15 +1279,17 @@ interface DokployOptions {
1284
1279
 
1285
1280
  ### What the dokploy generator writes
1286
1281
 
1287
- | File | What it holds |
1288
- | ---------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1289
- | `infra/project.json` | `@<scope>/infra`; `@zukhruf/nx/opentofu` gives its targets, and the generator lists that plugin after `@zukhruf/nx/format` in `nx.json` |
1290
- | `infra/compose.dokploy.yml` | the app image on `dokploy-network` with the Traefik labels (`web` redirects, `websecure` with Let's Encrypt); with `database`, `postgres:18-alpine` and the one-shot `migrate`, which the app waits for |
1291
- | `infra/.env.example`, `infra/.gitignore` | the secrets of a local run, `TF_VAR_dokploy_api_key=${DOKPLOY_API_KEY}` (and `TF_VAR_ghcr_pull_token`); the plaintext backups, `.terraform/` and `tfplan` |
1292
- | `src/environments/production/*.tf` | `versions`, `backend` (local, the encrypted state committed), `encryption` (pbkdf2 and aes_gcm, enforced), `providers`, `dns`, `main`, `outputs` (`dokploy_api`, `compose_id`, `host`), `variables`, `registry` |
1293
- | `.terraform.lock.hcl` | the providers for `linux_amd64` and `darwin_arm64`, so `typecheck` (`-lockfile=readonly`) passes on CI and a Mac |
1294
- | `.github/workflows/deploy.yml` | gate, image (a matrix: the app and `migrate`), promote to `:latest`, infra (`tofu-apply.yml`), release (`dokploy-deploy`, `wait-for-health`) |
1295
- | `.github/workflows/ci.yml` | only when missing: setup-workspace, OpenTofu, nx-set-shas, `sync:check` and `prettier --check` in parallel, then `nx affected -t lint typecheck test build` |
1282
+ | File | What it holds |
1283
+ | ---------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1284
+ | `infra/project.json` | `@<scope>/infra`; `@zukhruf/nx/opentofu` gives its targets, and the generator lists that plugin after `@zukhruf/nx/format` in `nx.json` |
1285
+ | `infra/compose.dokploy.yml` | the app image on `dokploy-network` with the Traefik labels (`web` redirects, `websecure` with Let's Encrypt); with `database`, `postgres:18-alpine` and the one-shot `migrate`, which the app waits for |
1286
+ | `infra/.env.example`, `infra/.gitignore` | the secrets of a local run, `TF_VAR_dokploy_api_key=${DOKPLOY_API_KEY}` (and `TF_VAR_ghcr_pull_token`); the plaintext backups, `.terraform/` and `tfplan` |
1287
+ | `src/environments/production/*.tf` | `versions`, `backend` (local, the encrypted state committed), `encryption` (pbkdf2 and aes_gcm, enforced), `providers`, `dns`, `main`, `outputs` (`dokploy_api`, `compose_id`, `host`), `variables`, `registry` |
1288
+ | `.terraform.lock.hcl` | the providers for `linux_amd64` and `darwin_arm64`, so `typecheck` (`-lockfile=readonly`) passes on CI and a Mac |
1289
+ | `.prettierignore`, `.nxignore` | lines added when missing: `.terraform`, `tfplan` and the state for Prettier; the state for Nx, so the state commit of an apply makes no project affected |
1290
+ | `.github/workflows/deploy.yml` | only when missing: gate (`tested-commit`, `affected-range` since the last deploy, `affected-projects`), image (`ghcr-image`, a matrix: the app and `migrate`), promote to `:latest` (`ghcr-promote`), infra (`tofu-apply.yml`), release (`dokploy-deploy`, `wait-for-health`) |
1291
+ | `.github/workflows/ci.yml` | only when missing: setup-workspace, OpenTofu in the background, `affected-range`, then `nx affected -t lint typecheck test build` beside `sync:check`, `prettier --check` and zizmor |
1292
+ | `.github/zizmor.yml` | only when missing: tags and `@main` allowed (`ref-pin`), and the `workflow_run` of `deploy.yml` |
1296
1293
 
1297
1294
  The compose reads `PUBLIC_HOST`, and with `database` `POSTGRES_PASSWORD` and `CONNECTION_STRING`, from the env that `main.tf` stores with it. Postgres 18 keeps its data under `/var/lib/postgresql/18/docker`, so the volume is mounted at `/var/lib/postgresql`. Each variable refuses an empty value, because CI renders an unset secret as `""`. The stack has no `terraform_data` deployment: the release job deploys after a new image, after an apply that changed the stack, and while the infra project is affected since the last successful deploy, and it checks the build sha only after a new image. `.prettierignore` gets `.terraform`, `tfplan` and the state.
1298
1295
 
@@ -3,6 +3,7 @@ import type { Registry, Stack } from './generator.ts';
3
3
  export declare const infraRoot = "infra";
4
4
  export declare const gitignore = "# State is committed ENCRYPTED (git is the state store) at\n# src/terraform.tfstate. Only unencrypted backups and lock files are ignored.\n#\n# CRITICAL: *.backup files are PLAINTEXT and must NEVER be committed.\n*.backup\n.terraform.tfstate.lock.info\n\n# Provider plugins / module cache\n.terraform/\n\n# Saved plans are regenerated by preview and freshness-guarded.\ntfplan\n\n# tfvars can carry secrets\n*.tfvars\n*.tfvars.json\n\n# Crash logs\ncrash.log\ncrash.*.log\n\n# Local overrides\noverride.tf\noverride.tf.json\n*_override.tf\n*_override.tf.json\n";
5
5
  export declare const prettierignore = ".terraform\ntfplan\ninfra/src/terraform.tfstate\n";
6
+ export declare const nxignore = "infra/src/terraform.tfstate\n";
6
7
  export declare function envExample(stack: Stack): string;
7
8
  export declare function composeYml(stack: Stack): string;
8
9
  export declare function versionsTf(stack: Stack): string;
@@ -16,6 +17,7 @@ export declare function mainTf(stack: Stack): string;
16
17
  export declare function registryTf(stack: Stack, registry: Registry): string;
17
18
  export declare function outputsTf(stack: Stack): string;
18
19
  export declare function variablesTf(stack: Stack): string;
20
+ export declare const zizmorYml = "# zizmor (https://docs.zizmor.sh) audits the workflows in CI. Each entry\n# here is a choice, with its reason.\nrules:\n unpinned-uses:\n config:\n policies:\n # Tags and @main, as zukhruf's actions are called, not commit hashes.\n '*': ref-pin\n dangerous-triggers:\n ignore:\n # Runs only after a successful push run of CI on main, and checks out\n # main, never the code of the run that triggered it.\n - deploy.yml\n";
19
21
  export declare function ciYml(stack: Stack): string;
20
22
  export declare function deployYml(stack: Stack): string;
21
23
  //# sourceMappingURL=files.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../../src/generators/dokploy/files.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAQtD,wCAAwC;AACxC,eAAO,MAAM,SAAS,UAAU,CAAC;AAkBjC,eAAO,MAAM,SAAS,qjBA0BrB,CAAC;AAIF,eAAO,MAAM,cAAc,sDAG1B,CAAC;AAEF,wBAAgB,UAAU,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAmC/C;AASD,wBAAgB,UAAU,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CA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G/C;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAiB/C;AAED,6FAA6F;AAC7F,wBAAgB,OAAO,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAS5C;AAED,eAAO,MAAM,SAAS,oOAOrB,CAAC;AAEF,wBAAgB,YAAY,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAiCjD;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAyBhD;AAED,wBAAgB,KAAK,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CA0B1C;AAED,wBAAgB,MAAM,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAqE3C;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAgBnE;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAgB9C;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CA2BhD;AAED,eAAO,MAAM,SAAS,mdAarB,CAAC;AAEF,wBAAgB,KAAK,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAuE1C;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CA4M9C"}
@@ -45,6 +45,12 @@ export const prettierignore = `.terraform
45
45
  tfplan
46
46
  ${infraRoot}/src/terraform.tfstate
47
47
  `;
48
+ // tofu-apply.yml commits the reconciled state after the deploy run that
49
+ // applied it, and affected-range bases the next run on that run's commit, so
50
+ // Nx must not see the state, or every deploy would ship the infra project
51
+ // again (#4695).
52
+ export const nxignore = `${infraRoot}/src/terraform.tfstate
53
+ `;
48
54
  export function envExample(stack) {
49
55
  const record = stack.host.kind === 'dns'
50
56
  ? ` and manages the\n# ${stack.host.host} record`
@@ -436,6 +442,20 @@ variable "dokploy_api_key" {
436
442
  }
437
443
  ${registry}`;
438
444
  }
445
+ export const zizmorYml = `# zizmor (https://docs.zizmor.sh) audits the workflows in CI. Each entry
446
+ # here is a choice, with its reason.
447
+ rules:
448
+ unpinned-uses:
449
+ config:
450
+ policies:
451
+ # Tags and @main, as zukhruf's actions are called, not commit hashes.
452
+ '*': ref-pin
453
+ dangerous-triggers:
454
+ ignore:
455
+ # Runs only after a successful push run of CI on main, and checks out
456
+ # main, never the code of the run that triggered it.
457
+ - deploy.yml
458
+ `;
439
459
  export function ciYml(stack) {
440
460
  return `name: CI
441
461
 
@@ -446,13 +466,13 @@ on:
446
466
  branches: [main]
447
467
 
448
468
  # A new push to a pull request replaces its run; every commit on main keeps
449
- # its own run.
469
+ # its own run, because the deploy ships a commit only after CI passes for it.
450
470
  concurrency:
451
- group: \${{ github.workflow }}-\${{ github.event_name == 'pull_request' && github.ref || github.sha }}
471
+ group: \${{ github.workflow }}-\${{ case(github.event_name == 'pull_request', github.ref, github.sha) }}
452
472
  cancel-in-progress: \${{ github.event_name == 'pull_request' }}
453
473
 
454
474
  permissions:
455
- # nx-set-shas reads this workflow's runs to find the last green commit.
475
+ # affected-range reads this workflow's runs to find the last green commit.
456
476
  actions: read
457
477
  contents: read
458
478
 
@@ -464,39 +484,48 @@ jobs:
464
484
  uses: actions/checkout@v7
465
485
  with:
466
486
  fetch-depth: 0
467
-
468
- - name: Set up the workspace
469
- uses: JanuaryLabs/zukhruf/.github/actions/setup-workspace@main
487
+ persist-credentials: false
470
488
 
471
489
  # ${stack.projectName}:typecheck runs tofu fmt and validate.
472
490
  - name: Set up OpenTofu
491
+ id: tofu
492
+ background: true
473
493
  uses: opentofu/setup-opentofu@v2
474
494
  with:
475
495
  tofu_version: latest
476
496
  tofu_wrapper: false
477
497
 
478
- - name: Find what changed since the last green commit
479
- id: shas
480
- uses: nrwl/nx-set-shas@v5
498
+ - name: Set up the workspace
499
+ uses: JanuaryLabs/zukhruf/.github/actions/setup-workspace@main
481
500
 
482
- - parallel:
483
- - name: Check Nx workspace sync
484
- run: npx nx sync:check
501
+ # Before the first green run, everything counts as changed.
502
+ - name: Find what changed
503
+ uses: JanuaryLabs/zukhruf/.github/actions/affected-range@main
485
504
 
486
- - name: Check formatting
487
- run: npx prettier --check .
505
+ # The checks of the whole tree run beside the affected targets.
506
+ - name: Check Nx workspace sync
507
+ background: true
508
+ run: npx nx sync:check
509
+
510
+ - name: Check formatting
511
+ background: true
512
+ run: npx prettier --check .
513
+
514
+ - name: Audit the workflows
515
+ background: true
516
+ uses: zizmorcore/zizmor-action@v0.8.1
517
+ with:
518
+ advanced-security: false
519
+ annotations: true
520
+
521
+ - name: Wait for OpenTofu
522
+ wait: tofu
488
523
 
489
- # With no green commit yet, nx-set-shas falls back to HEAD~1 and affected
490
- # would see only the last commit, so the first green run checks it all.
491
524
  - name: Lint, type check, test and build what changed
492
- env:
493
- NO_PREVIOUS_BUILD: \${{ steps.shas.outputs.noPreviousBuild }}
494
- run: |
495
- if [ "$NO_PREVIOUS_BUILD" = "true" ]; then
496
- npx nx run-many -t lint typecheck test build
497
- else
498
- npx nx affected -t lint typecheck test build
499
- fi
525
+ run: npx nx affected -t lint typecheck test build
526
+
527
+ - name: Wait for the checks of the whole tree
528
+ wait-all:
500
529
  `;
501
530
  }
502
531
  export function deployYml(stack) {
@@ -518,9 +547,6 @@ export function deployYml(stack) {
518
547
  const promoteMatrix = images
519
548
  .map(({ image }) => ` - image: ${image}`)
520
549
  .join('\n');
521
- const imageCheck = app.imageProjects
522
- .map((project) => `has ${project}`)
523
- .join(' || ');
524
550
  const tfEnv = registry
525
551
  ? `
526
552
  # The Dokploy registry logs the server in to GHCR with this token.
@@ -544,16 +570,20 @@ on:
544
570
  types: [completed]
545
571
  branches: [main]
546
572
 
547
- # One rollout at a time, queued, never cancelled.
573
+ # One rollout at a time: each run waits its turn and is never cancelled.
548
574
  concurrency:
549
575
  group: deploy
550
576
  cancel-in-progress: false
577
+ queue: max
551
578
 
552
579
  permissions:
553
- # nx-set-shas reads this workflow's runs to find the last successful deploy.
580
+ # affected-range reads this workflow's runs to find the last successful deploy.
554
581
  actions: read
555
582
  contents: read
556
583
 
584
+ # The deploy restores the npm cache that CI wrote and never writes one.
585
+ cache-mode: read
586
+
557
587
  env:
558
588
  SHA: \${{ github.event.workflow_run.head_sha }}
559
589
 
@@ -562,69 +592,48 @@ jobs:
562
592
  if: github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'push'
563
593
  runs-on: ubuntu-latest
564
594
  outputs:
565
- current: \${{ steps.head.outputs.current }}
566
- image: \${{ steps.affected.outputs.image }}
567
- infra: \${{ steps.affected.outputs.infra }}
595
+ current: \${{ steps.tested.outputs.current }}
596
+ image: \${{ steps.image.outputs.affected }}
597
+ infra: \${{ steps.infra.outputs.affected }}
568
598
  steps:
569
599
  - name: Checkout main
570
600
  uses: actions/checkout@v7
571
601
  with:
572
602
  fetch-depth: 0
603
+ persist-credentials: false
573
604
 
574
- # A newer commit has its own CI run and deploy; shipping this one now
575
- # would roll main back.
576
605
  - name: Ship only the commit CI tested
577
- id: head
578
- run: |
579
- if [ "$(git rev-parse HEAD)" = "$SHA" ]; then
580
- echo "current=true" >> "$GITHUB_OUTPUT"
581
- else
582
- echo "main moved past $SHA; its own deploy ships the newer commit."
583
- echo "current=false" >> "$GITHUB_OUTPUT"
584
- fi
606
+ id: tested
607
+ uses: JanuaryLabs/zukhruf/.github/actions/tested-commit@main
585
608
 
586
609
  - name: Set up the workspace
587
- if: steps.head.outputs.current == 'true'
610
+ if: steps.tested.outputs.current == 'true'
588
611
  uses: JanuaryLabs/zukhruf/.github/actions/setup-workspace@main
589
612
 
590
- - name: Find the last successful deploy
591
- if: steps.head.outputs.current == 'true'
592
- id: shas
593
- uses: nrwl/nx-set-shas@v5
613
+ # The base is the last successful deploy, so a change whose rollout
614
+ # failed stays affected until a rollout succeeds. Before the first
615
+ # deploy, everything counts as changed.
616
+ - name: Find what changed since the last deploy
617
+ if: steps.tested.outputs.current == 'true'
618
+ uses: JanuaryLabs/zukhruf/.github/actions/affected-range@main
594
619
  with:
595
620
  workflow-id: deploy.yml
596
621
  last-successful-event: workflow_run
597
622
 
598
623
  # The images hold the projects that their Dockerfiles build.
599
- - name: Decide what ships
600
- if: steps.head.outputs.current == 'true'
601
- id: affected
602
- env:
603
- NO_PREVIOUS_BUILD: \${{ steps.shas.outputs.noPreviousBuild }}
604
- run: |
605
- if [ "$NO_PREVIOUS_BUILD" = "true" ]; then
606
- echo "No successful deploy yet: shipping everything."
607
- {
608
- echo "image=true"
609
- echo "infra=true"
610
- } >> "$GITHUB_OUTPUT"
611
- exit 0
612
- fi
613
- projects="$(npx nx show projects --affected --json)"
614
- echo "Affected since the last deploy: $projects"
615
- has() { printf '%s' "$projects" | jq -e --arg p "$1" 'index($p) != null' >/dev/null; }
616
- if ${imageCheck}; then
617
- echo "image=true" >> "$GITHUB_OUTPUT"
618
- else
619
- echo "image=false" >> "$GITHUB_OUTPUT"
620
- fi
621
- # The base is the last successful deploy, so an infra change whose
622
- # rollout failed stays affected until a rollout succeeds.
623
- if has ${stack.projectName}; then
624
- echo "infra=true" >> "$GITHUB_OUTPUT"
625
- else
626
- echo "infra=false" >> "$GITHUB_OUTPUT"
627
- fi
624
+ - name: Find whether an image changed
625
+ if: steps.tested.outputs.current == 'true'
626
+ id: image
627
+ uses: JanuaryLabs/zukhruf/.github/actions/affected-projects@main
628
+ with:
629
+ projects: '${app.imageProjects.join(' ')}'
630
+
631
+ - name: Find whether the stack changed
632
+ if: steps.tested.outputs.current == 'true'
633
+ id: infra
634
+ uses: JanuaryLabs/zukhruf/.github/actions/affected-projects@main
635
+ with:
636
+ projects: '${stack.projectName}'
628
637
 
629
638
  # Each image is pushed under the commit first; promote moves :latest only
630
639
  # after every image of the commit exists.
@@ -644,40 +653,22 @@ ${buildMatrix}
644
653
  - uses: actions/checkout@v7
645
654
  with:
646
655
  ref: \${{ env.SHA }}
647
-
648
- - name: Lowercase the image owner
649
- run: echo "OWNER_LC=\${GITHUB_REPOSITORY_OWNER,,}" >> "$GITHUB_ENV"
650
-
651
- - uses: docker/setup-buildx-action@v4
652
-
653
- - uses: docker/login-action@v4
654
- with:
655
- registry: ghcr.io
656
- username: \${{ github.actor }}
657
- password: \${{ secrets.GITHUB_TOKEN }}
656
+ persist-credentials: false
658
657
 
659
658
  - name: Build \${{ matrix.image }}
660
- uses: docker/build-push-action@v7
661
659
  timeout-minutes: 25
662
- env:
663
- DOCKER_BUILD_RECORD_UPLOAD: 'false'
660
+ uses: JanuaryLabs/zukhruf/.github/actions/ghcr-image@main
664
661
  with:
665
- context: .
666
- file: \${{ matrix.dockerfile }}
667
- platforms: linux/amd64
668
- push: true
669
- build-args: |
670
- BUILD_SHA=\${{ env.SHA }}
671
- tags: ghcr.io/\${{ env.OWNER_LC }}/\${{ matrix.image }}:\${{ env.SHA }}
672
- cache-from: type=registry,ref=ghcr.io/\${{ env.OWNER_LC }}/\${{ matrix.image }}:buildcache
673
- cache-to: type=registry,ref=ghcr.io/\${{ env.OWNER_LC }}/\${{ matrix.image }}:buildcache,mode=max,image-manifest=true,oci-mediatypes=true
662
+ image: \${{ matrix.image }}
663
+ dockerfile: \${{ matrix.dockerfile }}
664
+ sha: \${{ env.SHA }}
665
+ build-args: BUILD_SHA=\${{ env.SHA }}
674
666
 
675
667
  # The compose runs :latest; the immutable :sha stays for rollbacks.
676
668
  promote:
677
669
  needs: image
678
670
  runs-on: ubuntu-latest
679
671
  permissions:
680
- contents: read
681
672
  packages: write
682
673
  strategy:
683
674
  fail-fast: false
@@ -685,24 +676,11 @@ ${buildMatrix}
685
676
  include:
686
677
  ${promoteMatrix}
687
678
  steps:
688
- - name: Lowercase the image owner
689
- run: echo "OWNER_LC=\${GITHUB_REPOSITORY_OWNER,,}" >> "$GITHUB_ENV"
690
-
691
- - uses: docker/setup-buildx-action@v4
692
-
693
- - uses: docker/login-action@v4
694
- with:
695
- registry: ghcr.io
696
- username: \${{ github.actor }}
697
- password: \${{ secrets.GITHUB_TOKEN }}
698
-
699
679
  - name: Promote \${{ matrix.image }} to latest
700
- env:
701
- IMAGE: \${{ matrix.image }}
702
- run: |
703
- docker buildx imagetools create \\
704
- --tag "ghcr.io/\${OWNER_LC}/\${IMAGE}:latest" \\
705
- "ghcr.io/\${OWNER_LC}/\${IMAGE}:\${SHA}"
680
+ uses: JanuaryLabs/zukhruf/.github/actions/ghcr-promote@main
681
+ with:
682
+ image: \${{ matrix.image }}
683
+ from: \${{ env.SHA }}
706
684
 
707
685
  # After new images, or with none: a failed build stops the stack, so a
708
686
  # compose that needs the new images never rolls out with the old ones.
@@ -749,7 +727,7 @@ ${promoteMatrix}
749
727
  uses: JanuaryLabs/zukhruf/.github/actions/wait-for-health@main
750
728
  with:
751
729
  url: https://\${{ fromJSON(needs.infra.outputs.outputs).host }}/api/healthz
752
- sha: \${{ needs.promote.result == 'success' && env.SHA || '' }}
730
+ sha: \${{ case(needs.promote.result == 'success', env.SHA, '') }}
753
731
  `;
754
732
  }
755
733
  //# sourceMappingURL=files.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"files.js","sourceRoot":"","sources":["../../../src/generators/dokploy/files.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,eAAe,EACf,cAAc,EACd,cAAc,GACf,MAAM,gBAAgB,CAAC;AAExB,wCAAwC;AACxC,MAAM,CAAC,MAAM,SAAS,GAAG,OAAO,CAAC;AAEjC,SAAS,WAAW,CAAC,KAAY;IAC/B,OAAO;QACL,eAAe;QACf,cAAc;QACd,GAAG,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;KAC5C,CAAC;AACJ,CAAC;AAED,MAAM,KAAK,GAAG,CAAC,KAAY,EAAE,IAAY,EAAE,EAAE,CAC3C,WAAW,KAAK,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,IAAI,IAAI,SAAS,CAAC;AAExD,MAAM,eAAe,GAAG,CAAC,KAAY,EAAE,EAAE,CACvC,KAAK,CAAC,IAAI,CAAC,I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