react-native/local-cli
Philipp von Weitershausen dd9b3e13a9 Allow rn-cli.config.js to specify the default transformer
Summary:
This will allow consumers to supply their own transformer to all `react-native` cli commands by simply implementing `rn-cli.config.js` and overriding `getTransformModulePath()`. That way they don't have to fork various parts of the iOS and Android build system that React Native already provides just to add a `--transformer` command line argument.

**Test plan:** Applied this patch to the React Native version in my app, implemented `getTransformModulePath()` in my `rn-cli.config.js`, and verified that my custom transformer is invoked.
Closes https://github.com/facebook/react-native/pull/7961

Differential Revision: D3404201

Pulled By: foghina

fbshipit-source-id: c7eaa85de84d485d06d23a2ffea899821b2cf71c
2016-06-22 08:13:26 -07:00
..
__mocks__ Fix more tests 2015-09-16 13:05:30 -07:00
__tests__ Temporarily disable cli tests 2015-11-12 07:05:01 -08:00
bundle Allow rn-cli.config.js to specify the default transformer 2016-06-22 08:13:26 -07:00
dependencies Allow rn-cli.config.js to specify the default transformer 2016-06-22 08:13:26 -07:00
generate Revert "Add folders to attempt to unblock sync" 2015-10-26 22:48:10 +00:00
generator Made react installed via reac-native init strict to unbreak 15.1.0 2016-06-03 03:43:31 -07:00
generator-android Add ReactInstanceHolder 2016-06-17 04:13:29 -07:00
generator-ios Fixed setDefaults not being called in React Native apps, fixed typo 2016-06-22 07:13:26 -07:00
library Remove 'react-native link' 2016-04-29 05:27:28 -07:00
rnpm Fix typo (shoud -> should) 2016-06-04 16:43:41 -07:00
runAndroid Setting current working directory for dev server. 2016-05-04 02:45:29 -07:00
runIOS fix runIOS: appPath is hardcoded, read from log 2016-06-22 03:43:33 -07:00
server Allow rn-cli.config.js to specify the default transformer 2016-06-22 08:13:26 -07:00
upgrade Fix comment typos 2016-06-03 02:43:57 -07:00
util Fix comment typos 2016-06-03 02:43:57 -07:00
version Add `--version` to `local-cli/cli.js` 2016-04-29 09:25:32 -07:00
cli.js Use a separate babel config for the local-cli and the packager 2016-05-21 06:58:26 -07:00
cliEntry.js react-native link calls into rnpm 2016-06-03 09:13:20 -07:00
default.config.js Allow rn-cli.config.js to specify the default transformer 2016-06-22 08:13:26 -07:00
generate-android.js Add license headers to local-cli 2015-10-20 09:55:21 -07:00
generator-utils.js flowconfig adds flow/ folder 2016-03-21 06:26:34 -07:00
setup_env.bat Fix comments on .bat file 2015-10-28 21:36:07 -04:00
setup_env.sh Change ulimit to 2048 for non root Mac users 2016-02-06 11:45:37 -08:00
wrong-react-native.js Fix usage of react-native cli inside package.json scripts 2016-04-26 15:42:35 -07:00