react-native/local-cli/link
Martin Konicek 17c175a149 CLI: Add support for templates fetched from npm
Summary:
This PR allows anyone to publish templates for React Native.

It's possible for people to publish modules for React Native, we should also support custom templates. A suggestion from a Cordova mantainer where they did the same thing suggests this is useful:
https://github.com/mkonicek/AppTemplateFeedback/issues/1

I published a sample template [react-native-template-demo](https://www.npmjs.com/package/react-native-template-demo).

(GitHub: https://github.com/mkonicek/react-native-template-demo)

With this PR anyone can then use that template:

`react-native init MyApp --template demo`

The convention is: if someone publishes an npm package called `react-native-template-foo`, people can use it by running `react-native init MyApp --template foo`.

Use a template called `react-native-template-demo` from npm:

`react-native init MyApp --template demo`

Use a local template:

`react-native init MyApp --template file:///path_to/react-native-template-dem
Closes https://github.com/facebook/react-native/pull/12548

Differential Revision: D4620567

Pulled By: mkonicek

fbshipit-source-id: bb40d457a7fec28edb577f08137e73241072de3a
2017-02-27 14:04:57 -08:00
..
__fixtures__ Fully support new import system on iOS 2017-01-12 14:58:28 -08:00
__tests__ Fully support new import system on iOS 2017-01-12 14:58:28 -08:00
android Change matching pattern on settings.gradle 2016-11-08 16:28:43 -08:00
ios Don't add duplicate font entries to plist during link (iOS) 2017-02-14 17:16:54 -08:00
windows react-native link (aka rnpm) support for Windows 2016-12-10 16:58:28 -08:00
commandStub.js Add pre/postunlink 2016-08-24 10:58:46 -07:00
getDependencyConfig.js Further RNPM integration 2016-08-22 08:58:37 -07:00
getProjectDependencies.js Further RNPM integration 2016-08-22 08:58:37 -07:00
groupFilesByType.js Further RNPM integration 2016-08-22 08:58:37 -07:00
link.js CLI: Add support for templates fetched from npm 2017-02-27 14:04:57 -08:00
pollParams.js Further RNPM integration 2016-08-22 08:58:37 -07:00
promiseWaterfall.js Further RNPM integration 2016-08-22 08:58:37 -07:00
promisify.js Add pre/postunlink 2016-08-24 10:58:46 -07:00
unlink.js Improve `unlink` on rnpm 2017-01-12 13:58:34 -08:00