@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.
- package/README.md +16 -7
- package/dist/main.mjs +2010 -1872
- 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
|
|
4
|
-
|
|
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
|
|
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.
|
|
33
|
-
|
|
34
|
-
|
|
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
|
|