@react-grab/cli 0.1.0-beta.8 → 0.1.0-beta.9
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 +19 -19
- package/dist/cli.cjs +211 -101
- package/dist/cli.js +211 -101
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ Interactive CLI to install React Grab in your project.
|
|
|
5
5
|
## Usage
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npx
|
|
8
|
+
npx grab
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
### Interactive Mode (default)
|
|
@@ -13,7 +13,7 @@ npx @react-grab/cli
|
|
|
13
13
|
Running without options starts the interactive wizard:
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
-
npx
|
|
16
|
+
npx grab
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
### Non-Interactive Mode
|
|
@@ -22,44 +22,44 @@ Pass options to skip prompts:
|
|
|
22
22
|
|
|
23
23
|
```bash
|
|
24
24
|
# Auto-detect everything and install without prompts
|
|
25
|
-
npx
|
|
25
|
+
npx grab -y
|
|
26
26
|
|
|
27
27
|
# Specify framework
|
|
28
|
-
npx
|
|
28
|
+
npx grab -f next -r app -y
|
|
29
29
|
|
|
30
30
|
# Use specific package manager
|
|
31
|
-
npx
|
|
31
|
+
npx grab -p pnpm -y
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
## Options
|
|
35
35
|
|
|
36
|
-
| Option | Alias | Description | Choices
|
|
37
|
-
| ------------------- | ----- | --------------------------------------------- |
|
|
38
|
-
| `--framework` | `-f` | Framework to configure | `next`, `vite`, `webpack`
|
|
39
|
-
| `--package-manager` | `-p` | Package manager to use | `npm`, `yarn`, `pnpm`, `bun`
|
|
40
|
-
| `--router` | `-r` | Next.js router type | `app`, `pages`
|
|
41
|
-
| `--yes` | `-y` | Skip all confirmation prompts | -
|
|
42
|
-
| `--skip-install` | - | Skip package installation (only modify files) | -
|
|
43
|
-
| `--help` | `-h` | Show help | -
|
|
44
|
-
| `--version` | `-v` | Show version | -
|
|
36
|
+
| Option | Alias | Description | Choices |
|
|
37
|
+
| ------------------- | ----- | --------------------------------------------- | ---------------------------- |
|
|
38
|
+
| `--framework` | `-f` | Framework to configure | `next`, `vite`, `webpack` |
|
|
39
|
+
| `--package-manager` | `-p` | Package manager to use | `npm`, `yarn`, `pnpm`, `bun` |
|
|
40
|
+
| `--router` | `-r` | Next.js router type | `app`, `pages` |
|
|
41
|
+
| `--yes` | `-y` | Skip all confirmation prompts | - |
|
|
42
|
+
| `--skip-install` | - | Skip package installation (only modify files) | - |
|
|
43
|
+
| `--help` | `-h` | Show help | - |
|
|
44
|
+
| `--version` | `-v` | Show version | - |
|
|
45
45
|
|
|
46
46
|
## Examples
|
|
47
47
|
|
|
48
48
|
```bash
|
|
49
49
|
# Interactive setup
|
|
50
|
-
npx
|
|
50
|
+
npx grab
|
|
51
51
|
|
|
52
52
|
# Quick install with auto-detection
|
|
53
|
-
npx
|
|
53
|
+
npx grab -y
|
|
54
54
|
|
|
55
55
|
# Next.js App Router
|
|
56
|
-
npx
|
|
56
|
+
npx grab -f next -r app -y
|
|
57
57
|
|
|
58
58
|
# Vite with pnpm
|
|
59
|
-
npx
|
|
59
|
+
npx grab -f vite -p pnpm -y
|
|
60
60
|
|
|
61
61
|
# Only modify files (skip npm install)
|
|
62
|
-
npx
|
|
62
|
+
npx grab --skip-install -y
|
|
63
63
|
```
|
|
64
64
|
|
|
65
65
|
## Supported Frameworks
|