@pmelab/gtd 6.14.0 → 7.1.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 +21 -19
- package/dist/gtd.bundle.mjs +850 -322
- package/docs/cli.md +69 -72
- package/docs/configuration.md +120 -57
- package/docs/development.md +2 -1
- package/docs/upgrading.md +23 -21
- package/package.json +1 -1
- package/schema.json +180 -0
package/README.md
CHANGED
|
@@ -49,28 +49,28 @@ Or run without installing:
|
|
|
49
49
|
npx @pmelab/gtd
|
|
50
50
|
```
|
|
51
51
|
|
|
52
|
-
|
|
52
|
+
That's it — gtd ships the **unified** workflow as its **built-in default**, so a
|
|
53
|
+
state command works out of the box with no configuration at all.
|
|
54
|
+
|
|
55
|
+
Optionally, seed the settings a project usually tunes — run once:
|
|
53
56
|
|
|
54
57
|
```bash
|
|
55
58
|
gtd init
|
|
56
59
|
```
|
|
57
60
|
|
|
58
|
-
This writes a `.gtdrc.json`
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
**no** default workflow: a state command run before `gtd init` fails, pointing
|
|
72
|
-
you back here. See [Configuration](docs/configuration.md#gtd-init) for the
|
|
73
|
-
template.
|
|
61
|
+
This writes a minimal `.gtdrc.json` seeding the one variable most projects
|
|
62
|
+
change — the test command (`vars.testCommand`, defaulting to `npm test`) — plus
|
|
63
|
+
a top-level `modes:` block suggesting **Prettier** as the steering-file
|
|
64
|
+
formatter (`npx prettier --write` for the built-in `qa`/`review` modes — format
|
|
65
|
+
only, so gtd still validates); edit or drop either freely (point `testCommand`
|
|
66
|
+
at your suite, swap Prettier for dprint or a script, delete a key). It writes
|
|
67
|
+
**no** `workflow:` key — the machine is built in — so review and commit the file
|
|
68
|
+
before your first `gtd step`. `gtd init` takes no argument and refuses to
|
|
69
|
+
clobber an existing config; it may also run in a plain parent directory (not a
|
|
70
|
+
git repo) to seed a shared config a nested repo picks up. To customize the
|
|
71
|
+
machine itself, add a `workflow:` key (there is no default fallback to merge
|
|
72
|
+
over — a `workflow:` is the whole definition). See
|
|
73
|
+
[Configuration](docs/configuration.md#gtd-init) for the details.
|
|
74
74
|
|
|
75
75
|
## How it works
|
|
76
76
|
|
|
@@ -91,6 +91,8 @@ Four commands drive it:
|
|
|
91
91
|
- **`gtd fix`** — start a brand new process that goes straight into repairing
|
|
92
92
|
the current failing tests, then runs the shared review/squash tail (a no-op if
|
|
93
93
|
the suite is already green).
|
|
94
|
+
- **`gtd visualize`** — serve an interactive diagram of the active workflow on a
|
|
95
|
+
local web server (the main flow, its sub-machines, and per-state details).
|
|
94
96
|
|
|
95
97
|
`gtd version` (or `gtd --version`/`-v`) prints the installed version and exits;
|
|
96
98
|
`gtd help` (or `gtd --help`/`-h`) prints the command list. Both short-circuit
|
|
@@ -182,8 +184,8 @@ Both halves are enforced by `gtd validate` and the `gtd step` gate.
|
|
|
182
184
|
## Documentation
|
|
183
185
|
|
|
184
186
|
- [STATES.md](STATES.md) — the full pattern-machine specification: the model,
|
|
185
|
-
the pattern grammar, resolution, retry, the squash lifecycle,
|
|
186
|
-
workflow
|
|
187
|
+
the pattern grammar, resolution, retry, the squash lifecycle, reusable
|
|
188
|
+
sub-machines, and the bundled workflow template
|
|
187
189
|
- [CLI reference](docs/cli.md) — every command, exit codes, JSON schemas,
|
|
188
190
|
repository requirements
|
|
189
191
|
- [Driving the loop](docs/loop.md) — the reference loop driver, `gtd-loop`,
|