Skip to content

Commit

Permalink
Updated dot files and package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick committed Oct 23, 2017
1 parent 3b7ea14 commit 4459529
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 21 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["react-native"]
}
5 changes: 4 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
"plugins": ["react", "import"],
"settings": {
"import/core-modules": [
"react", "react-native", "prop-types"
"react",
"react-native",
"react-native/Libraries/Image/resolveAssetSource",
"prop-types"
]
},
"rules": {
Expand Down
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.pbxproj -text
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ node_modules/
npm-debug.log
package-lock.json
*.tgz
yarn.lock

# project specific
ios/Mapbox.framework
Expand All @@ -44,3 +45,4 @@ android/gradlew.bat
android/local.properties
reactnativemapboxgl.iml
.idea
coverage
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,5 @@ android/local.properties

# react-native-mapbox-gl
example
__tests__
coverage
61 changes: 41 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,30 +24,51 @@
},
"scripts": {
"fetch:ios:sdk": "node ./scripts/download-mapbox-gl-native-ios-if-on-mac.js 3.6.1",
"docs:parse": "node ./scripts/generateDocJSON.js",
"docs:build:md": "node ./scripts/buildMarkdown.js",
"docs:generate": "npm run docs:parse && npm run docs:build:md",
"preinstall": "npm run fetch:ios:sdk",
"test": "npm run lint",
"lint": "./node_modules/eslint/bin/eslint.js ./javascript/** ./example/src/**",
"lint:fix": "npm run lint -- --fix"
"fetch:style:spec": ". ./scripts/download-style-spec.sh",
"generate": "node ./scripts/autogenerate",
"preinstall": "yarn run fetch:ios:sdk",
"test": "yarn run lint && yarn run unittest",
"unittest": "jest --coverage --verbose",
"lint": "./node_modules/eslint/bin/eslint.js ./javascript/** ./example/src/** ./__tests__/**",
"lint:fix": "yarn run lint -- --fix"
},
"devDependencies": {
"babel-eslint": "^6.1.2",
"eslint": "^3.19.0",
"eslint-config-strict-react": "^8.0.1",
"eslint-plugin-import": "^2.7.0",
"eslint-plugin-react": "^5.2.2",
"node-dir": "^0.1.17",
"react-docgen": "^2.18.0"
"peerDependencies": {
"prop-types": ">=15.5.8",
"react": "16.0.0-alpha.12",
"react-native": ">=0.47.1"
},
"dependencies": {
"@turf/helpers": "^4.6.0"
"@turf/helpers": "4.6.0"
},
"peerDependencies": {
"react": "16.0.0-alpha.12",
"react-native": "0.47.1",
"prop-types": ">=15.5.8"
"devDependencies": {
"babel-eslint": "6.1.2",
"babel-jest": "21.0.2",
"babel-preset-react-native": "3.0.2",
"ejs": "^2.5.7",
"ejs-lint": "^0.3.0",
"eslint": "^3.19.0",
"eslint-config-strict-react": "8.0.1",
"eslint-plugin-import": "2.7.0",
"eslint-plugin-react": "5.2.2",
"jest": "21.0.2",
"node-dir": "0.1.17",
"react": "^15.6.1",
"react-docgen": "2.18.0",
"react-native": "0.48.3",
"react-test-renderer": "16.0.0-alpha.12"
},
"jest": {
"preset": "react-native",
"collectCoverageFrom": [
"javascript/**/*.js"
],
"setupFiles": [
"./__tests__/__mocks__/react-native-mapbox-gl.mock.js"
],
"modulePathIgnorePatterns": [
"example",
"__tests__/__mocks__"
]
},
"rnpm": {
"android": {
Expand Down

0 comments on commit 4459529

Please sign in to comment.