@dads-framework/toolbox 0.1.0 → 0.2.0
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
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
The optional `dad` command line. It initializes and adopts Dads projects,
|
|
4
4
|
explains which package owns a path, plans and runs the verification a change
|
|
5
|
-
earns, and
|
|
6
|
-
|
|
5
|
+
earns, and inspects HTTP and code-health rules. Application runtime packages can
|
|
6
|
+
operate without it.
|
|
7
7
|
|
|
8
8
|
## What Dad does for you
|
|
9
9
|
|
|
@@ -13,33 +13,29 @@ declarations, so the answer does not change with who is asking.
|
|
|
13
13
|
|
|
14
14
|
## Try it
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
`npm install --save-dev @dads-framework/toolbox`.
|
|
16
|
+
From a Dads application such as the generated starter, install the Toolbox
|
|
17
|
+
and ask which package owns the notes route.
|
|
19
18
|
|
|
20
19
|
```sh
|
|
21
|
-
npm
|
|
22
|
-
cd my-app
|
|
20
|
+
npm install --save-dev @dads-framework/toolbox
|
|
23
21
|
npx dad orient domains/notes/server/routes.ts --json
|
|
24
|
-
npx dad doctor explain enmeshment
|
|
25
22
|
```
|
|
26
23
|
|
|
27
|
-
The
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
for hosting outside development.
|
|
24
|
+
The result contains `ok: true` and identifies the owner, its verification
|
|
25
|
+
commands, and the path to its README. Run `npx dad doctor explain enmeshment`
|
|
26
|
+
to see the explanation for that diagnostic.
|
|
31
27
|
|
|
32
|
-
|
|
33
|
-
@
|
|
34
|
-
Explains Dads ownership and runs deterministic agent workflows.
|
|
35
|
-
Skill: dads-orient
|
|
36
|
-
Verify: npm test -w @dads-framework/toolbox
|
|
37
|
-
```
|
|
28
|
+
To create a project that already includes the Toolbox, run
|
|
29
|
+
`npm create dads@0.2.0 my-app` with Node 24 and Docker Compose running.
|
|
38
30
|
|
|
39
31
|
Dads is the framework; its packages live under `@dads-framework/*`, and `dad`
|
|
40
32
|
is the executable this package exposes. `dad --help` (or `dad help`) prints the
|
|
41
33
|
command index. Run `dad add --help` for the generator index.
|
|
42
34
|
|
|
35
|
+
Run the command from the generated app root. The starter’s
|
|
36
|
+
[`dads.project.json`](../../../apps/kit-workbench/dads.project.json) declares ownership and verification, and
|
|
37
|
+
[`domains/notes/server/routes.ts`](../../../apps/kit-workbench/domains/notes/server/routes.ts) is the file passed to `orient`.
|
|
38
|
+
|
|
43
39
|
## Commands
|
|
44
40
|
|
|
45
41
|
Add `--json` to the documented command to emit machine-readable output. Without it, most commands print the same object
|
|
@@ -54,7 +50,7 @@ Applies the same idempotent recipes as `create-dads`. `--existing` writes an
|
|
|
54
50
|
isolated project under `<path>/dads` beside an existing application,
|
|
55
51
|
`--dry-run` previews the owned files, and `--skip-install` leaves dependency
|
|
56
52
|
installation to another tool. Use `npm start` in the generated app to start
|
|
57
|
-
Docker, or use `npm create dads@
|
|
53
|
+
Docker, or use `npm create dads@0.2.0` to install and start a new app in
|
|
58
54
|
one step.
|
|
59
55
|
|
|
60
56
|
Generated projects include Git hooks, a shared CI shell job, and optional GitHub
|
|
@@ -292,7 +288,10 @@ paths, custom roots, and a two-API example.
|
|
|
292
288
|
### Generators
|
|
293
289
|
|
|
294
290
|
`dad add --help` lists the nine commands for domains, endpoints, tables,
|
|
295
|
-
access, flags, email, pages, resources, and dependency libraries.
|
|
291
|
+
access, flags, email, pages, resources, and dependency libraries. In the
|
|
292
|
+
starter, preview a domain on the staff API with
|
|
293
|
+
`npx dad add domain inventory --api staff --dry-run --json`. The preview
|
|
294
|
+
lists the planned files and registration without editing the project.
|
|
296
295
|
[Generator guide](../../../docs/generators.md)
|
|
297
296
|
|
|
298
297
|
### Dependency libraries
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kit-starter.generated.d.ts","sourceRoot":"","sources":["../../src/starter-project/kit-starter.generated.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;;;
|
|
1
|
+
{"version":3,"file":"kit-starter.generated.d.ts","sourceRoot":"","sources":["../../src/starter-project/kit-starter.generated.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;;;GAwH3B,CAAC"}
|