@loomweaver/cli 0.14.1 → 0.14.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 (3) hide show
  1. package/README.md +19 -7
  2. package/dist/main.mjs +2024 -1849
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -1,25 +1,37 @@
1
1
  # @loomweaver/cli
2
2
 
3
- LoomWeaver's scaffolding as a command. It generates weavers, distributions and
4
- integrations into **any** project — no Nx workspace, no LoomWeaver checkout, no AI assistant.
3
+ LoomWeaver's scaffolding as a command. It takes an Angular application or an Nx workspace to a
4
+ running product in one go, and generates weavers, distributions and integrations into **any**
5
+ project: no Nx workspace, no LoomWeaver checkout, no AI assistant needed.
5
6
 
6
7
  ```bash
8
+ npx @loomweaver/cli init
7
9
  npx @loomweaver/cli weaver --id notes --command --shortcut 'mod+shift+n' --out src/lib/notes
8
10
  npx @loomweaver/cli list
9
11
  npx @loomweaver/cli --help
10
12
  ```
11
13
 
14
+ `init` installs the platform, scaffolds the distribution and a first weaver, and says what to serve.
15
+ Inside an Angular CLI application a scaffold also wires the workspace around the files it writes:
16
+ the style pipeline, the build target, the entry stylesheet, the composition root and any package
17
+ the output needs, listing each line it added. Anywhere else it writes the files and names what is
18
+ left to wire by hand.
19
+
20
+ A weaver's components are named with the selector prefix the Angular application declares in
21
+ `angular.json`, or `app` where it declares none; `--prefix` names another.
22
+
12
23
  It also validates what the platform parses defensively, which is where mistakes go unreported:
13
24
 
14
25
  ```bash
15
26
  npx @loomweaver/cli validate-manifest --id notes --capabilities ui,contributions
16
27
  npx @loomweaver/cli validate-i18n --dir src/lib/notes/src/lib/i18n --strict
17
28
  npx @loomweaver/cli validate-catalog --file public/plugins/catalog.json --strict
29
+ npx @loomweaver/cli validate-commands --dir src/lib/notes
18
30
  ```
19
31
 
20
32
  The generators are bundled in (`esbuild`, devkit inlined), so there is no transitive install, and the
21
- version matches the platform packages — `loom --version` tells you which `@loomweaver/shell` the output
22
- fits.
33
+ version matches the platform packages: `loomweaver --version` tells you which `@loomweaver/shell` the
34
+ output fits.
23
35
 
24
36
  ## Why this exists next to `@loomweaver/mcp`
25
37
 
@@ -29,9 +41,9 @@ differ in who drives:
29
41
  - **`@loomweaver/cli`** — you pass flags; the CLI writes the files. Scriptable, repeatable, usable in CI.
30
42
  - **`@loomweaver/mcp`** — you describe what you want; your assistant picks the options and writes the files.
31
43
 
32
- `@loomweaver/devkit` is the third adapter: an Nx generator collection. It is the only one that can change
33
- files as well as write them (it registers the project and adds the tsconfig alias), because Nx hands
34
- it a virtual tree of the workspace. See `docs/scaffolding.md`.
44
+ `@loomweaver/devkit` is the third adapter: an Nx generator collection. Because Nx hands it a virtual
45
+ tree of the workspace, it also registers the project and adds the tsconfig alias. See
46
+ `docs/scaffolding.md`.
35
47
 
36
48
  ## Guards
37
49