domaintrail 0.1.0 → 0.3.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 +14 -8
- package/dist/dt.js +930 -387
- package/dist/web/chunk-s7gt31ry.css +1 -0
- package/dist/web/{chunk-kxmrt1q2.js → chunk-xn56ecvv.js} +99 -99
- package/dist/web/index.html +1 -1
- package/package.json +3 -3
- package/dist/web/chunk-qa46tqx1.css +0 -1
package/README.md
CHANGED
|
@@ -53,11 +53,14 @@ same text, so people and AI agents get it without leaving the terminal:
|
|
|
53
53
|
`<context>/context.dt` (see [ADR 0009](docs/adr/0009-file-layout.md))
|
|
54
54
|
- [DSL](docs/guide.md#dsl): contexts, aggregates, entities, values, states, commands, events, errors,
|
|
55
55
|
[domain primitives](docs/guide.md#domain-primitives), [unions](docs/guide.md#unions),
|
|
56
|
-
[shared contexts](docs/guide.md#shared-contexts), [
|
|
56
|
+
[shared contexts](docs/guide.md#shared-contexts), [field sets](docs/guide.md#field-sets),
|
|
57
|
+
[domain and technical fields](docs/guide.md#domain-fields-and-technical-fields),
|
|
58
|
+
[names (表示名)](docs/guide.md#names-labels-and-descriptions)
|
|
57
59
|
and [invariant expressions](docs/guide.md#invariant-expressions)
|
|
58
|
-
- [Rules](docs/guide.md#rules) (M001–
|
|
60
|
+
- [Rules](docs/guide.md#rules) (M001–M017, L001–L003) and [Generated TypeScript](docs/guide.md#generated-typescript):
|
|
59
61
|
[what is generated and what you write](docs/guide.md#generated-code-and-your-code) (see
|
|
60
|
-
[ADR 0011](docs/adr/0011-generated-code-boundary.md))
|
|
62
|
+
[ADR 0011](docs/adr/0011-generated-code-boundary.md)), [output directories](docs/guide.md#output-directories) and
|
|
63
|
+
[technical metadata](docs/guide.md#technical-metadata) (see [ADR 0013](docs/adr/0013-field-sets-and-technical-metadata.md))
|
|
61
64
|
|
|
62
65
|
A taste of the DSL:
|
|
63
66
|
|
|
@@ -68,15 +71,17 @@ context Sales "販売" {
|
|
|
68
71
|
id: OrderId
|
|
69
72
|
state Draft
|
|
70
73
|
state Confirmed { confirmedAt: Timestamp }
|
|
71
|
-
create command place()
|
|
72
|
-
command confirm(at: Timestamp)
|
|
74
|
+
create command place() -> Draft
|
|
75
|
+
command confirm(at: Timestamp) Draft -> Confirmed emits OrderConfirmed
|
|
73
76
|
}
|
|
74
77
|
persistent event OrderConfirmed { orderId: OrderId confirmedAt: Timestamp }
|
|
75
78
|
}
|
|
76
79
|
```
|
|
77
80
|
|
|
78
81
|
The design decisions behind the DSL are in [docs/adr](docs/adr): shared contexts ([0004](docs/adr/0004-shared-contexts.md)),
|
|
79
|
-
unions ([0005](docs/adr/0005-unions.md)), persistent events ([0008](docs/adr/0008-persistent-events.md))
|
|
82
|
+
unions ([0005](docs/adr/0005-unions.md)), persistent events ([0008](docs/adr/0008-persistent-events.md)),
|
|
83
|
+
command transitions ([0014](docs/adr/0014-command-transitions.md)), handlers per state
|
|
84
|
+
([0015](docs/adr/0015-handlers-per-state.md)) and more.
|
|
80
85
|
|
|
81
86
|
## Live View
|
|
82
87
|
|
|
@@ -138,8 +143,9 @@ bun run build # dist/: the CLI bundled for Node and the Live View p
|
|
|
138
143
|
|
|
139
144
|
### Release
|
|
140
145
|
|
|
141
|
-
|
|
142
|
-
|
|
146
|
+
Run `npm version <patch|minor|major>` and `git push --follow-tags`. The Release workflow tests, builds and stages the
|
|
147
|
+
package on npm; it is published only after you approve it on npmjs.com (Staged Packages) or with `npm stage approve`.
|
|
148
|
+
See [docs/releasing.md](docs/releasing.md).
|
|
143
149
|
|
|
144
150
|
| Path | Contents |
|
|
145
151
|
|---|---|
|