okforest 0.6.0 → 0.6.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
CHANGED
|
@@ -9,6 +9,16 @@ npx okforest validate . # exit 1 on errors; warnings never fail
|
|
|
9
9
|
npx okforest validate . --format json # for CI and tools
|
|
10
10
|
npx okforest inventory . # types, tags, keys, near-duplicates
|
|
11
11
|
npx okforest init sales-okf --template company --name "Sales knowledge"
|
|
12
|
+
npx okforest rule okf/type # why a rule exists, and how to fix it
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
`npx` runs it without installing anything. It needs Node.js 22 or later. To
|
|
16
|
+
run `okforest` directly, install it globally; in a repository, add it as a
|
|
17
|
+
development dependency instead, so everyone and CI run the same version:
|
|
18
|
+
|
|
19
|
+
```sh
|
|
20
|
+
npm install --global okforest
|
|
21
|
+
npm install --save-dev okforest
|
|
12
22
|
```
|
|
13
23
|
|
|
14
24
|
To also check D2 and Mermaid diagram syntax, install the optional packages
|
|
@@ -16,6 +26,7 @@ alongside it:
|
|
|
16
26
|
|
|
17
27
|
```sh
|
|
18
28
|
npx -p okforest -p @d2lang/d2 -p mermaid okforest validate .
|
|
29
|
+
npm install --save-dev okforest @d2lang/d2 mermaid # or in a repository
|
|
19
30
|
```
|
|
20
31
|
|
|
21
32
|
In GitHub Actions, use
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "okforest",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"description": "The OKForest CLI: validate Open Knowledge Format (OKF) v0.2 trees, inventory their metadata, and scaffold new trees from templates.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"okf",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"node": ">=22"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@okforest/okf": "0.6.
|
|
36
|
-
"@okforest/validate": "0.6.
|
|
35
|
+
"@okforest/okf": "0.6.2",
|
|
36
|
+
"@okforest/validate": "0.6.2"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/node": "^26.6.5",
|
|
@@ -10,6 +10,6 @@ v0.2 tree: one markdown file per concept, with YAML frontmatter.
|
|
|
10
10
|
- This README is not a concept: [`.okforest/settings.yaml`](.okforest/settings.yaml)
|
|
11
11
|
lists it under `ignore`.
|
|
12
12
|
- Validate with `npx okforest validate .`; the workflow in
|
|
13
|
-
`.github/workflows/okforest-validate.
|
|
13
|
+
`.github/workflows/okforest-validate.yaml` runs it on every pull request.
|
|
14
14
|
|
|
15
15
|
Created with the [OKForest CLI](https://github.com/okforest/cli) `company` template.
|
/package/templates/company/.github/workflows/{okforest-validate.yml → okforest-validate.yaml}
RENAMED
|
File without changes
|