This repository has been archived by the owner on Mar 12, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 78
/
package.json
260 lines (260 loc) · 10 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
{
"name": "emission",
"version": "1.21.52",
"native-code-version": 44,
"description": "Artsy React(Native) components.",
"engines": {
"node": "12.x",
"npm": "6.1.x",
"yarn": "1.x"
},
"main": "index.ios.js",
"scripts": {
"bundle": "react-native bundle --platform=ios --dev=false --entry-file=index.ios.js --bundle-output Pod/Assets/Emission.js --sourcemap-output Pod/Assets/Emission.js.map --assets-dest Pod/Assets && rm -rf Pod/Assets/assets/node_modules",
"bundle-for-native-ci": "yarn generate-graphql-query-map && react-native bundle --platform=ios --dev=false --entry-file=index.tests.ios.js --bundle-output Pod/Assets/Emission.js --sourcemap-output Pod/Assets/Emission.js.map --assets-dest Pod/Assets && rm -rf Pod/Assets/assets/node_modules",
"bundle-with-storybooks": "yarn generate-graphql-query-map && react-native bundle --platform=ios --dev=true --entry-file=Example/Emission/index.ios.js --bundle-output Pod/Assets/Emission.js --assets-dest Pod/Assets",
"type-check": "tsc",
"type-check:offence-ranking": "yarn -s type-check:offence 'TS\\d+' -o | sort | uniq -c | sort -r",
"type-check:offence": "tsc --pretty false | grep -v __generated__ | grep -E",
"lint": "tslint 'src/**/*.{ts,tsx}'",
"lint-fix": "yarn lint -- --fix",
"prettier-write": "prettier --write",
"prettier-project": "yarn run prettier-write 'src/**/*.{ts,tsx}'",
"stylelint-project": " stylelint -- 'src/**/*.{ts,tsx}'",
"ci": "yarn ci:type-check && yarn ci:lint && yarn prettier-project -l && yarn relay && yarn ci:test",
"ci:skip-native-if-possible": "node scripts/ci-skip-native-if-possible.js",
"ci:type-check": "tsc --pretty false | tee tsc_raw.log",
"ci:lint": "yarn lint --format json --out tslint-errors.json ",
"ci:test": "jest --outputFile test-results.json --json --ci --forceExit",
"danger": "danger",
"find-unused-fields": "ts-node --compiler-options '{\"types\": [\"node\"]}' scripts/find-unused-fields",
"start": "yarn start-servers",
"start-servers": "concurrently --kill-others 'yarn start-packager' 'yarn relay --watch' 'yarn storybook'",
"start-packager": "rm -rf ./node_modules/.cache/babel-loader && env REACT_DEBUGGER=\"$([ -d '/Applications/React Native Debugger.app' ] && echo \"open 'rndebugger://set-debugger-loc?host=localhost&port=8081' --args\")\" node node_modules/react-native/local-cli/cli.js start",
"storybook": "storybook start -p 9001 -c .storybook --skip-packager",
"ios": "node node_modules/react-native/local-cli/cli.js run-ios",
"open-sim": "open -a Simulator",
"open-emission": "xcrun simctl launch booted net.artsy.Emission",
"test": "jest",
"testing": "jest --watch",
"relay": "relay-compiler",
"release": "node scripts/release.js",
"generate-graphql-query-map": "node scripts/generate-graphql-query-map.js > Pod/Classes/GraphQL/ARGraphQLQueryMap.generated.objc",
"generate-cities-objc": "node scripts/generate-cities-objc.js",
"generate-cities-cache": "node scripts/generate-cities-cache.js",
"update-metaphysics-and-eigen": "node scripts/update-metaphysics-and-eigen.js",
"sync-schema": "curl https://raw.githubusercontent.com/artsy/metaphysics/master/_schemaV2.graphql -o data/schema.graphql; yarn prettier --write --parser graphql data/schema.graphql",
"sync-cities": "curl https://raw.githubusercontent.com/artsy/metaphysics/master/src/schema/city/cityDataSortedByDisplayPreference.json -o data/cityDataSortedByDisplayPreference.json",
"version": "yarn install --ignore-engines && yarn bundle && pushd Example && bundle install && bundle exec pod update Emission --no-repo-update && popd && git add Pod/Assets Example/Podfile.lock",
"postinstall": "prettier --write package.json && node verify-npm-podspecs.js",
"prestorybook": "rnstl --silent",
"prepare": "patch-package"
},
"repository": {
"type": "git",
"url": "git+https://github.com/artsy/emission.git"
},
"keywords": [
"artsy",
"react",
"react-native"
],
"author": "Eloy Durán",
"license": "MIT",
"bugs": {
"url": "https://github.com/artsy/emission/issues"
},
"homepage": "https://github.com/artsy/emission#readme",
"files": [
"index.js",
"data",
"lib"
],
"resolutions": {
"cheerio": "0.22.0",
"babel-core": "7.0.0-bridge.0"
},
"dependencies": {
"@artsy/palette": "7.1.2",
"@mapbox/react-native-mapbox-gl": "6.1.3",
"@react-native-community/async-storage": "1.6.3",
"@react-native-community/cameraroll": "1.3.0",
"@react-native-community/geolocation": "2.0.2",
"@react-native-community/netinfo": "4.6.1",
"grapheme-splitter": "1.0.4",
"lodash": "4.17.15",
"moment": "2.24.0",
"moment-timezone": "0.5.25",
"prop-types": "15.7.2",
"query-string": "4.3.4",
"react": "16.9.0",
"react-native": "0.61.4",
"react-native-hyperlink": "0.0.11",
"react-native-navigator-ios": "https://github.com/ashfurrow/react-native-navigator-ios#license_podspec",
"react-native-parallax-scroll-view": "orta/react-native-parallax-scroll-view",
"react-native-reanimated": "1.4.0",
"react-native-scrollable-tab-view": "1.0.0",
"react-native-sentry": "0.30.3",
"react-native-svg": "9.13.3",
"react-native-webview": "7.5.1",
"react-relay": "6.0.0",
"react-spring": "8.0.23",
"react-tracking": "7.2.1",
"relay-runtime": "6.0.0",
"remove-markdown": "0.1.0",
"simple-markdown": "0.4.4",
"styled-components": "4.2.0",
"supercluster": "6.0.1",
"tipsi-stripe": "https://github.com/ashfurrow/tipsi-stripe.git#fix-infinite-loop"
},
"devDependencies": {
"@artsy/auto-config": "1.0.1",
"@babel/core": "7.1.2",
"@babel/plugin-proposal-class-properties": "7.4.0",
"@babel/plugin-proposal-decorators": "7.4.0",
"@babel/plugin-transform-runtime": "7.4.0",
"@babel/preset-typescript": "7.3.3",
"@babel/runtime": "7.4.2",
"@octokit/rest": "16.34.0",
"@omakase/cli": "0.0.10",
"@react-native-community/cli-platform-ios": "3.0.0",
"@storybook/react-native": "3.3.11",
"@types/chalk": "2.2.0",
"@types/dedent": "0.7.0",
"@types/jest": "24.0.11",
"@types/lodash": "4.14.91",
"@types/luxon": "1.15.2",
"@types/moment-timezone": "0.5.4",
"@types/node": "12.7.5",
"@types/query-string": "5.0.1",
"@types/react": "16.8.10",
"@types/react-native": "0.57.42",
"@types/react-relay": "6.0.1",
"@types/react-test-renderer": "16.8.1",
"@types/react-tracking": "7.0.1",
"@types/relay-runtime": "6.0.7",
"@types/relay-test-utils": "6.0.1",
"@types/styled-components": "4.0.3",
"@types/styled-system": "3.2.2",
"@types/supercluster": "5.0.0",
"auto": "7.12.3",
"awesome-typescript-loader": "3.4.1",
"babel-core": "7.0.0-bridge.0",
"babel-jest": "24.5.0",
"babel-plugin-import-graphql": "2.7.0",
"babel-plugin-relay": "6.0.0",
"chalk": "2.4.2",
"concurrently": "2.2.0",
"danger": "6.1.1",
"danger-plugin-jest": "1.1.0",
"dedent": "0.7.0",
"enzyme": "3.9.0",
"enzyme-adapter-react-16": "1.13.0",
"graphql": "14.5.6",
"husky": "1.3.1",
"jest": "24.8.0",
"jest-raw-loader": "1.0.1",
"jest-styled-components": "7.0.0-2",
"json5": "2.1.0",
"klaw-sync": "6.0.0",
"lint-staged": "6.1.1",
"metro-react-native-babel-preset": "0.49.0",
"node-fetch": "2.6.0",
"patch-package": "6.1.2",
"postinstall-prepare": "1.0.1",
"prettier": "1.19.1",
"pull-lock": "1.0.0",
"react-dom": "16.8.3",
"react-native-storybook-loader": "1.8.0",
"react-relay-network-modern": "2.5.1",
"react-storybooks-relay-container": "1.2.2",
"react-test-renderer": "16.8.6",
"recursive-readdir-sync": "1.0.6",
"relay-compiler": "6.0.0",
"relay-compiler-language-typescript": "9.0.0",
"relay-config": "6.0.0",
"relay-mock-network-layer": "2.0.0",
"relay-test-utils": "7.0.0",
"snapshot-diff": "0.2.2",
"stylelint": "9.8.0",
"stylelint-config-standard": "18.2.0",
"stylelint-config-styled-components": "0.1.1",
"stylelint-processor-styled-components": "1.5.1",
"tmp": "0.1.0",
"ts-jest": "24.0.0",
"ts-node": "8.4.1",
"tslint": "5.14.0",
"tslint-config-prettier": "1.18.0",
"tslint-plugin-relay": "0.0.2",
"typescript": "3.7.5",
"typescript-styled-plugin": "0.13.0",
"vscode-apollo-relay": "1.5.0"
},
"jest": {
"preset": "react-native",
"moduleFileExtensions": [
"ts",
"tsx",
"js"
],
"moduleNameMapper": {
"^lib/(.*)": "<rootDir>/src/lib/$1"
},
"testMatch": [
"<rootDir>/src/**/__tests__/*tests.(ts|tsx|js)"
],
"testEnvironment": "jsdom",
"testURL": "http://localhost/",
"setupFilesAfterEnv": [
"./src/setupJest.ts"
],
"cacheDirectory": ".jest/cache",
"transform": {
"^[./a-zA-Z0-9$_-]+\\.(bmp|gif|jpg|jpeg|mp4|png|psd|svg|webp)$": "<rootDir>/node_modules/react-native/jest/assetFileTransformer.js",
"node_modules/react-native/.+\\.(js|tsx?)$": "<rootDir>/node_modules/react-native/jest/preprocessor.js",
".*(ts|tsx|js|jsx)$": "babel-jest",
"\\.graphql$": "jest-raw-loader"
},
"transformIgnorePatterns": [
"node_modules/(?!(react-native(-.*)?)/)"
]
},
"lint-staged": {
"*.@(ts|tsx)": [
"tslint -c tslint.json --fix",
"yarn prettier-write --",
"git add"
],
"*.@(json|md)": [
"yarn prettier-write --"
]
},
"config": {
"react-native-storybook-loader": {
"searchDir": [
"./src"
],
"pattern": "**/*.story.tsx",
"outputFile": "./storybook/storyLoader.js"
}
},
"prettier": {
"printWidth": 120,
"semi": false,
"singleQuote": false,
"trailingComma": "es5",
"bracketSpacing": true
},
"husky": {
"hooks": {
"post-merge": "pull-lock",
"pre-commit": "lint-staged",
"pre-push": "yarn run type-check"
}
},
"pull-lock": {
"yarn.lock": "yarn install",
"Example/Gemfile.lock": "cd Example && bundle install",
"Example/Podfile.lock": "cd Example && bundle exec pod install"
}
}