create-primitiv-ui 0.1.0 → 0.1.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 +27 -0
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# create-primitiv-ui
|
|
2
|
+
|
|
3
|
+
Set up **Primitiv UI** in a new or existing Vite / Next.js project with a
|
|
4
|
+
single command.
|
|
5
|
+
|
|
6
|
+
## Usage
|
|
7
|
+
|
|
8
|
+
```sh
|
|
9
|
+
npm create primitiv-ui@latest
|
|
10
|
+
# or: pnpm create primitiv-ui
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
It detects your package manager, installs
|
|
14
|
+
[`primitiv-ui`](https://www.npmjs.com/package/primitiv-ui) as a dev
|
|
15
|
+
dependency, then runs `primitiv init` to scaffold configuration. Any
|
|
16
|
+
arguments you pass are forwarded to `primitiv init`.
|
|
17
|
+
|
|
18
|
+
Once set up, add components with:
|
|
19
|
+
|
|
20
|
+
```sh
|
|
21
|
+
npx primitiv add button
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
> **Needs a real Node environment.** The CLI runs a native binary, so this
|
|
25
|
+
> won't work in StackBlitz / WebContainer. Use local, a Codespace, or Docker.
|
|
26
|
+
|
|
27
|
+
Part of the [Primitiv](https://github.com/primitiv-ui/primitiv) design system.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-primitiv-ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Set up Primitiv UI in an existing Vite or Next.js project. Use with: pnpm create primitiv-ui",
|
|
5
5
|
"keywords": ["primitiv", "design-system", "cli", "create", "react"],
|
|
6
6
|
"bin": {
|