react-native/local-cli
Felix Oghină 9dc036d2b9 add gradle tasks for bundling js and assets in template
Summary: This adds gradle tasks that call `react-native bundle` with the correct args to bundle dev/release JS and assets. The dev task is disabled by default, as in dev mode people only use reload JS in most cases.

Submitting this as a pull request to have community visibility, although we have this code internally as well now and this will require an import.

* generate a project with `react-native init`, add some assets, run `./gradlew assembleRelease`, sign & zipalign generated APK, run it -> works
* enable dev bundling task, run `./gradlew installDebug` (not `react-native run-android` so as to not start the packager) -> works

Reviewed By: svcscm

Differential Revision: D2555071

Pulled By: foghina

fb-gh-sync-id: c3d9fcd4c77862e6a4db4e4d8d8cc39ee9dff3ab
2015-10-19 06:33:22 -07:00
..
__mocks__ Fix more tests 2015-09-16 13:05:30 -07:00
__tests__ Remove `install` command 2015-10-13 12:08:22 -07:00
generator Allow user to configure transformer through cl argument 2015-10-16 13:26:22 -07:00
generator-android add gradle tasks for bundling js and assets in template 2015-10-19 06:33:22 -07:00
generator-ios Fixes broken link to running on device 2015-10-16 03:41:21 -07:00
bundle.js Add --write-sourcemap option to 'bundle' cli command (fixes GH-3202) 2015-10-02 16:01:18 -07:00
cli.js Use `private-cli`'s server instead of `packager.js` 2015-10-16 15:01:23 -07:00
generate-android.js Release React Native for Android 2015-09-14 18:13:39 +01:00
generator-utils.js Added react-native new-library command 2015-05-15 09:17:27 +01:00
init.js [cli] suppress yeoman create output in init 2015-10-12 16:10:18 +01:00
new-library.js Changing Linked Libraries URI to point to the right page 2015-08-26 18:47:03 -07:00
run-android.js [cli] spawn xterm on linux to run the packager 2015-09-28 20:14:07 +01:00
run-packager.js [cli] Formatting 2015-10-01 15:33:45 +01:00
wrong-react-native.js Warn when installing globally react-native instead of react-native-cli 2015-04-08 11:15:56 -07:00