nx-react-native-cli 2.5.0 → 2.5.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 +6 -2
- package/lib/index.cjs +21 -21
- package/package.json +1 -1
- package/templates/shared/.nvmrc +1 -1
package/README.md
CHANGED
|
@@ -27,13 +27,15 @@ npx nx-react-native-cli@latest create [workspace_name] [bundle_id]
|
|
|
27
27
|
**Options:**
|
|
28
28
|
- `--fresh` - Create without copying template files
|
|
29
29
|
- `--nx-version <version>` - Specify Nx version (default: 21.2.2)
|
|
30
|
-
- `--
|
|
30
|
+
- `--package-manager <pm>` - Package manager to use: yarn or npm (default: yarn)
|
|
31
|
+
- `--skip-install` - Skip package install
|
|
31
32
|
- `--skip-configs` - Skip prettier, eslint, and husky configs
|
|
32
33
|
|
|
33
34
|
**Examples:**
|
|
34
35
|
```bash
|
|
35
36
|
npx nx-react-native-cli@latest create MyApp com.company.myapp
|
|
36
37
|
npx nx-react-native-cli@latest create MyApp com.company.myapp --skip-configs
|
|
38
|
+
npx nx-react-native-cli@latest create MyApp com.company.myapp --package-manager npm
|
|
37
39
|
```
|
|
38
40
|
|
|
39
41
|
### Add Command
|
|
@@ -55,7 +57,8 @@ npx nx-react-native-cli@latest add [app_name] [bundle_id]
|
|
|
55
57
|
|
|
56
58
|
**Options:**
|
|
57
59
|
- `--fresh` - Add without copying template files
|
|
58
|
-
- `--
|
|
60
|
+
- `--package-manager <pm>` - Package manager to use: yarn or npm (default: yarn)
|
|
61
|
+
- `--skip-install` - Skip package install
|
|
59
62
|
- `--skip-configs` - Skip prettier, eslint, and husky configs
|
|
60
63
|
|
|
61
64
|
**Note:** Automatically detects NX version from workspace package.json
|
|
@@ -65,6 +68,7 @@ npx nx-react-native-cli@latest add [app_name] [bundle_id]
|
|
|
65
68
|
cd my-existing-workspace
|
|
66
69
|
npx nx-react-native-cli@latest add MyApp com.company.myapp
|
|
67
70
|
npx nx-react-native-cli@latest add MyApp com.company.myapp --skip-configs
|
|
71
|
+
npx nx-react-native-cli@latest add MyApp com.company.myapp --package-manager npm
|
|
68
72
|
```
|
|
69
73
|
|
|
70
74
|
## 🚀 Features
|