visigraph 0.0.4 → 0.0.7
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 +31 -2
- package/dist/main.js +464 -58
- package/dist/main.js.map +1 -1
- package/package.json +6 -4
package/README.md
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
# visigraph
|
|
2
2
|
|
|
3
3
|
Command line for [VisiGraph](https://github.com/textologylabs/visigraph):
|
|
4
|
-
|
|
4
|
+
bringing your architecture to life.
|
|
5
5
|
|
|
6
|
-
Early, pre-1.0. Today it validates a model
|
|
6
|
+
Early, pre-1.0. Today it validates a model. Next it builds a static site
|
|
7
|
+
from one: an explorable model you can zoom, drill into and follow, with
|
|
8
|
+
journeys you can play on top. No server; works as a file, a GitLab Pages
|
|
9
|
+
site or a Confluence embed.
|
|
7
10
|
|
|
8
11
|
```sh
|
|
9
12
|
npm install -g visigraph
|
|
@@ -18,3 +21,29 @@ reference, with a path to each one:
|
|
|
18
21
|
```
|
|
19
22
|
error: model.yaml:journeys[0].steps[2].endpoint: container 'auth-service' has no endpoint 'token'
|
|
20
23
|
```
|
|
24
|
+
|
|
25
|
+
## Self-update
|
|
26
|
+
|
|
27
|
+
On an interactive launch the CLI checks the npm registry for a newer
|
|
28
|
+
version and offers to update. Saying yes installs the new version and
|
|
29
|
+
re-runs the command you typed on it. Nothing is ever installed without
|
|
30
|
+
that answer.
|
|
31
|
+
|
|
32
|
+
- Skipped entirely in CI, pipes and non-terminal shells.
|
|
33
|
+
- The network check uses the registry npm is configured with (so a
|
|
34
|
+
corporate mirror works), is cached for 24 hours, and gives up silently
|
|
35
|
+
after two seconds. A failed check never blocks or errors the command.
|
|
36
|
+
- Under `npx`, it only prints the newer version and suggests
|
|
37
|
+
`npx visigraph@latest`.
|
|
38
|
+
- `--version` and `--help` never check.
|
|
39
|
+
|
|
40
|
+
Disable it:
|
|
41
|
+
|
|
42
|
+
- per shell or container image: `VISIGRAPH_NO_UPDATE_CHECK=1`
|
|
43
|
+
- centrally, for locked-down or air-gapped environments, in
|
|
44
|
+
`~/.visigraph/config.yaml`:
|
|
45
|
+
|
|
46
|
+
```yaml
|
|
47
|
+
update:
|
|
48
|
+
check: false
|
|
49
|
+
```
|