mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-01-12 17:33:15 +08:00
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:
committed by
Facebook Github Bot
parent
cd43fb8005
commit
9d3f598c2c
13
.eslintrc
13
.eslintrc
@@ -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
3
.github/CODEOWNERS
vendored
@@ -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
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
# rnpm
|
||||
/local-cli/rnpm
|
||||
/local-cli/server/middleware/heapCapture/bundle.js
|
||||
@@ -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",
|
||||
|
||||
2
react-native-cli/index.js
vendored
2
react-native-cli/index.js
vendored
@@ -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.
|
||||
|
||||
2
react-native-git-upgrade/cli.js
vendored
2
react-native-git-upgrade/cli.js
vendored
@@ -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');
|
||||
|
||||
3
react-native-git-upgrade/cliEntry.js
vendored
3
react-native-git-upgrade/cliEntry.js
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user