React Native CI Utils
Utility package for quick generation of working ci related config (at present fastlane and circleci)
Table of Contents
- Table of Contents
- Quick Start (Config Generation - iOS)
npm i -D @nona-creative/react-native-ci-utils
npx @nona-creative/react-native-ci-utilsto get a list of available commands and options.
Quick Start (Config Generation)
Install Fastlane by
cd iosand then adding it to your ios project via a Gemfile as per the instructions and then running
- 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).
npx @nona-creative/react-native-ci-utils fastlane generate iosfrom the root of your project to generate a Fastlane config file (you will be asked a few questions).
npx @nona-creative/react-native-ci-utils fastlane generate androidfrom the root of your project to generate a Fastlane config file (you will be asked a few questions).
npx @nona-creative/react-native-ci-utils circleci generatefrom 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.
To see a list of available commands run:
npm run help
npm run test npm run test:watch