@nona-creative/react-native-ci-utils
v1.2.2
Published
Utilities for generating ci related boilerplate for react native applications
Downloads
8
Readme
React Native CI Utils
Utility package for quick generation of working ci related config (at present fastlane and circleci)
Table of Contents
Installation
- run
npm i -D @nona-creative/react-native-ci-utils
Usage
- Run
npx @nona-creative/react-native-ci-utils
to get a list of available commands and options.
Quick Start (Config Generation)
- Install Fastlane by
cd ios
and then adding it to your ios project via a Gemfile as per the instructions and then runningbundle install
. - Initialise Fastlane (It will ask you some questions and create a rudimentary Fastfile and an Appfile for you)
- add the load_json plugin
bundle exec fastlane add_plugin load_json
(allow it to modify your Gemfile). - run
npx @nona-creative/react-native-ci-utils fastlane generate ios
from the root of your project to generate a Fastlane config file (you will be asked a few questions). - run
npx @nona-creative/react-native-ci-utils fastlane generate android
from the root of your project to generate a Fastlane config file (you will be asked a few questions). - run
npx @nona-creative/react-native-ci-utils circleci generate
from the root of your project to generate the accompanying circleci.config. - For the circleci config file to work you need a couple of commands defined in your package.json. You can find these commands in the example project:
bundle:<platform>
where platform is ios or android.deploy:<stage>:<platform>
where stage would be beta or release and platform is ios or android.
Please read through the iOS Playbook and android Playbook. For more information about the CircleCI commands please read the CircleCI Playbook.
Available Commands
To see a list of available commands run:
npm run help
Testing
npm run test
npm run test:watch