Yeoman generators to kickstart your react-native v0.38+ projects.
As of now, the way those generators are configured is heavily opinionated and based on our own company needs.
In an existing React Native project, our generator contains sub-generators that will help you with:
- Setup
- Eslint --
yo rn-toolbox:eslint
- Base project --
yo rn-toolbox:base
- Jest --
yo rn-toolbox:jest
- Fastlane setup for multiple environments --
yo rn-toolbox:fastlane-setup
- Fastlane environment instantiation --
yo rn-toolbox:fastlane-env
- Icons and Splashscreen generation --
yo rn-toolbox:assets [--icon | --splash] <path>
- Eslint --
- Environment
- Visual Studio Code --
yo rn-toolbox:vscode
- Wallaby.js --
yo rn-toolbox:wallaby
- Visual Studio Code --
- Continuous integration / deployment
- TravisCI --
yo rn-toolbox:travisci
- CircleCI --
yo rn-toolbox:circleci
- Bitrise for continuous deployment --
yo rn-toolbox:bitrise
- TravisCI --
- You need
node 6
installed - Ruby >
2.2.3
(and <2.4
*) - Bundler installed (
gem install bundler
) - Yeoman installed (
npm i -g yo
) - Yarn installed (
npm i -g yarn
)
* Some gem dependencies (see issue #51) are not compatible with Ruby >= 2.4
(as of 2017-01-11).
Install the main yeoman
generator:
npm install -g yo generator-rn-toolbox
Then follow the docs for any sub-generator listed above in the features.
If starting from scratch, use the react-native init <ProjectName> && cd <ProjectName>
command to instantiate your React Native Project (for more go see the official React Native getting started).
It is recommended to initiate the git repository right after instantiating the app and to do you first commit.
It is also recommended to do a separate commit after running each of these steps.