@loomweaver/cli 0.14.1 → 0.14.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.
Files changed (3) hide show
  1. package/README.md +16 -7
  2. package/dist/main.mjs +2010 -1872
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -1,25 +1,34 @@
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
+
12
20
  It also validates what the platform parses defensively, which is where mistakes go unreported:
13
21
 
14
22
  ```bash
15
23
  npx @loomweaver/cli validate-manifest --id notes --capabilities ui,contributions
16
24
  npx @loomweaver/cli validate-i18n --dir src/lib/notes/src/lib/i18n --strict
17
25
  npx @loomweaver/cli validate-catalog --file public/plugins/catalog.json --strict
26
+ npx @loomweaver/cli validate-commands --dir src/lib/notes
18
27
  ```
19
28
 
20
29
  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.
30
+ version matches the platform packages: `loomweaver --version` tells you which `@loomweaver/shell` the
31
+ output fits.
23
32
 
24
33
  ## Why this exists next to `@loomweaver/mcp`
25
34
 
@@ -29,9 +38,9 @@ differ in who drives:
29
38
  - **`@loomweaver/cli`** — you pass flags; the CLI writes the files. Scriptable, repeatable, usable in CI.
30
39
  - **`@loomweaver/mcp`** — you describe what you want; your assistant picks the options and writes the files.
31
40
 
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`.
41
+ `@loomweaver/devkit` is the third adapter: an Nx generator collection. Because Nx hands it a virtual
42
+ tree of the workspace, it also registers the project and adds the tsconfig alias. See
43
+ `docs/scaffolding.md`.
35
44
 
36
45
  ## Guards
37
46