Skip to content

Commit 359e12f

Browse files
committed
Merge remote-tracking branch 'origin' into Esemesek/remove-dependencies
2 parents e35a80b + 861b0c3 commit 359e12f

265 files changed

Lines changed: 220 additions & 67 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintignore

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
**/node_modules/**
2-
**/debugger-ui/**
3-
**/templates/**
4-
**/global-cli/**
5-
**/flow-typed/**
1+
node_modules/
2+
debugger-ui/
3+
templates/
4+
global-cli/
5+
flow-typed/
6+
build/

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ node_modules
44
.idea
55
package-lock.json
66
npm-debug.log
7+
build/

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@ module.exports = {
55
[
66
require.resolve('@babel/preset-env'),
77
{
8-
targets: { node: '8' },
8+
targets: { node: 8 },
99
useBuiltIns: 'entry',
1010
},
1111
],
1212
require.resolve('@babel/preset-flow'),
1313
],
1414
plugins: [require.resolve('@babel/plugin-transform-strict-mode')],
15-
only: [new RegExp(`^${escapeRegExp(__dirname)}`)],
1615
};
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
__fixtures__
22
__tests__
3+
__mocks__
4+
src
Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
"version": "1.0.1",
44
"description": "React Native CLI",
55
"license": "MIT",
6-
"main": "cli.js",
6+
"main": "build/index.js",
77
"bin": {
8-
"react-native": "bin.js"
8+
"react-native": "build/bin.js"
99
},
1010
"engineStrict": true,
1111
"engines": {
@@ -15,8 +15,12 @@
1515
"type": "git",
1616
"url": "https://github.com/react-native-community/react-native-cli.git"
1717
},
18+
"scripts": {
19+
"prepublish": "yarn build",
20+
"build": "rm -rf build; babel src --copy-files --out-dir build --ignore '**/__tests__/**','**/__mocks__/**','**/__fixtures__/**'"
21+
},
1822
"jest": {
19-
"displayName": "local",
23+
"displayName": "cli",
2024
"testPathIgnorePatterns": [
2125
"/node_modules/",
2226
"/templates/"
@@ -27,11 +31,6 @@
2731
"testEnvironment": "node"
2832
},
2933
"dependencies": {
30-
"@babel/core": "^7.1.5",
31-
"@babel/plugin-transform-strict-mode": "^7.2.0",
32-
"@babel/preset-env": "^7.1.5",
33-
"@babel/preset-flow": "^7.0.0",
34-
"@babel/register": "^7.0.0",
3534
"chalk": "^1.1.1",
3635
"commander": "^2.9.0",
3736
"compression": "^1.7.1",
@@ -67,6 +66,11 @@
6766
"xmldoc": "^0.4.0"
6867
},
6968
"devDependencies": {
69+
"@babel/cli": "^7.2.3",
70+
"@babel/core": "^7.1.5",
71+
"@babel/plugin-transform-strict-mode": "^7.2.0",
72+
"@babel/preset-env": "^7.1.5",
73+
"@babel/preset-flow": "^7.0.0",
7074
"flow-bin": "0.87.0",
7175
"react-native": "^0.57.0"
7276
},

0 commit comments

Comments
 (0)