@react-native-reusables/cli 0.0.10 → 0.0.11
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 +95 -5
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,7 +1,97 @@
|
|
|
1
1
|
# React Native Reusables CLI
|
|
2
2
|
|
|
3
|
-
>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
> Please follow [the initial setup steps](https://rnr-docs.vercel.app/getting-started/initial-setup/) before using
|
|
4
|
+
|
|
5
|
+
A CLI to add [react-native-reusables](https://rnr-docs.vercel.app/getting-started/introduction/) components to your project. When components depend on other components and/or primitives, they will also be added to your project.
|
|
6
|
+
|
|
7
|
+
## How to use
|
|
8
|
+
|
|
9
|
+
Use the following command _(with optional arugments and flags)_:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npx @react-native-reusables/cli@latest add
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
### Arguments
|
|
16
|
+
|
|
17
|
+
If you do not add arguments, you will be promted to select the `ui` components you would like to add to your project.
|
|
18
|
+
|
|
19
|
+
#### UI Components
|
|
20
|
+
|
|
21
|
+
- `accordion`
|
|
22
|
+
- `alert-dialog`
|
|
23
|
+
- `aspect-ratio`
|
|
24
|
+
- `avatar`
|
|
25
|
+
- `badge`
|
|
26
|
+
- `button`
|
|
27
|
+
- `card`
|
|
28
|
+
- `checkbox`
|
|
29
|
+
- `collapsible`
|
|
30
|
+
- `context-menu`
|
|
31
|
+
- `dialog`
|
|
32
|
+
- `dropdown-menu`
|
|
33
|
+
- `hover-card`
|
|
34
|
+
- `input`
|
|
35
|
+
- `label`
|
|
36
|
+
- `menubar`
|
|
37
|
+
- `navigation-menu`
|
|
38
|
+
- `popover`
|
|
39
|
+
- `radio-group`
|
|
40
|
+
- `select`
|
|
41
|
+
- `separator`
|
|
42
|
+
- `skeleton`
|
|
43
|
+
- `switch`
|
|
44
|
+
- `table`
|
|
45
|
+
- `tabs`
|
|
46
|
+
- `text`
|
|
47
|
+
- `textarea`
|
|
48
|
+
- `toggle`
|
|
49
|
+
- `toggle-group`
|
|
50
|
+
- `tooltip`
|
|
51
|
+
- `typography`
|
|
52
|
+
|
|
53
|
+
#### Primitive Components
|
|
54
|
+
|
|
55
|
+
- `accordion-primitive`
|
|
56
|
+
- `alert-dialog-primitive`
|
|
57
|
+
- `aspect-ratio-primitive`
|
|
58
|
+
- `avatar-primitive`
|
|
59
|
+
- `checkbox-primitive`
|
|
60
|
+
- `collapsible-primitive`
|
|
61
|
+
- `context-menu-primitive`
|
|
62
|
+
- `dialog-primitive`
|
|
63
|
+
- `dropdown-menu-primitive`
|
|
64
|
+
- `hover-card-primitive`
|
|
65
|
+
- `label-primitive`
|
|
66
|
+
- `menubar-primitive`
|
|
67
|
+
- `navigation-menu-primitive`
|
|
68
|
+
- `popover-primitive`
|
|
69
|
+
- `progress-primitive`
|
|
70
|
+
- `radio-group-primitive`
|
|
71
|
+
- `select-primitive`
|
|
72
|
+
- `separator-primitive`
|
|
73
|
+
- `slider-primitive`
|
|
74
|
+
- `switch-primitive`
|
|
75
|
+
- `table-primitive`
|
|
76
|
+
- `tabs-primitive`
|
|
77
|
+
- `toast-primitive`
|
|
78
|
+
- `toggle-primitive`
|
|
79
|
+
- `toggle-group-primitive`
|
|
80
|
+
- `toolbar-primitive`
|
|
81
|
+
- `tooltip-primitive`
|
|
82
|
+
- `hooks-primitive`
|
|
83
|
+
- `portal-primitive`
|
|
84
|
+
- `slot-primitive`
|
|
85
|
+
- `types-primitive`
|
|
86
|
+
- `utils-primitive`
|
|
87
|
+
|
|
88
|
+
### Flags
|
|
89
|
+
|
|
90
|
+
- `-o` or `--overwrite`: Overwrite existing files. Default to `false`
|
|
91
|
+
- `-c <cmd>` or `--cwd <cwd>`: The working directory. Defaults to the current directory.
|
|
92
|
+
|
|
93
|
+
```mdx
|
|
94
|
+
This project uses code from shadcn.
|
|
95
|
+
The code is licensed under the MIT License.
|
|
96
|
+
https://github.com/shadcn-ui/ui
|
|
97
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native-reusables/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"description": "Add Universal components and primitives to your React-Native project.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"release": "changeset version",
|
|
112
112
|
"pub:beta": "pnpm publish --no-git-checks --access public --tag beta",
|
|
113
113
|
"pub:next": "pnpm publish --no-git-checks --access public --tag next",
|
|
114
|
-
"pub:release": "pnpm publish --
|
|
114
|
+
"pub:release": "pnpm publish --access public",
|
|
115
115
|
"test": "vitest run"
|
|
116
116
|
}
|
|
117
117
|
}
|