Skip to content

Commit

Permalink
Clean up old build process and Babel config (react-navigation#3406)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashoat authored and brentvatne committed Feb 2, 2018
1 parent 836a164 commit 37c3a35
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 39 deletions.
27 changes: 1 addition & 26 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -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 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ jsconfig.json
# NodeJS
npm-debug.log
node_modules
lib-rn
lib
yarn-error.log

# OS X
Expand All @@ -19,4 +17,4 @@ yarn-error.log
.exponent

# Jest
coverage
coverage
3 changes: 0 additions & 3 deletions examples/NavigationPlayground/.flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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/.*

Expand Down
8 changes: 1 addition & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit 37c3a35

Please sign in to comment.