mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-01-12 22:51:18 +08:00
Clean up old build process and Babel config (#3406)
This commit is contained in:
committed by
Brent Vatne
parent
836a164693
commit
37c3a357fc
27
.babelrc
27
.babelrc
@@ -1,28 +1,3 @@
|
||||
{
|
||||
"env": {
|
||||
// For RN example development
|
||||
"development": {
|
||||
"presets": ["react-native"]
|
||||
},
|
||||
// For Jest
|
||||
"test": {
|
||||
"presets": ["react-native"]
|
||||
},
|
||||
// For publishing to NPM for RN
|
||||
"publish-rn": {
|
||||
"presets": ["react-native-syntax"]
|
||||
},
|
||||
// For publishing to NPM for web
|
||||
"publish-web": {
|
||||
"presets": ["es2015", "stage-1", "react"],
|
||||
"plugins": [
|
||||
[
|
||||
"transform-define",
|
||||
{
|
||||
"__DEV__": false
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
"presets": ["react-native"]
|
||||
}
|
||||
|
||||
4
.gitignore
vendored
4
.gitignore
vendored
@@ -8,8 +8,6 @@ jsconfig.json
|
||||
# NodeJS
|
||||
npm-debug.log
|
||||
node_modules
|
||||
lib-rn
|
||||
lib
|
||||
yarn-error.log
|
||||
|
||||
# OS X
|
||||
@@ -19,4 +17,4 @@ yarn-error.log
|
||||
.exponent
|
||||
|
||||
# Jest
|
||||
coverage
|
||||
coverage
|
||||
|
||||
@@ -34,9 +34,6 @@
|
||||
; Ignore react-native-fbads dependency of the expo sdk
|
||||
.*/node_modules/react-native-fbads/*
|
||||
|
||||
.*/react-navigation/lib-rn/.*
|
||||
.*/react-navigation/lib/.*
|
||||
|
||||
.*/react-navigation/examples/ReduxExample/.*
|
||||
.*/react-navigation/website/.*
|
||||
|
||||
|
||||
@@ -22,13 +22,12 @@
|
||||
"format": "eslint --fix .",
|
||||
"precommit": "lint-staged"
|
||||
},
|
||||
"files": ["lib", "src"],
|
||||
"files": ["src"],
|
||||
"peerDependencies": {
|
||||
"react": "*",
|
||||
"react-native": "*"
|
||||
},
|
||||
"dependencies": {
|
||||
"babel-plugin-transform-define": "^1.3.0",
|
||||
"clamp": "^1.0.1",
|
||||
"hoist-non-react-statics": "^2.2.0",
|
||||
"path-to-regexp": "^1.7.0",
|
||||
@@ -41,12 +40,7 @@
|
||||
"babel-core": "^6.25.0",
|
||||
"babel-eslint": "^7.2.3",
|
||||
"babel-jest": "^20.0.3",
|
||||
"babel-preset-es2015": "^6.24.1",
|
||||
"babel-preset-react": "^6.24.1",
|
||||
"babel-preset-react-native": "^2.1.0",
|
||||
"babel-preset-react-native-stage-0": "^1.0.1",
|
||||
"babel-preset-react-native-syntax": "^1.0.0",
|
||||
"babel-preset-stage-1": "^6.24.1",
|
||||
"codecov": "^2.2.0",
|
||||
"eslint": "^4.2.0",
|
||||
"eslint-config-prettier": "^2.3.0",
|
||||
|
||||
Reference in New Issue
Block a user