@rootnative/cli 0.0.0-alpha.1 → 0.0.0-alpha.10
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 +45 -8
- package/dist/index.mjs +567 -160
- package/llms.txt +11 -3
- package/package.json +1 -1
package/llms.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @rootnative/cli — CLI for RootNative UI
|
|
2
2
|
|
|
3
|
-
> Version: 0.0.0-alpha.
|
|
3
|
+
> Version: 0.0.0-alpha.10
|
|
4
4
|
> Binary: `rootnative`
|
|
5
5
|
> Requirements: Node >=18
|
|
6
6
|
|
|
@@ -15,9 +15,12 @@ Create a new project with RootNative UI pre-configured. Fetches the quickstart t
|
|
|
15
15
|
```bash
|
|
16
16
|
npx rootnative create # Interactive
|
|
17
17
|
npx rootnative create my-app # With name
|
|
18
|
+
npx rootnative create . # Into the current directory, named after it
|
|
18
19
|
npx rootnative create my-app -y # Non-interactive, accept defaults
|
|
19
20
|
```
|
|
20
21
|
|
|
22
|
+
Pass `.` to scaffold into the directory you are already in. The project name comes from that directory's name, and the directory is never deleted — the CLI lists any file the template would overwrite and asks first (with `-y` it stops and changes nothing). A named project goes into a new subdirectory, and the CLI asks before it deletes an existing one.
|
|
23
|
+
|
|
21
24
|
Options:
|
|
22
25
|
- `-y, --yes` — Skip prompts and use defaults
|
|
23
26
|
- `-t, --template <name>` — Template to use (`blank`, `with-router`)
|
|
@@ -47,10 +50,12 @@ Creates `rootnative.json`:
|
|
|
47
50
|
"$schema": "https://rootnative.github.io/ui/schema.json",
|
|
48
51
|
"aliases": { "components": "@/components/ui", "lib": "@/lib" },
|
|
49
52
|
"registryUrl": "https://raw.githubusercontent.com/rootnative/ui",
|
|
50
|
-
"registryVersion": "
|
|
53
|
+
"registryVersion": "v0.0.0-alpha.10"
|
|
51
54
|
}
|
|
52
55
|
```
|
|
53
56
|
|
|
57
|
+
`init` pins `registryVersion` to the `v<version>` git tag of the latest published release, so a project keeps fetching the same component sources until you run `rootnative upgrade` (which moves the pin forward). It falls back to `main` only when npm is unreachable or the tag has not been pushed yet.
|
|
58
|
+
|
|
54
59
|
#### `rootnative add <components...>`
|
|
55
60
|
|
|
56
61
|
Add components to your project. Resolves dependency graph, copies files with rewritten imports, installs npm deps.
|
|
@@ -58,7 +63,7 @@ Add components to your project. Resolves dependency graph, copies files with rew
|
|
|
58
63
|
```bash
|
|
59
64
|
npx rootnative add button
|
|
60
65
|
npx rootnative add card chip text-field
|
|
61
|
-
npx rootnative add appbar # auto-adds icon-button + typography
|
|
66
|
+
npx rootnative add appbar # auto-adds button + icon-button + typography
|
|
62
67
|
```
|
|
63
68
|
|
|
64
69
|
Options:
|
|
@@ -85,6 +90,7 @@ npx rootnative upgrade -y # Non-interactive — skip confirmation
|
|
|
85
90
|
|
|
86
91
|
Options:
|
|
87
92
|
- `-y, --yes` — Skip confirmation prompt
|
|
93
|
+
- `-a, --all` — Also update the installed component files, not just the package
|
|
88
94
|
- `--package-manager <pm>` — Package manager to use (`npm`, `yarn`, `pnpm`, `bun`)
|
|
89
95
|
|
|
90
96
|
What it does:
|
|
@@ -95,6 +101,8 @@ What it does:
|
|
|
95
101
|
5. Upgrades `@rootnative/core` and installs any new required peer dependencies in one step
|
|
96
102
|
6. Reports optional peer deps that aren't installed (does not auto-install optional deps)
|
|
97
103
|
7. Lists peer deps that are no longer required so you can remove them manually
|
|
104
|
+
8. Moves `registryVersion` forward to the new release tag, so later `add`/`update` calls fetch matching sources
|
|
105
|
+
9. With `-a, --all`, also updates the installed component files
|
|
98
106
|
|
|
99
107
|
#### `rootnative list`
|
|
100
108
|
|