Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/spikef/envirs-react-native-cli
A react native command tool build by Envirs Team.
https://github.com/spikef/envirs-react-native-cli
Last synced: 2 months ago
JSON representation
A react native command tool build by Envirs Team.
- Host: GitHub
- URL: https://github.com/spikef/envirs-react-native-cli
- Owner: Spikef
- License: mit
- Created: 2015-09-16T09:28:13.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-14T03:06:44.000Z (about 9 years ago)
- Last Synced: 2024-11-19T15:56:27.815Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 548 KB
- Stars: 8
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# envirs-react-native-cli
A react native command tool build by Envirs Team.
## Install
```
npm install envirs-react-native-cli -g
```## Commands
> Note: Begin start any command, you should cd to your react-native project first.
### bundle
Bundle the js files, support both ios and android.
> *Options*
> + -m --minify: whether to minify the bundle file.
> + -d --dev: whether to use the dev mode.*example:*
```
cd ~/helloworld
ernc bundle ios --minify
ernc bundle android --minify
```### keygen
Generate a private key for android apk.
*example:*
```
cd ~/helloworld
ernc keygen
```*snapshot:*
![image](https://github.com/Spikef/envirs-react-native-cli/raw/master/images/keygen.jpg)
### build \
Build the app package.
> *Platform*
> + Android: build a android app.
> + iOS: build a iOS app, not support yet.*example:*
```
cd ~/helloworld
ernc build Android
```### name \
Set a new display name for app.
### name [Type]
Set a new version for app.
Type: 'code', 'name', 'all' or any allowed version value(eg 1, 1.0, 1.1.1), default is 'name'.
When the type is a version value, the real type depends on the value format.
*example:*
`
1 --> Type is 'code'
1.1 --> Type is 'name'
'name 1' --> Type is 'name'
'code 1.1' --> won't update
`> *Options*
> + -p, --plus [n]: An integer to plus, default is 1.
> + -m, --main: To update the main version number.
> + -n, --minor: To update the minor version number.
> + -f, --fix: To update the fix version number.### link [Package]
Use rnpm-plugin-link to link native packages to your app. More information to visit: (https://github.com/rnpm/rnpm)