react-native/local-cli
Martin Konicek 9712d335e2 Fix handling of dotfiles in 'react-native init' and 'react-native upgrade'
Summary:
Followup for CLI rewrite (a477aec10d). See the comment in the code for details.

**Test plan (required)**

- Published to Sinopia locally ([docs](https://github.com/facebook/react-native/tree/master/react-native-cli))
- Ran 'react-native init MyApp', the correct files were created (no more .npmignore, but have .gitignore):

      $ cd MyApp
      $ ls -a
      .			.flowconfig		__tests__		ios
      ..			.gitattributes		android			node_modules
      .babelrc		.gitignore		index.android.js	package.json
      .buckconfig		.watchmanconfig		index.ios.js		yarn.lock

- Changed .flowconfig, ran 'react-native upgrade'. Saw a prompt "Do you want to overwrite .flowconfig", tried answering first 'n' and then 'y'. When answering 'y' the file was overwritten by the version from the template as expected.
Closes https://github.com/facebook/react-native/pull/11051

Differential Revision: D4214831

Pulled By: ericvicenti

fbshipit-source-id: 7c6aae4f97c7d45e7241bf017ed2f6527d5d29fe
2016-11-21 12:58:29 -08:00
..
__mocks__ Fix lint in local-cli 2016-11-14 11:13:42 -08:00
bundle Fix lint in local-cli 2016-11-21 10:28:34 -08:00
core Fix lint in local-cli 2016-11-14 11:13:42 -08:00
dependencies Use native Promises 2016-11-08 12:28:47 -08:00
generator Fix handling of dotfiles in 'react-native init' and 'react-native upgrade' 2016-11-21 12:58:29 -08:00
init Fix after using hg 2016-11-21 04:58:29 -08:00
install Further RNPM integration 2016-08-22 08:58:37 -07:00
library Fix lint in local-cli 2016-11-21 10:28:34 -08:00
link Change matching pattern on settings.gradle 2016-11-08 16:28:43 -08:00
logAndroid Use native Promise in local-cli 2016-11-21 10:28:34 -08:00
logIOS Use native Promise in local-cli 2016-11-21 10:28:34 -08:00
runAndroid Fix lint in local-cli 2016-11-21 10:28:34 -08:00
runIOS Add the scheme configuration option to the run-ios command 2016-11-10 09:58:42 -08:00
server RN: Logger for Hot Module Reloading Logs 2016-11-20 19:58:30 -08:00
templates/HelloWorld Fix handling of dotfiles in 'react-native init' and 'react-native upgrade' 2016-11-21 12:58:29 -08:00
upgrade Fix lint in local-cli 2016-11-21 10:28:34 -08:00
util Rewrite 'react-native init' and 'react-native upgrade' without using Yeoman in preparation for templates support 2016-11-18 18:28:51 -08:00
.eslintrc Break out defaults, add flow for Config 2016-10-22 06:13:42 -07:00
cli.js Monkey-patch `fs` with graceful-fs before anything else runs 2016-10-14 11:13:54 -07:00
cliEntry.js Use native Promise in local-cli 2016-11-21 10:28:34 -08:00
commands.js Rewrite 'react-native init' and 'react-native upgrade' without using Yeoman in preparation for templates support 2016-11-18 18:28:51 -08:00
default.config.js Remove platform blacklists 2016-09-23 08:13:46 -07:00
setup_env.bat
setup_env.sh
wrong-react-native.js Fix usage of react-native cli inside package.json scripts 2016-04-26 15:42:35 -07:00