Commit Graph
1197 Commits
Author SHA1 Message Date
Martín Bigio c941f141ca Breaking change: Move bundle to private-cli
Summary: @​public

We need to start using the `private-cli` for the new asset system. Note this is a breaking change! People will have to upgrade their workflows/scripts to start using the new cli. Otherwise we'd need to build a thin adapter that is aware of both APIs which is something we;d like to avoid. The major API changes are:
  - API is now `entry-file` based instead of `url` based.
  - /s/--out/--bundle-output
  - /s/--out/--sourcemap-output

Also these parameters have no longer default values, you need to specify them. For instance, if you want to generate the sourcemaps you need to pass in the `--sourcemap-output` option

Lastly, additional project roots or asset roots need to be specified on the `rn-cli.config.js`.

Reviewed By: @frantic

Differential Revision: D2533877

fb-gh-sync-id: a45f9095fdf9442a9106ea7bb6a6b7f651d25273
2015-10-13 11:48:30 -07:00
Martín Bigio 184811ecb7 Introduce configuration template
Summary: @​public

We're rolling out a replacement for `local-cli`. As part of the process we moved many hardcoded values into a JS based configuration file.

Reviewed By: @vjeux

Differential Revision: D2533111

fb-gh-sync-id: 7250bddee9989b089ded409104e098ef15d79498
2015-10-13 06:44:14 -07:00
Felix Oghină 2bc4169c8c [cli] suppress yeoman create output in init 2015-10-12 16:10:18 +01:00
Martin Konicek 621d4c7ea5 [Android] Add default Proguard config 2015-10-09 17:13:46 +01:00
Martin Konicek bebd461dba Add a comment to CLI's init 2015-10-08 17:49:05 +01:00
Nick Simmons 679f8df0f1 [cli] make init backwards-compatible for real 2015-10-07 17:39:22 -04:00
Christopher Chedeau 4225f4eb75 Merge pull request #3241 from vjeux/warning_cli
[cli] Add a big warning to stop people from modifying the global cli
2015-10-05 11:21:51 -07:00
Christopher Chedeau 9c153e4c9a [cli] Add a big warning to stop people from modifying the global cli 2015-10-05 11:20:04 -07:00
Christopher Chedeau 47384a6100 [cli] Use contributing.md as readme
The readme is basically empty but contributing has a ton of useful information. Github's interface show everything in readme inline when you open the folder, so might as well make this information more visible.
2015-10-05 10:57:39 -07:00
Ben Vinegar d8b301f14d Add --write-sourcemap option to 'bundle' cli command (fixes GH-3202) 2015-10-02 16:01:18 -07:00
Felix Oghină a4dccf345a [cli] make init backwards-compatible 2015-10-02 14:44:20 +01:00
Benjamin Winterberg baa46213fb Add --verbose option (fixes #2797) 2015-10-02 10:51:45 +02:00
Atticus White 19bcc13ca3 add android .gradle and build directories to sample app gitignore 2015-10-01 15:09:44 -04:00
Martin Konicek 9fede15e82 [cli] Formatting 2015-10-01 15:33:45 +01:00
Martin Konicek 73f51d5e47 [cli] Fix 'react-native start' on Windows
Based on https://github.com/facebook/react-native/pull/2989
Thanks @BerndWessels!
2015-10-01 15:28:05 +01:00
Felix Oghină cc6fc2ff09 Merge pull request #2713 from jmhdez/fix-appName-on-init
[cli] pass arguments from cli instead of using process.argv in init
2015-10-01 12:06:24 +01:00
Felix Oghină 2c97dc160f Merge pull request #2713 from jmhdez/fix-appName-on-init
[cli] pass arguments from cli instead of using process.argv in init
2015-10-01 12:06:24 +01:00
jmhdez 9cb98bdff2 Respect projectName on template creation 2015-10-01 12:39:35 +02:00
jmhdez 3667641d4f Respect projectName on template creation 2015-10-01 12:39:35 +02:00
Felix Oghină 6e0b6109ca [SampleApp] adding unsynced changes from PR #3025 2015-09-30 15:15:30 +01:00
Felix Oghina 17cc131c43 [cli] spawn xterm on linux to run the packager
Also use ANDROID_HOME env var when running adb.
2015-09-28 20:14:07 +01:00
Felix Oghină 5da079d48a [cli] merge yeoman tests into one file to avoid concurrenct issues with jest 2015-09-24 17:02:43 +01:00
Felix Oghină 4f767ac7c8 [cli] use different names in generator tests 2015-09-24 13:54:01 +01:00
Jan Kassens e43f2ce72e Update cacheVersion in bundle.js
As requested by @vjeux, this moves the change to this file to a separate PR.

For more info see #2905.
2015-09-23 15:24:54 -07:00
Aaron Chiu 8fa93d298b merge the root .flowconfig and local-cli/generator/templates/_flowconfig
Test Plan: flow check && scripts/e2e-tests.sh
2015-09-23 21:47:43 +01:00
Pieter De Baets dc0098a2fc Bump flow version 2015-09-18 19:28:38 -07:00
DengYun 7b15219db1 Merge branch 'master' of github.com:facebook/react-native into master-pr-6 2015-09-18 01:02:56 +08:00
DengYun a976c9e3d5 let 'react-native bundle' support platform option.
react-native bundle --platform android --minify
2015-09-18 00:58:50 +08:00
Kyle Corbitt 8ece251d30 handle back button press in JS 2015-09-17 12:09:19 +01:00
Christopher Chedeau cf9865d804 Fix more tests
Summary: beeper node modules has a `return` statement outside of a function which doesn't parse. To fix it, we mock it. Also, setupEnvPolyfills is no longer being used.
Closes https://github.com/facebook/react-native/pull/2770

Reviewed By: @​svcscm

Differential Revision: D2448882

Pulled By: @vjeux
2015-09-16 13:05:30 -07:00
Felix Oghină 43f2e1d5f7 [cli] don't swallow require(local_cli) errors 2015-09-16 17:17:13 +01:00
Felix Oghină c9265cc7a9 [cli] update appcompat and gradle tools versions in the template 2015-09-16 16:30:31 +01:00
Christopher Chedeau 0ccc87196d Merge pull request #2725 from javache/fix-flow-config
Update generator's flow config
2015-09-15 21:08:55 -07:00
Pieter De Baets 8e47e4604d Update generator's flow config 2015-09-15 11:20:24 -07:00
Pieter De Baets 0ea3490d56 Disable code stripping for DEBUG builds 2015-09-15 09:44:15 -07:00
Martin Konicek 17c6e8af8f Release React Native for Android
This is an early release and there are several things that are known
not to work if you're porting your iOS app to Android.

See the Known Issues guide on the website.

We will work with the community to reach platform parity with iOS.
2015-09-14 18:13:39 +01:00
Martin Konicek d583a9ebf2 Release React Native for Android
This is an early release and there are several things that are known
not to work if you're porting your iOS app to Android.

See the Known Issues guide on the website.

We will work with the community to reach platform parity with iOS.
2015-09-14 18:13:39 +01:00
Christopher Chedeau 5762ff47bd A deep dependency of yeoman just spams the console.log with giant json. This diff silences console.log around the require to kill them 2015-09-10 09:48:15 -07:00
Alexander Kotliarskyi db32d70574 Merge pull request #2573 from nsimmons/cli/add_version_argument
[CLI] Add version argument
2015-09-10 16:23:04 +01:00
Pieter De Baets 6f57e50cac Use new packager URL in e2e test 2015-09-10 14:41:16 +01:00
Nick Simmons 4a2dea2230 [CLI] Add version argument 2015-09-08 17:48:16 -04:00
Nick Simmons cf47380e54 updated contributing guide sinopia section to deal with use auth issue 2015-09-05 14:39:57 -04:00
Rishab U Hegde 7f620bfd5d Changing Linked Libraries URI to point to the right page 2015-08-26 18:47:03 -07:00
Martin Konicek 2f720d3d04 Update CONTRIBUTING.md 2015-08-26 17:04:53 +01:00
Martin Konicek 3a9d129288 Update react-native-cli/CONTRIBUTING.md 2015-08-26 16:35:03 +01:00
Martin Konicek 515f5623ca Update react-native-cli/CONTRIBUTING.md 2015-08-26 16:04:48 +01:00
Martin Konicek b79bae7514 Update react-native-cli/CONTRIBUTING.md 2015-08-26 16:02:43 +01:00
Martin Konicek df57e1fa32 [cli] Fix iOS app template 2015-08-25 19:25:17 +01:00
Felix Oghină 7a8c32a3c9 [cli] add docs on how to contribute to the CLI 2015-08-18 15:56:26 +01:00
Felix Oghină 6a46e55428 [e2e] fix e2e tests
* use new _flowconfig in generator template
* increase sinopia max_body_size
* remove breaking `cd` command from e2e-test.sh
2015-08-18 11:51:03 +01:00