Skip to content

Latest commit

 

History

History
94 lines (42 loc) · 1.91 KB

using-development-build.md

File metadata and controls

94 lines (42 loc) · 1.91 KB

How use an Ignite CLI Development Build

This guide will walk you through how to setup and use a pre-release or experimental build of Ignite CLI.

Requirements

  • Node 7.6+
  • NPM 4 (ships with Node 7)
  • Yarn 20.3+

If you're on a Mac, you can use one of these techniques:

  • n - with npm i -g n && n 7.6
  • homebrew - with brew install node
  • nvm - with nvm install v7.6.0

Getting Started

Out With The Old

First, if you already have a copy of Ignite 1 or Ignite CLI installed with npm, uninstall it with the commands listed below.

Exact one depends on what you may have installed previously:

npm rm -g ignite
npm rm -g ignite-cli
npm rm -g react-native-ignite

In With The New

Clone Ignite CLI's repository from https://github.com/infinitered/ignite to your local development machine.

Note: Depending on the version of Ignite CLI you are targeting, you may be cloning a forked repository of Ignite CLI and the git URLs may look different.

[email protected]:infinitered/ignite.git
cd ignite

Now use yarn to install Ignite CLI:

yarn

Next make the ignite command available globally. To do this, run yarn link:

yarn link

Note: If you get an error at this point, it is probably related to not removing a previously installed version of Ignite CLI. See the commands above to uninstall Ignite CLI.

Testing Your Installation

To test your installation of Ignite CLI, let's try generating a new project. Navigate to a new directory where you'd like to create a new project and run the ignite new command:

cd ~
ignite new MyApp

Again, if you are having issues, the Infinite Red Community Slack may be able to help. You can find us by visiting http://community.infinite.red and then joining the #ignite channel.