@kaynooo/cli-check 0.18.0 → 0.18.2
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 +3 -2
- package/dist/cli.js +135 -80
- package/dist/errs-cli.js +112 -62
- package/dist/fix-cli.js +122 -69
- package/dist/j-cli.js +159 -107
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -11,6 +11,7 @@ check --timeout 5m # end a step still running after 5 minutes, exit 2
|
|
|
11
11
|
check --slot # queue each step behind the machine-wide slots of `slot` (@kaynooo/cli-wait)
|
|
12
12
|
check --in app # run every step in this compose service, whatever is detected
|
|
13
13
|
check --failed # run again only the steps that failed in this folder's last run
|
|
14
|
+
check --quiet # print only the failing steps, nothing when all pass
|
|
14
15
|
check --fix # run the fixers instead, what `fix` does
|
|
15
16
|
check --host # run on the host even when a compose service mounts the folder
|
|
16
17
|
check --json # [{name, command, in?, ok, ms, log, failed?}] once every step ran
|
|
@@ -18,7 +19,7 @@ check --json # [{name, command, in?, ok, ms, log, failed?}] once every step
|
|
|
18
19
|
|
|
19
20
|
## Steps
|
|
20
21
|
|
|
21
|
-
`check`, `typecheck`, `lint` and `test`, run in that order, from the first source that has each one:
|
|
22
|
+
`check`, `typecheck`, `lint` and `test`, run in that order, from the first source that has each one, but for a Justfile or Makefile `check`, which wins over a script of that name: a task runner's check is the repo's whole validation and usually wraps the script, as `check: bun run check -p tsconfig.json` does.
|
|
22
23
|
|
|
23
24
|
| Source | Command |
|
|
24
25
|
| --- | --- |
|
|
@@ -32,7 +33,7 @@ check --json # [{name, command, in?, ok, ms, log, failed?}] once every step
|
|
|
32
33
|
|
|
33
34
|
Scripts always go through `bun run`, so a `check` script of `$npm_execpath check` runs Bun's type checker, and a script that calls this bin by name is skipped.
|
|
34
35
|
|
|
35
|
-
A folder with no step of its own but subfolders that have some (a root with `api/` and `client/`) runs each subfolder's steps, in alphabetical order, each line naming it: `api/lint`, `client/test`. `--only lint` picks `lint` in every one, and each step runs in its own subfolder. Only the folder's direct children are looked at, without hidden ones, `node_modules`, `vendor`, `dist`, `build`, `var`, `tmp` and `coverage`.
|
|
36
|
+
A folder with no step of its own but subfolders that have some (a root with `api/` and `client/`) runs each subfolder's steps, in alphabetical order, each line naming it: `api/lint`, `client/test`. `--only lint` picks `lint` in every one, and each step runs in its own subfolder. Only the folder's direct children are looked at, without hidden ones, `node_modules`, `vendor`, `dist`, `build`, `var`, `tmp` and `coverage`, plus the names in the `ignore` array of `~/.config/kaynooo-cli/config.json`.
|
|
36
37
|
|
|
37
38
|
## In the compose service
|
|
38
39
|
|