@brainwav/diagram 1.0.1 → 1.0.3

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.
Files changed (2) hide show
  1. package/README.md +58 -2
  2. package/package.json +2 -1
package/README.md CHANGED
@@ -4,8 +4,11 @@ Generate codebase architecture diagrams from source files. No AI required.
4
4
 
5
5
  ## Table of Contents
6
6
 
7
+ - [Upgrade notice](#upgrade-notice)
8
+ - [Plain-language summary](#plain-language-summary)
7
9
  - [Install](#install)
8
10
  - [Quick start](#quick-start)
11
+ - [First-run checklist](#first-run-checklist)
9
12
  - [Commands](#commands)
10
13
  - [Diagram types](#diagram-types)
11
14
  - [Output formats](#output-formats)
@@ -15,6 +18,27 @@ Generate codebase architecture diagrams from source files. No AI required.
15
18
  - [Development](#development)
16
19
  - [License](#license)
17
20
 
21
+ ## Upgrade notice
22
+
23
+ ⚠️ `@brainwav/diagram@1.0.0` had a packaging regression and failed at runtime with
24
+ `Cannot find module './utils/commands'`. Please use
25
+ `@brainwav/diagram@1.0.1` or later.
26
+
27
+ ## Plain-language summary
28
+
29
+ This tool reads code and draws a map.
30
+ You point it at a repo.
31
+ It scans files.
32
+ It finds links.
33
+ It prints a clear graph.
34
+ You can save that graph.
35
+ You can save PNG or SVG files.
36
+ You can make short video clips.
37
+ You can test code layer rules.
38
+ You can run it on your laptop.
39
+ You can run it in CI.
40
+ The goal is simple: keep the code map clear and keep rule drift low.
41
+
18
42
  ## Install
19
43
 
20
44
  ```bash
@@ -38,6 +62,27 @@ diagram generate .
38
62
  diagram all .
39
63
  ```
40
64
 
65
+ ## First-run checklist
66
+
67
+ Use a small test repo first.
68
+ Run from the repo root.
69
+ Start with `diagram analyze .`.
70
+ Read the file and link count.
71
+ Next, run `diagram generate .`.
72
+ Save one file with `--output`.
73
+ Pick `.mmd` for text output.
74
+ Pick `.svg` for image output.
75
+ Use `diagram all .` for all views.
76
+ Use `--max-files` if runs are slow.
77
+ Keep path globs short and clear.
78
+ Skip build and vendored dirs.
79
+ Try `diagram test --init` for rules.
80
+ Then run `diagram test` to check rules.
81
+ Use `--dry-run` when match sets look odd.
82
+ Use `--verbose` if you need more detail.
83
+ Run `npm test` to check local health.
84
+ Run `npm run test:deep` for deep checks.
85
+
41
86
  ## Commands
42
87
 
43
88
  ### `diagram analyze [path]`
@@ -268,17 +313,24 @@ jobs:
268
313
  - run: npm ci
269
314
  - run: npm test
270
315
  - run: npm run test:deep
271
- - run: node src/diagram.js test . --format junit --output architecture-results.xml
316
+ - run: npm run ci:artifacts
317
+ - uses: actions/upload-artifact@v4
318
+ with:
319
+ name: diagram-ci-artifacts
320
+ path: .diagram
272
321
  - uses: dorny/test-reporter@v1
273
322
  if: success() || failure()
274
323
  with:
275
324
  name: Architecture Tests
276
- path: architecture-results.xml
325
+ path: .diagram/architecture-results.xml
277
326
  reporter: java-junit
278
327
  ```
279
328
 
280
329
  ## Documentation
281
330
 
331
+ - Getting started: [docs/getting-started.md](docs/getting-started.md)
332
+ - Architecture testing guide: [docs/architecture-testing.md](docs/architecture-testing.md)
333
+ - Migration guide: [docs/migration-from-dependency-cruiser.md](docs/migration-from-dependency-cruiser.md)
282
334
  - Contributor guide: [CONTRIBUTING.md](CONTRIBUTING.md)
283
335
  - Security policy: [SECURITY.md](SECURITY.md)
284
336
  - Support policy: [SUPPORT.md](SUPPORT.md)
@@ -286,6 +338,10 @@ jobs:
286
338
  - Maintainer docs index: [docs/README.md](docs/README.md)
287
339
  - Release history: [CHANGELOG.md](CHANGELOG.md)
288
340
 
341
+ ## Documentation signature
342
+
343
+ brAInwav - from demo to duty
344
+
289
345
  ## Development
290
346
 
291
347
  ```bash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brainwav/diagram",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Generate architecture diagrams from codebases",
5
5
  "main": "src/diagram.js",
6
6
  "bin": {
@@ -9,6 +9,7 @@
9
9
  "scripts": {
10
10
  "test": "node src/diagram.js analyze .",
11
11
  "test:deep": "node scripts/deep-regression.js",
12
+ "ci:artifacts": "mkdir -p .diagram && node src/diagram.js all . --output-dir .diagram && node src/diagram.js test . --format junit --output .diagram/architecture-results.xml",
12
13
  "prepublishOnly": "npm test",
13
14
  "release:prepare": "bash scripts/release-npm.sh",
14
15
  "release:prepare:initial": "bash scripts/release-npm.sh --initial",