Remove references to local-cli

Summary: This cleans up various configurations after the removal of this folder.

Reviewed By: hramos

Differential Revision: D13338515

fbshipit-source-id: 9d6877921e15a183e46861626af831231333f42a
This commit is contained in:
Christoph Nakazawa
2018-12-07 04:47:03 -08:00
committed by Facebook Github Bot
parent cd43fb8005
commit 9d3f598c2c
7 changed files with 5 additions and 27 deletions

View File

@@ -254,19 +254,6 @@
},
"overrides": [
{
"files": [
"local-cli/**/*.js",
],
"rules": {
"lint/extra-arrow-initializer": 0,
"no-alert": 0,
"no-console-disallow": 0,
},
"env": {
"node": true,
},
},
{
"files": [
"**/__fixtures__/**/*.js",

3
.github/CODEOWNERS vendored
View File

@@ -9,6 +9,3 @@ React/CxxBridge/* @mhorowitz
ReactAndroid/src/main/java/com/facebook/react/animated/* @janicduplessis
**/*.md @hramos
package.json @hramos
local-cli/core/* @grabbou @kureev
local-cli/link/* @grabbou @kureev
local-cli/unlink/* @grabbou @kureev

View File

@@ -1,3 +0,0 @@
# rnpm
/local-cli/rnpm
/local-cli/server/middleware/heapCapture/bundle.js

View File

@@ -90,14 +90,12 @@
],
"testEnvironment": "node",
"collectCoverageFrom": [
"Libraries/**/*.js",
"local-cli/**/*.js"
"Libraries/**/*.js"
],
"coveragePathIgnorePatterns": [
"/__tests__/",
"/vendor/",
"<rootDir>/Libraries/react-native/",
"<rootDir>/local-cli/templates/"
"<rootDir>/Libraries/react-native/"
]
},
"main": "Libraries/react-native/react-native-implementation.js",

View File

@@ -21,7 +21,7 @@
// The only job of react-native-cli is to init the repository and then
// forward all the commands to the local version of react-native.
//
// If you need to add a new command, please add it to local-cli/.
// If you need to add a new command, please add it to react-native-local-cli.
//
// The only reason to modify this file is to add more warnings and
// troubleshooting information for the `react-native init` command.

View File

@@ -16,7 +16,7 @@ require('babel-register')({
require('babel-preset-stage-3'),
],
// Enable transpiling for react-native-git-upgrade AND the generator, just like the upgrade CLI command does
only: /(react-native-git-upgrade\/(?!(node_modules)))|(local-cli\/generator)/,
only: /(react-native-git-upgrade\/(?!(node_modules)))/,
});
var cliEntry = require('./cliEntry');

View File

@@ -290,8 +290,7 @@ async function run(requestedVersion, cliArgs) {
const generatorDir = path.resolve(
process.cwd(),
'node_modules',
'react-native',
'local-cli',
'react-native-local-cli',
'generator',
);
let projectBackupCreated = false;