@zukhruf/nx 0.8.46 → 0.8.48
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 +97 -67
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -114,7 +114,7 @@ No generator writes a mobile app yet. This is the Nx 24 shape of 2026-10-29:
|
|
|
114
114
|
|
|
115
115
|
An Nx workspace formats its files with Prettier. The `format` area is an Nx inference plugin. It gives each project of the workspace two targets: `format`, which writes the files, and `format:check`, which only reads them. You list the plugin one time in `nx.json`. You do not copy targets into each project.
|
|
116
116
|
|
|
117
|
-
|
|
117
|
+
### Use it
|
|
118
118
|
|
|
119
119
|
You need Nx 23 or 24 and Prettier 3. `nx`, `@nx/devkit` and `prettier` are peer dependencies.
|
|
120
120
|
|
|
@@ -137,7 +137,7 @@ zukhruf builds this package, so it lists the plugin by path: `"plugins": ["./pac
|
|
|
137
137
|
|
|
138
138
|
The plugin does not change `typecheck`. That target belongs to `@nx/js/typescript`, and each workspace adds its own dependencies to it, for example `^sdk`. See [ADR 0001](./docs/adr/0001-inferred-targets-not-copied-defaults.md).
|
|
139
139
|
|
|
140
|
-
|
|
140
|
+
### Signature
|
|
141
141
|
|
|
142
142
|
```ts
|
|
143
143
|
// @zukhruf/nx/format
|
|
@@ -146,7 +146,7 @@ export const createNodes: CreateNodes;
|
|
|
146
146
|
|
|
147
147
|
The plugin takes no options. The target names and the commands are the same in each of the 7 copies that this package replaces, so no option is necessary.
|
|
148
148
|
|
|
149
|
-
|
|
149
|
+
### What each target runs
|
|
150
150
|
|
|
151
151
|
| Target | Command | Writes? | Cached | Inputs |
|
|
152
152
|
| -------------- | -------------------------------- | ------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
@@ -160,7 +160,7 @@ The plugin takes no options. The target names and the commands are the same in e
|
|
|
160
160
|
|
|
161
161
|
To format only your own files, give their paths: `npx prettier --write <files>`. See [ADR 0002](./docs/adr/0002-a-check-never-writes.md).
|
|
162
162
|
|
|
163
|
-
|
|
163
|
+
### Override a project
|
|
164
164
|
|
|
165
165
|
A target in the `project.json` of a project replaces the inferred target. Nx applies the plugin first, then `targetDefaults`, then `project.json`. For example, the `infra` project of whatisgoingon formats OpenTofu files:
|
|
166
166
|
|
|
@@ -173,7 +173,7 @@ A target in the `project.json` of a project replaces the inferred target. Nx app
|
|
|
173
173
|
}
|
|
174
174
|
```
|
|
175
175
|
|
|
176
|
-
|
|
176
|
+
### Leave fixtures out
|
|
177
177
|
|
|
178
178
|
The plugin gives targets only to the projects that Nx finds, by the rule and the matcher of Nx itself:
|
|
179
179
|
|
|
@@ -198,7 +198,7 @@ A fixture inside the workspace globs is a project of Nx. Use the standard `exclu
|
|
|
198
198
|
|
|
199
199
|
context-compiler already does this for `@nx/eslint/plugin`. See [ADR 0003](./docs/adr/0003-which-roots-get-targets.md).
|
|
200
200
|
|
|
201
|
-
|
|
201
|
+
### Migrate a workspace
|
|
202
202
|
|
|
203
203
|
1. Add the plugin to `plugins` in `nx.json`.
|
|
204
204
|
2. Delete the `format` and `format:check` entries from `targetDefaults`.
|
|
@@ -216,18 +216,19 @@ context-compiler already does this for `@nx/eslint/plugin`. See [ADR 0003](./doc
|
|
|
216
216
|
| whatisgoingon | same as factory; `infra` overrides `format` with `tofu fmt` | 3, and `infra` adds `format:check` |
|
|
217
217
|
| deepagents | one stray `format` target in `packages/compaction` | 1 |
|
|
218
218
|
|
|
219
|
-
|
|
219
|
+
### Who uses it
|
|
220
220
|
|
|
221
|
-
|
|
|
222
|
-
| ---------------- | ------------------------------- |
|
|
223
|
-
| zukhruf | #3306 (phase 2, first consumer) |
|
|
224
|
-
| elt | #3318 |
|
|
225
|
-
| context-compiler | #3319 |
|
|
226
|
-
| factory | #3320 |
|
|
227
|
-
| whatisgoingon | #3321 |
|
|
228
|
-
| text2sql | #3322 |
|
|
229
|
-
| deepagents | #3323 |
|
|
230
|
-
|
|
|
221
|
+
| Consumer | How | Record |
|
|
222
|
+
| ---------------- | --------------------------------------------------- | ------------------------------- |
|
|
223
|
+
| zukhruf | `nx.json` lists the plugin by path | #3306 (phase 2, first consumer) |
|
|
224
|
+
| elt | `nx.json` lists `@zukhruf/nx/format` | #3318 |
|
|
225
|
+
| context-compiler | `nx.json` lists `@zukhruf/nx/format` | #3319 |
|
|
226
|
+
| factory | `nx.json` lists `@zukhruf/nx/format` | #3320 |
|
|
227
|
+
| whatisgoingon | `nx.json` lists `@zukhruf/nx/format` | #3321 |
|
|
228
|
+
| text2sql | `nx.json` lists `@zukhruf/nx/format` | #3322 |
|
|
229
|
+
| deepagents | `nx.json` lists `@zukhruf/nx/format` | #3323 |
|
|
230
|
+
| offers-evals | `nx.json` lists `@zukhruf/nx/format` | offers-evals commit 7fd9864 |
|
|
231
|
+
| meddit | `preset` writes `@zukhruf/nx/format` into `nx.json` | #4606 |
|
|
231
232
|
|
|
232
233
|
The umbrella item is #3317.
|
|
233
234
|
|
|
@@ -304,7 +305,7 @@ The 2026-10-29 audit of the 7 repos measured the effect. The rule matches each `
|
|
|
304
305
|
- `--test-timeout`: the default is 300 s. `@zukhruf/testing` starts a shared database server the first time that a test calls `database()`, and it sets a time limit for each cold start: Postgres 60 s, MySQL and MariaDB 90 s, SQL Server 180 s. In a run, the first call of a test process also holds the reaper of the run, with a readiness bound of 60 s. One test can pay both in a row, so its own time limit must be longer than their sum. 300 s is the hold, 60 s, plus the slowest server, SQL Server 180 s, plus 60 s for the work of the test. The old default, 60 s, stopped a test before the readiness bound: on 2026-10-30 a MySQL test of text2sql and the SQL Server tests of deepagents stopped at 60 s. When `@zukhruf/testing` changes a readiness bound, change this default with it. A repo that wants a shorter limit sets the `timeout` option. One project sets `--test-timeout` in its `args`. No time limit is drift. See [ADR 0004](./docs/adr/0004-node-test-target-from-test-files.md).
|
|
305
306
|
- Two reporters: `spec` to the terminal and `junit` to `test-results.xml`. zukhruf, deepagents and text2sql use both.
|
|
306
307
|
- `^build`: a test imports the built output of the packages that the project depends on. factory, whatisgoingon and text2sql test from the source, so `^build` is sufficient for them. A repo whose tests also need the project's own `build` adds it (see [Prerequisites of the test area](#prerequisites-of-the-test-area)).
|
|
307
|
-
- No cache:
|
|
308
|
+
- No cache: the plugin gives `cache: false`. A repo that wants a cache sets `cache: true` in `targetDefaults.test`, which comes after the plugin. zukhruf does this since commit 03ae010f (#4831), with `{ "runtime": "node --version" }` in the `inputs`, so a new Node version runs the tests again.
|
|
308
309
|
|
|
309
310
|
The base command has no `--test-force-exit` and no `--experimental-test-module-mocks`. Only Docker tests and tests with open handles need `--test-force-exit`. Only deepagents and the text2sql electron app use module mocks. A repo adds these flags with the `flags` option. One project adds them in its own `args` (see [Override the test target of a project](#override-the-test-target-of-a-project)).
|
|
310
311
|
|
|
@@ -359,8 +360,8 @@ A project with the tag `test:docker` starts Docker containers in its tests. zukh
|
|
|
359
360
|
The plugin selects the path in this order:
|
|
360
361
|
|
|
361
362
|
1. The project's own `src/testing/docker-global-setup.ts`, if it exists. mutex has one: it starts the shared servers before the run. `@zukhruf/testing` has one: its tests use its own source.
|
|
362
|
-
2. Else, `@zukhruf/testing/docker-global-setup
|
|
363
|
-
3. If the plugin cannot
|
|
363
|
+
2. Else, the file that the `./docker-global-setup` export of `@zukhruf/testing` names in its `default` condition: `dist/scripts/docker-global-setup.js`. The plugin finds the `package.json` of `@zukhruf/testing` from the project root with `module.findPackageJSON`, and reads the path from its `exports`. It does not resolve the file: `^build` builds `@zukhruf/testing` before the test, but after Nx makes the project graph, so a fresh checkout has no built file yet (commit eeea3e76, #3476). The plugin writes the path relative to the `cwd` of the target.
|
|
364
|
+
3. If the plugin cannot find `@zukhruf/testing`, it stops with an error: `<root> has the tag test:docker, so it needs @zukhruf/testing/docker-global-setup (install @zukhruf/testing) or a src/testing/docker-global-setup.ts of its own`. It does not run the tests with no global setup.
|
|
364
365
|
|
|
365
366
|
The value must be a path. Node resolves it with `path.resolve(cwd, value)`, so a package name does not work. That is why 5 repos keep a file that only re-exports the global setup. Each repo deletes this file when it migrates. The global setup runs one time for each `node --test` process.
|
|
366
367
|
|
|
@@ -418,28 +419,29 @@ A `scripts.test` in a `package.json` replaces the inferred target. Nx runs it wi
|
|
|
418
419
|
7. Delete the `test:node` tags.
|
|
419
420
|
8. Compare `nx show projects --withTarget test` before and after. The differences must be the ones in the table.
|
|
420
421
|
|
|
421
|
-
| Workspace | Today | Changes
|
|
422
|
-
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
423
|
-
| zukhruf | `targetDefaults.test` with filters `tag:test:node` and `tag:test:docker`; `dependsOn` `["build", "^build"]`; `--test-force-exit` for each project | 30 tagged projects; 2 Docker projects (mutex, testing) keep their own global setup; `dependsOn` `["...", "build"]`; no `flags`: since 2026-11-19 only the `test:docker` projects force-exit, as each other suite exits by itself (all 43 measured without the flag)
|
|
424
|
-
| factory | 2 targets: `api` with Docker arguments; `foundation` with its tests in `tests/` | delete `apps/factory/api/src/testing/docker-global-setup.ts`; `dependsOn` `["...", "^sdk"]`
|
|
425
|
-
| whatisgoingon | 1 target | 1
|
|
426
|
-
| deepagents | 11 tagged projects, 3 Docker projects, 4 demo scripts | delete `tools/src/docker-global-setup.ts`; `dependsOn` `["...", "build"]`; module mocks in `flags` or in the `args` of a project; the 4 demo scripts and the Docker context script stay
|
|
427
|
-
| elt | 55 commands in the projects, 8 with the global setup | delete `docker-global-setup.ts`; `dependsOn` `["...", "build"]`; no override, because no test file reads a path from the working directory
|
|
428
|
-
| context-compiler | 17 targets; the `plugin` project has a no-op `test` that depends on `server:test` | 5 connector targets that test nothing go; `dependsOn` `["...", "build"]`; the desktop e2e files stay as an override; if `plugin` owns no test file, the plugin gives it nothing and its own `test` in `project.json` stays; the test target runs in the project root, so 9 test files of `cli`, `desktop` and `server` find the workspace root from `import.meta.dirname`
|
|
429
|
-
| text2sql | about 24 commands in the projects, and 13 projects on the shared default; Nx 23.1.0 | update Nx; delete `packages/adapters/src/testing/docker-global-setup.ts` and `apps/desktop/backend/src/testing/docker-global-setup.ts`; 6 targets that test nothing go; `.agents` and `.claude` get a target; the backends set `--test-timeout=120000` in `args`; the daemon keeps `["image"]` or uses `"..."`
|
|
422
|
+
| Workspace | Today | Changes |
|
|
423
|
+
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
424
|
+
| zukhruf | `targetDefaults.test` with filters `tag:test:node` and `tag:test:docker`; `dependsOn` `["build", "^build"]`; `--test-force-exit` for each project | 30 tagged projects; 2 Docker projects (mutex, testing) keep their own global setup; `dependsOn` `["...", "build"]`; no `flags`: since 2026-11-19 only the `test:docker` projects force-exit, as each other suite exits by itself (all 43 measured without the flag); since 03ae010f, `targetDefaults.test` sets `cache: true` and the inputs `["default", "^default", { "runtime": "node --version" }]` |
|
|
425
|
+
| factory | 2 targets: `api` with Docker arguments; `foundation` with its tests in `tests/` | delete `apps/factory/api/src/testing/docker-global-setup.ts`; `dependsOn` `["...", "^sdk"]` |
|
|
426
|
+
| whatisgoingon | 1 target | 1 |
|
|
427
|
+
| deepagents | 11 tagged projects, 3 Docker projects, 4 demo scripts | delete `tools/src/docker-global-setup.ts`; `dependsOn` `["...", "build"]`; module mocks in `flags` or in the `args` of a project; the 4 demo scripts and the Docker context script stay |
|
|
428
|
+
| elt | 55 commands in the projects, 8 with the global setup | delete `docker-global-setup.ts`; `dependsOn` `["...", "build"]`; no override, because no test file reads a path from the working directory |
|
|
429
|
+
| context-compiler | 17 targets; the `plugin` project has a no-op `test` that depends on `server:test` | 5 connector targets that test nothing go; `dependsOn` `["...", "build"]`; the desktop e2e files stay as an override; if `plugin` owns no test file, the plugin gives it nothing and its own `test` in `project.json` stays; the test target runs in the project root, so 9 test files of `cli`, `desktop` and `server` find the workspace root from `import.meta.dirname` |
|
|
430
|
+
| text2sql | about 24 commands in the projects, and 13 projects on the shared default; Nx 23.1.0 | update Nx; delete `packages/adapters/src/testing/docker-global-setup.ts` and `apps/desktop/backend/src/testing/docker-global-setup.ts`; 6 targets that test nothing go; `.agents` and `.claude` get a target; the backends set `--test-timeout=120000` in `args`; the daemon keeps `["image"]` or uses `"..."` |
|
|
430
431
|
|
|
431
432
|
### Who uses the test area
|
|
432
433
|
|
|
433
|
-
|
|
|
434
|
-
| ---------------- |
|
|
435
|
-
| zukhruf |
|
|
436
|
-
| factory |
|
|
437
|
-
| whatisgoingon |
|
|
438
|
-
| deepagents |
|
|
439
|
-
| elt |
|
|
440
|
-
| context-compiler |
|
|
441
|
-
| text2sql |
|
|
442
|
-
|
|
|
434
|
+
| Consumer | How | Record |
|
|
435
|
+
| ---------------- | ------------------------------------------------- | --------------------------- |
|
|
436
|
+
| zukhruf | `nx.json` lists the plugin by path | #3328 |
|
|
437
|
+
| factory | `nx.json` lists `@zukhruf/nx/test` | #3363 |
|
|
438
|
+
| whatisgoingon | `nx.json` lists `@zukhruf/nx/test` | #3364 |
|
|
439
|
+
| deepagents | `nx.json` lists `@zukhruf/nx/test` | #3365 |
|
|
440
|
+
| elt | `nx.json` lists `@zukhruf/nx/test` | #3366 |
|
|
441
|
+
| context-compiler | `nx.json` lists `@zukhruf/nx/test` | #3367 |
|
|
442
|
+
| text2sql | `nx.json` lists `@zukhruf/nx/test` | #3368 |
|
|
443
|
+
| offers-evals | `nx.json` lists `@zukhruf/nx/test` | offers-evals commit 7fd9864 |
|
|
444
|
+
| meddit | `preset` writes `@zukhruf/nx/test` into `nx.json` | #4606 |
|
|
443
445
|
|
|
444
446
|
The umbrella item is #3328.
|
|
445
447
|
|
|
@@ -579,16 +581,17 @@ The lockfile measured the edges on 2026-10-30. For factory, whatisgoingon, deepa
|
|
|
579
581
|
|
|
580
582
|
### Who uses the lint area
|
|
581
583
|
|
|
582
|
-
|
|
|
583
|
-
| ---------------- |
|
|
584
|
-
| zukhruf |
|
|
585
|
-
| factory |
|
|
586
|
-
| whatisgoingon |
|
|
587
|
-
| deepagents |
|
|
588
|
-
| text2sql |
|
|
589
|
-
| elt |
|
|
590
|
-
| context-compiler |
|
|
591
|
-
|
|
|
584
|
+
| Consumer | How | Record |
|
|
585
|
+
| ---------------- | ------------------------------------------------- | --------------------------- |
|
|
586
|
+
| zukhruf | `nx.json` lists the plugin by path | #3335 |
|
|
587
|
+
| factory | `nx.json` lists `@zukhruf/nx/lint` | #3386 |
|
|
588
|
+
| whatisgoingon | `nx.json` lists `@zukhruf/nx/lint` | #3387 |
|
|
589
|
+
| deepagents | `nx.json` lists `@zukhruf/nx/lint` | #3388 |
|
|
590
|
+
| text2sql | `nx.json` lists `@zukhruf/nx/lint` | #3389 |
|
|
591
|
+
| elt | `nx.json` lists `@zukhruf/nx/lint` | #3390 |
|
|
592
|
+
| context-compiler | `nx.json` lists `@zukhruf/nx/lint` | #3391 |
|
|
593
|
+
| offers-evals | `nx.json` lists `@zukhruf/nx/lint` | offers-evals commit 7fd9864 |
|
|
594
|
+
| meddit | `preset` writes `@zukhruf/nx/lint` into `nx.json` | #4606 |
|
|
592
595
|
|
|
593
596
|
The umbrella item is #3335.
|
|
594
597
|
|
|
@@ -722,11 +725,11 @@ A target in the `project.json` of a project replaces the inferred target, or mer
|
|
|
722
725
|
|
|
723
726
|
### Who uses the opentofu area
|
|
724
727
|
|
|
725
|
-
|
|
|
726
|
-
| ------------- |
|
|
727
|
-
| whatisgoingon | #4612
|
|
728
|
-
| text2sql | #4613
|
|
729
|
-
| meddit | #4608
|
|
728
|
+
| Consumer | How | Record |
|
|
729
|
+
| ------------- | ------------------------------------------------------------------------------------- | ------ |
|
|
730
|
+
| whatisgoingon | `nx.json` lists `@zukhruf/nx/opentofu`, for `infra` | #4612 |
|
|
731
|
+
| text2sql | `nx.json` lists `@zukhruf/nx/opentofu`, for its 4 OpenTofu projects | #4613 |
|
|
732
|
+
| meddit | the [dokploy generator](#dokploy-generator) lists `@zukhruf/nx/opentofu` in `nx.json` | #4608 |
|
|
730
733
|
|
|
731
734
|
The backlog item of the area is #3339.
|
|
732
735
|
|
|
@@ -809,7 +812,7 @@ npx nx run @acme/db:migrate:check
|
|
|
809
812
|
### Migrate a workspace to the prisma area
|
|
810
813
|
|
|
811
814
|
1. Add `@zukhruf/nx/prisma` to `plugins` in `nx.json`.
|
|
812
|
-
2. Add `generate` to `targetDefaults.typecheck.dependsOn` and `targetDefaults.build.dependsOn`.
|
|
815
|
+
2. Add `generate` to `targetDefaults.typecheck.dependsOn` and `targetDefaults.build.dependsOn`. Add `migrate:check` to `targetDefaults.typecheck.dependsOn`, as the [prisma generator](#prisma-generator) does (commit 19a4bd37, `src/generators/prisma/generator.test.ts`). `migrate:check` needs Docker and `@zukhruf/testing` (see [Check the migrations](#check-the-migrations)).
|
|
813
816
|
3. Delete `generate`, `migrate`, `deploy`, `reset` and `pull` from each Prisma project, and the `typecheck` entry that only adds `generate`.
|
|
814
817
|
4. Delete the `typecheck:generate` tag and its `targetDefaults` filter.
|
|
815
818
|
5. Compare `nx show project <project> --json` before and after.
|
|
@@ -822,11 +825,11 @@ npx nx run @acme/db:migrate:check
|
|
|
822
825
|
|
|
823
826
|
### Who uses the prisma area
|
|
824
827
|
|
|
825
|
-
|
|
|
826
|
-
|
|
|
827
|
-
|
|
|
828
|
-
|
|
|
829
|
-
|
|
|
828
|
+
| Consumer | How | Record |
|
|
829
|
+
| -------- | --------------------------------------------------------------------------------- | ------ |
|
|
830
|
+
| text2sql | `nx.json` lists `@zukhruf/nx/prisma` | #4613 |
|
|
831
|
+
| meddit | the [prisma generator](#prisma-generator) lists `@zukhruf/nx/prisma` in `nx.json` | #4607 |
|
|
832
|
+
| factory | not yet: its `nx.json` does not list `@zukhruf/nx/prisma` | #4611 |
|
|
830
833
|
|
|
831
834
|
The backlog item of the area is #3339.
|
|
832
835
|
|
|
@@ -1111,12 +1114,12 @@ Then check that `npm install` passes, that `npx nx run-many -t typecheck` and `n
|
|
|
1111
1114
|
|
|
1112
1115
|
### Who uses the generators
|
|
1113
1116
|
|
|
1114
|
-
|
|
|
1115
|
-
|
|
|
1116
|
-
| meddit
|
|
1117
|
-
| meddit
|
|
1118
|
-
| meddit
|
|
1119
|
-
| factory
|
|
1117
|
+
| Consumer | How | Record |
|
|
1118
|
+
| -------- | ----------------------------------------------------- | ------ |
|
|
1119
|
+
| meddit | `preset`, `node-app`, `react-app`, `pair` | #4606 |
|
|
1120
|
+
| meddit | `prisma` | #4607 |
|
|
1121
|
+
| meddit | `dokploy` | #4608 |
|
|
1122
|
+
| factory | `init`, `node-app`, `react-app`, `pair`, `ui-package` | #4611 |
|
|
1120
1123
|
|
|
1121
1124
|
The decisions are in [ADR 0009](./docs/adr/0009-a-preset-and-an-init-generator-start-a-repo-from-nothing.md). The backlog item of the generators is #3337.
|
|
1122
1125
|
|
|
@@ -1294,7 +1297,7 @@ With `--backend`, the node-app gets:
|
|
|
1294
1297
|
|
|
1295
1298
|
### Migrations
|
|
1296
1299
|
|
|
1297
|
-
Write
|
|
1300
|
+
Write each migration with `npx nx run @acme/db:migrate:create --name <name>`, the first one too. It writes the diff from the migrations to the schema into `migrations/<time>_<name>/migration.sql` (see [Check the migrations](#check-the-migrations)). Read the SQL, and edit it before `deploy` when it can fail on a table with rows. `migrate:check` runs before `typecheck`, so the `typecheck` of the package fails when the migrations do not build the schema (commit 19a4bd37). Apply a migration with `nx run @acme/db:deploy`, or with the image. `migrate dev` needs a TTY, so an agent does not run it, and nothing runs `migrate reset` on a shared database.
|
|
1298
1301
|
|
|
1299
1302
|
### Errors of the prisma generator
|
|
1300
1303
|
|
|
@@ -1520,3 +1523,30 @@ The compose reads `PUBLIC_HOST` in its labels, Postgres reads `POSTGRES_PASSWORD
|
|
|
1520
1523
|
After the steps of [Test the app generators before a release](#test-the-app-generators-before-a-release), run `prisma` and then `dokploy` with `--database`, `--registryUser` and no `--host`, then `npm install`, `npx nx sync`, `npx nx run @acme/infra:typecheck`, `actionlint .github/workflows/*.yml`, `npx nx run-many -t typecheck lint`, `npx prettier --check .`, and `docker compose -f infra/compose.dokploy.yml config` (with an `infra/.env`, which the app's `env_file` names). actionlint 1.7.12 does not know the `parallel:` step of `ci.yml`, which GitHub runs. On 2026-11-18 each passed, also after a run with `--host` and no `--database` or `--registryUser`; after that, two runs with the first options passed again, and the second of them changed no file.
|
|
1521
1524
|
|
|
1522
1525
|
The decisions are in [ADR 0011](./docs/adr/0011-the-dokploy-generator-writes-the-gitops-delivery-of-a-node-app.md) and [ADR 0015](./docs/adr/0015-an-opentofu-module-of-zukhruf-holds-the-dokploy-delivery-and-the-dokploy-generator-writes-infra-once.md). The backlog items of the dokploy generator are #4603 and #4733.
|
|
1526
|
+
|
|
1527
|
+
## Documentation
|
|
1528
|
+
|
|
1529
|
+
**Decisions**
|
|
1530
|
+
|
|
1531
|
+
- [ADR 0001](./docs/adr/0001-inferred-targets-not-copied-defaults.md): an inference plugin gives each project its format targets.
|
|
1532
|
+
- [ADR 0002](./docs/adr/0002-a-check-never-writes.md): a check target never writes.
|
|
1533
|
+
- [ADR 0003](./docs/adr/0003-which-roots-get-targets.md): the plugin gives targets to the projects of Nx, by the matcher of Nx.
|
|
1534
|
+
- [ADR 0004](./docs/adr/0004-node-test-target-from-test-files.md): the plugin gives the test target to each project root that owns node:test files (superseded in part by ADR 0006 for the project roots, and for the default timeout by the owner, #4205).
|
|
1535
|
+
- [ADR 0005](./docs/adr/0005-docker-tests-get-the-global-setup.md): a project with the tag test:docker gets the global setup of @zukhruf/testing.
|
|
1536
|
+
- [ADR 0006](./docs/adr/0006-lint-inputs-from-the-eslint-package.md): the plugin adds the packages of @zukhruf/eslint to the inputs of lint.
|
|
1537
|
+
- [ADR 0007](./docs/adr/0007-opentofu-targets-from-environments-with-no-apply.md): an inference plugin gives each OpenTofu project its targets, and no apply target.
|
|
1538
|
+
- [ADR 0008](./docs/adr/0008-prisma-targets-from-prisma-config-with-outputs-from-the-schema.md): an inference plugin gives each Prisma project its targets, with the outputs that the schema names.
|
|
1539
|
+
- [ADR 0009](./docs/adr/0009-a-preset-and-an-init-generator-start-a-repo-from-nothing.md): a preset and an init generator start a repo from nothing.
|
|
1540
|
+
- [ADR 0010](./docs/adr/0010-the-app-generators-move-here-and-call-the-generators-of-nx.md): the app generators move here and call the generators of Nx.
|
|
1541
|
+
- [ADR 0011](./docs/adr/0011-the-dokploy-generator-writes-the-gitops-delivery-of-a-node-app.md): the dokploy generator writes the GitOps delivery of a node-app (decision 17 superseded by ADR 0015 for the files of `infra/`).
|
|
1542
|
+
- [ADR 0012](./docs/adr/0012-the-prisma-generator-writes-a-postgres-db-package-and-wires-a-backend.md): the prisma generator writes a Postgres db package and wires a backend.
|
|
1543
|
+
- [ADR 0013](./docs/adr/0013-a-target-names-the-tools-it-needs-and-a-hook-checks-them-before-ci-runs-tasks.md): a target names the tools it needs, and a hook checks them before CI runs tasks (rejected by the owner, #4654).
|
|
1544
|
+
- [ADR 0014](./docs/adr/0014-the-auth-generator-adds-better-auth-to-a-backend-and-its-db-package.md): the auth generator adds better-auth to a backend and its db package (proposed; superseded in part by ADR 0016).
|
|
1545
|
+
- [ADR 0015](./docs/adr/0015-an-opentofu-module-of-zukhruf-holds-the-dokploy-delivery-and-the-dokploy-generator-writes-infra-once.md): an OpenTofu module of zukhruf holds the Dokploy delivery, and the dokploy generator writes infra once.
|
|
1546
|
+
- [ADR 0016](./docs/adr/0016-the-generated-code-reads-explicit-settings-and-never-nodeenv.md): the generated code reads explicit settings, and never NODE_ENV.
|
|
1547
|
+
- [ADR 0017](./docs/adr/0017-nx-migrations-bring-a-change-of-generated-output-to-the-repos-that-ran-the-generator-before.md): Nx migrations bring a change of generated output to the repos that ran the generator before.
|
|
1548
|
+
- [ADR 0018](./docs/adr/0018-migrate-check-diffs-the-migrations-on-a-shadow-database-that-it-makes.md): migrate:check diffs the migrations on a shadow database that it makes.
|
|
1549
|
+
|
|
1550
|
+
**Copied code**
|
|
1551
|
+
|
|
1552
|
+
- [docs/copied-code.md](./docs/copied-code.md): each copy of code in this package, as the Rule of Three asks.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zukhruf/nx",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.48",
|
|
4
4
|
"description": "The Nx part of the monorepo standard: inference plugins for format, test, lint, opentofu and prisma targets, and generators for the root files (preset, init), apps (node-app, react-app, pair, ui-package), a db package (prisma) and delivery (dokploy).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
"@nx/react": ">=23.2.1 <25.0.0",
|
|
132
132
|
"@nx/vite": ">=23.2.1 <25.0.0",
|
|
133
133
|
"@nx/vitest": ">=23.2.1 <25.0.0",
|
|
134
|
-
"@zukhruf/testing": "^0.8.
|
|
134
|
+
"@zukhruf/testing": "^0.8.48",
|
|
135
135
|
"nx": ">=23.2.1 <25.0.0",
|
|
136
136
|
"prettier": "^3.0.0"
|
|
137
137
|
},
|
|
@@ -153,8 +153,8 @@
|
|
|
153
153
|
}
|
|
154
154
|
},
|
|
155
155
|
"devDependencies": {
|
|
156
|
-
"@zukhruf/eslint": "^0.8.
|
|
157
|
-
"@zukhruf/fs": "^0.8.
|
|
158
|
-
"@zukhruf/testing": "^0.8.
|
|
156
|
+
"@zukhruf/eslint": "^0.8.48",
|
|
157
|
+
"@zukhruf/fs": "^0.8.48",
|
|
158
|
+
"@zukhruf/testing": "^0.8.48"
|
|
159
159
|
}
|
|
160
160
|
}
|