@transitrix/cli 1.0.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/LICENSE +21 -0
- package/README.md +69 -0
- package/dist/cli.js +3184 -0
- package/dist/export-compliance.js +1076 -0
- package/dist/repo-validate.js +207 -0
- package/package.json +48 -0
- package/schemas/bpmn-dsl.schema.json +136 -0
- package/schemas/cervinrc.schema.json +23 -0
- package/schemas/transitrixrc.schema.json +23 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023-2026 Valerii Korobeinikov
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# @transitrix/cli
|
|
2
|
+
|
|
3
|
+
The Transitrix CLI — compile, validate, and report on Transitrix diagrams
|
|
4
|
+
(BPMN, Goals, FGCA, Capability Map, Process Blueprint, and the rest of the
|
|
5
|
+
Transitrix notation family) from any shell or CI pipeline.
|
|
6
|
+
|
|
7
|
+
This is the install-from-npm distribution of the same CLI shipped inside the
|
|
8
|
+
**Transitrix Studio** VS Code extension. Use it when you want the resolver
|
|
9
|
+
outside an editor — scripts, CI checks, downstream tools.
|
|
10
|
+
|
|
11
|
+
## Install
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npm install -g @transitrix/cli
|
|
15
|
+
transitrix --help
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Or run without installing:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
npx @transitrix/cli --help
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Quick reference
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
transitrix compile <input>.yaml <output>.bpmn # YAML → BPMN 2.0 XML
|
|
28
|
+
transitrix validate <input>.yaml # per-file validation
|
|
29
|
+
transitrix validate --scope=repo # whole-repo canon checks
|
|
30
|
+
transitrix metrics <input>.yaml [--json] # layout-quality metrics
|
|
31
|
+
transitrix export-compliance [--format md|pdf] # compliance report
|
|
32
|
+
transitrix serve [--port 8765] # local web UI
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
PDF compliance export requires WeasyPrint on `PATH`
|
|
36
|
+
(`pipx install weasyprint`).
|
|
37
|
+
|
|
38
|
+
## What's included
|
|
39
|
+
|
|
40
|
+
- `dist/cli.js` — bundled CLI entry point. Runtime npm dependencies
|
|
41
|
+
(`ajv`, `ajv-formats`, `bpmn-moddle`, `elkjs`, `js-yaml`, `xmlbuilder2`) are
|
|
42
|
+
declared in `dependencies` and resolved by npm at install time.
|
|
43
|
+
- `dist/repo-validate.js` and `dist/export-compliance.js` — lazy-loaded
|
|
44
|
+
handlers for the `validate --scope=repo` and `export-compliance`
|
|
45
|
+
subcommands. The Transitrix diagrams library is bundled into these.
|
|
46
|
+
- `schemas/bpmn-dsl.schema.json` — the YAML DSL JSON Schema used by the
|
|
47
|
+
validator and parser. Located next to `dist/` so the runtime path
|
|
48
|
+
`dist/../schemas/bpmn-dsl.schema.json` resolves.
|
|
49
|
+
|
|
50
|
+
## Versioning
|
|
51
|
+
|
|
52
|
+
`@transitrix/cli` ships on its own version line, independent of the
|
|
53
|
+
Transitrix Studio extension and `@transitrix/diagrams`. The first published
|
|
54
|
+
release is `1.0.0`.
|
|
55
|
+
|
|
56
|
+
## Naming
|
|
57
|
+
|
|
58
|
+
The package is born in the 2.0 era of the methodology. The legacy `cervin`
|
|
59
|
+
bin alias is not shipped — only `transitrix` is on `PATH`.
|
|
60
|
+
|
|
61
|
+
## License
|
|
62
|
+
|
|
63
|
+
MIT — see [`LICENSE`](./LICENSE).
|
|
64
|
+
|
|
65
|
+
## Links
|
|
66
|
+
|
|
67
|
+
- Monorepo: <https://github.com/transitrix/transitrix-studio>
|
|
68
|
+
- Issues: <https://github.com/transitrix/transitrix-studio/issues>
|
|
69
|
+
- Methodology spec: <https://github.com/transitrix/methodology>
|