forked from artsy/eigen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
334 lines (334 loc) · 14.3 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
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
{
"name": "eigen",
"version": "1.21.52",
"native-code-version": 44,
"description": "Artsy mobile app.",
"engines": {
"node": "16.x",
"yarn": "1.x"
},
"main": "index-common.js",
"scripts": {
"android": "react-native run-android",
"bundle-for-native-ci:ios": "node --expose-gc --max_old_space_size=8192 ./node_modules/react-native/local-cli/cli.js bundle --platform=ios --dev=false --entry-file=index.tests.ios.js --bundle-output dist/jsbundle.js --sourcemap-output dist/jsbundle.js.map --assets-dest dist",
"bundle:android": "NODE_OPTIONS=--max_old_space_size=8192 react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output android/app/src/main/assets/index.android.bundle --sourcemap-output android/app/src/main/assets/index.android.bundle.map --assets-dest android/app/src/main/res",
"bundle:ios": "react-native bundle --platform=ios --dev=false --entry-file=index.ios.js --bundle-output dist/jsbundle.js --sourcemap-output dist/jsbundle.js.map --assets-dest dist",
"check-flags": "./scripts/check-flags/check-flags.js",
"ci": "yarn ci:type-check && yarn ci:lint && yarn prettier-project -l && rm -rf src/__generated__ && yarn relay && yarn ci:test",
"ci:lint": "yarn lint --format json --out eslint-errors.json",
"ci:skip-native-if-possible": "node scripts/ci-skip-native-if-possible.js",
"ci:type-check": "tsc --pretty false | tee tsc_raw.log",
"clean": "yarn clean-ios; yarn clean-android",
"clean-android": "cd android; ./gradlew clean cleanBuildCache; cd -",
"clean-ios": "yarn rimraf ~/Library/Developer/Xcode/DerivedData",
"danger": "danger",
"deploy-beta": "./scripts/deploy-beta-both",
"doctor": "./scripts/doctor.js",
"flip_table": "./scripts/flip-table",
"flip_table_extreme": "./scripts/flip-table-extreme",
"generate-cities-cache": "node scripts/generate-cities-cache.js",
"generate-cities-objc": "node scripts/generate-cities-objc.js",
"navigate-to-route": "./scripts/navigate-to-route",
"navigate-to-route-android": "./scripts/navigate-to-route-android",
"init-metaflags": "jq -Rn '{ startStorybook: false }' | sponge metaflags.json",
"install:all": "./scripts/install",
"ios": "react-native run-ios --udid=\"$(xcrun simctl list | awk -F'[()]' '/(Booted)/ { print $2 }')\"",
"lint": "eslint --cache --cache-location '.cache/eslint/' --ext .ts,.tsx --fix",
"lint:all": "yarn lint .",
"open-sim": "open -a Simulator",
"open-url": "npx uri-scheme open",
"open-xcode": "open ios/Artsy.xcworkspace",
"pod-install": "cd ios; bundle exec pod install; cd ..; ./scripts/post-pod-install.rb",
"pod-install-repo-update": "cd ios; bundle exec pod install --repo-update; cd ..; ./scripts/post-pod-install.rb",
"postinit-metaflags": "rimraf storybook.json",
"postinstall": "yarn init-metaflags; prettier --write package.json; ./scripts/update-echo",
"prepare": "patch-package && husky install",
"prestart": "./scripts/set-storybook-environment.js",
"prestart-storybook": "yarn sb-rn-get-stories --config-path ./src/storybook",
"prettier-project": "yarn run prettier-write 'src/**/*.{ts,tsx}'",
"prettier-write": "prettier --write",
"relay": "[ -f data/complete.queryMap.json ] || echo '{}' > data/complete.queryMap.json && relay-compiler",
"secrets:add-from:all": "scripts/secrets-add-all",
"secrets:add-from:staged": "scripts/secrets-add-staged",
"secrets:audit": "detect-secrets audit .secrets.baseline",
"secrets:check:all": "scripts/secrets-check-all",
"secrets:check:staged": "scripts/secrets-check-staged",
"secrets:generate!": "scripts/secrets-generate-baseline",
"setup:artsy": "./scripts/setup-env-for-artsy",
"setup:artsy:update!": "scripts/update-env-for-artsy",
"setup:oss": "./scripts/setup-env-for-oss",
"setup:releases": "./scripts/setup-env-for-artsy && ./scripts/setup-distribute-macos",
"start": "concurrently --kill-others -n relay,metro 'yarn relay --watch' 'yarn react-native start'",
"start-storybook": "STORYBOOK=1 yarn start",
"start:reset-cache": "concurrently --kill-others -n relay,metro 'yarn relay --watch' 'yarn react-native start --reset-cache'",
"storybook-android": "npx artsy open -a storybook",
"storybook-ios": "npx artsy open -i storybook",
"sync-cities": "curl https://raw.githubusercontent.com/artsy/metaphysics/main/src/schema/city/cityDataSortedByDisplayPreference.json -o data/cityDataSortedByDisplayPreference.json",
"sync-schema": "curl https://raw.githubusercontent.com/artsy/metaphysics/main/_schemaV2.graphql -o data/schema.graphql; yarn prettier --write --parser graphql data/schema.graphql",
"sync-schema:localhost": "cd ../metaphysics && yarn dump-schema v2 ../eigen/data/",
"test": "jest",
"test:debug": "node --inspect node_modules/.bin/jest --runInBand",
"test:watch": "jest --watch",
"type-check": "yarn relay; yarn tsc",
"update-metaphysics": "node scripts/update-metaphysics.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/artsy/eigen.git"
},
"keywords": [
"artsy",
"react",
"react-native"
],
"contributors": "See docs/thanks.md",
"license": "MIT",
"bugs": {
"url": "https://github.com/artsy/eigen/issues"
},
"homepage": "https://github.com/artsy/eigen#readme",
"files": [
"index.js",
"data",
"app"
],
"dependenciesComments": {
"@react-native-community/slider": "Needed by storybook, see install script here: https://gist.github.com/dannyhw/9b84973dcc6ff4fa2e86e32d571d294e",
"react-native-vision-camera": "Needed for reverse image functionality, more context here: https://github.com/artsy/eigen/issues/7159",
"react-native": "Try running `npx @rnx-kit/align-deps --requirements [email protected]` when upgrading to a version, here 0.66.5"
},
"dependencies": {
"@artsy/cohesion": "4.99.0",
"@artsy/palette-mobile": "6.1.0",
"@artsy/palette-tokens": "4.0.1",
"@artsy/to-title-case": "1.1.0",
"@expo/react-native-action-sheet": "3.8.0",
"@gorhom/bottom-sheet": "4.4.5",
"@invertase/react-native-apple-authentication": "2.1.5",
"@kesha-antonov/react-native-action-cable": "1.1.0",
"@ptomasroos/react-native-multi-slider": "2.2.2",
"@react-native-async-storage/async-storage": "1.16.1",
"@react-native-clipboard/clipboard": "1.7.0",
"@react-native-community/cameraroll": "1.3.0",
"@react-native-community/datetimepicker": "6.1.2",
"@react-native-community/geolocation": "2.0.2",
"@react-native-community/netinfo": "9.3.7",
"@react-native-community/slider": "4.2.1",
"@react-native-cookies/cookies": "6.0.11",
"@react-native-google-signin/google-signin": "6.0.0",
"@react-native-mapbox-gl/maps": "8.5.0",
"@react-native-masked-view/masked-view": "0.2.8",
"@react-navigation/bottom-tabs": "6.3.2",
"@react-navigation/native": "6.0.11",
"@react-navigation/native-stack": "6.7.0",
"@react-navigation/stack": "6.2.2",
"@segment/analytics-react-native": "1.5.2",
"@segment/analytics-react-native-adjust": "1.5.0",
"@segment/analytics-react-native-appboy": "1.5.0",
"@sentry/cli": "2.12.0",
"@sentry/react-native": "3.2.13",
"@storybook/addon-actions": "6.3.13",
"@storybook/addon-controls": "6.3.13",
"@storybook/addon-ondevice-actions": "6.0.1-beta.5",
"@storybook/addon-ondevice-controls": "6.0.1-beta.5",
"@storybook/react-native": "6.0.1-beta.5",
"@styled-system/theme-get": "5.1.2",
"algoliasearch": "4.10.3",
"autosuggest-highlight": "3.1.1",
"easy-peasy": "3.3.0",
"events": "3.3.0",
"extract-files": "9.0.0",
"formik": "2.2.9",
"google-libphonenumber": "3.2.31",
"grapheme-splitter": "1.0.4",
"html-entities": "2.3.3",
"jsc-android": "250230.2.1",
"limiter": "^2.1.0",
"lodash": "4.17.21",
"luxon": "2.5.2",
"metro-cache": "0.66.2",
"moment": "2.29.4",
"moment-timezone": "0.5.40",
"ordinal": "1.0.3",
"prop-types": "15.7.2",
"query-string": "4.3.4",
"react": "17.0.2",
"react-fps": "1.0.6",
"react-instantsearch-core": "6.16.0",
"react-instantsearch-native": "6.16.0",
"react-nanny": "2.12.0",
"react-native": "0.66.5",
"react-native-appboy-sdk": "1.35.1",
"react-native-bootsplash": "3.2.0",
"react-native-config": "https://github.com/artsy/react-native-config.git#v1.4.11-artsy",
"react-native-credit-card-input": "0.4.1",
"react-native-device-info": "10.3.0",
"react-native-fast-image": "8.5.11",
"react-native-fbsdk-next": "11",
"react-native-gesture-handler": "2.5.0",
"react-native-haptic-feedback": "1.13.0",
"react-native-hyperlink": "0.0.19",
"react-native-image-crop-picker": "0.38.1",
"react-native-image-resizer": "1.4.5",
"react-native-in-app-review": "4.1.1",
"react-native-keychain": "8.0.0",
"react-native-linear-gradient": "2.6.2",
"react-native-localize": "2.0.1",
"react-native-pager-view": "6.0.0",
"react-native-push-notification": "8.1.1",
"react-native-reanimated": "2.13",
"react-native-reanimated-zoom": "0.3.3",
"react-native-safe-area-context": "3.4.0",
"react-native-screens": "3.15.0",
"react-native-scrollable-tab-view": "ptomasroos/react-native-scrollable-tab-view#a7f46de184123be9703c57b0a7618ae0557c8a87",
"react-native-shake": "5.1.1",
"react-native-share": "7.3.6",
"react-native-svg": "9.13.3",
"react-native-url-polyfill": "1.3.0",
"react-native-view-shot": "3.4.0",
"react-native-vimeo-iframe": "1.2.1",
"react-native-vision-camera": "2.15.2",
"react-native-webview": "11.3.1",
"react-relay": "14.0.0",
"react-spring": "8.0.23",
"react-tracking": "9.2.0",
"react-use": "17.1.0",
"remove-markdown": "0.1.0",
"rn-async-storage-flipper": "0.0.10",
"rn-fetch-blob": "0.12.0",
"rxjs": "7.5.6",
"search-insights": "2.0.3",
"semver": "7.3.5",
"simple-markdown": "0.7.3",
"styled-components": "4.2.1",
"styled-system": "5.1.5",
"supercluster": "6.0.2",
"tipsi-stripe": "https://github.com/artsy/tipsi-stripe.git#fix-infinite-loop",
"tsutils": "3.21.0",
"unleash-proxy-client": "1.11.0",
"url": "0.11.0",
"victory-native": "36.6.8",
"yup": "0.31.1",
"zustand": "3.6.9"
},
"devDependencies": {
"@artsy/update-repo": "0.6.0",
"@babel/core": "7.16.12",
"@babel/plugin-proposal-decorators": "7.18.9",
"@babel/plugin-transform-flow-strip-types": "7.18.9",
"@babel/preset-env": "7.18.9",
"@babel/preset-react": "7.18.6",
"@babel/preset-typescript": "7.18.6",
"@babel/runtime": "7.16.7",
"@octokit/rest": "16.34.0",
"@omakase/cli": "0.0.10",
"@react-native-community/cli-platform-ios": "6.2.0",
"@testing-library/jest-native": "5.4.1",
"@testing-library/react-hooks": "8.0.1",
"@testing-library/react-native": "11.5.0",
"@tsconfig/react-native": "2.0.2",
"@types/argparse": "2.0.10",
"@types/autosuggest-highlight": "3.1.1",
"@types/chalk": "2.2.0",
"@types/dedent": "0.7.0",
"@types/extract-files": "8.1.1",
"@types/google-libphonenumber": "7.4.23",
"@types/jest": "29.2.6",
"@types/jscodeshift": "0.11.6",
"@types/lodash": "4.14.180",
"@types/luxon": "2.0.9",
"@types/moment-timezone": "0.5.30",
"@types/node": "14.18.32",
"@types/node-fetch": "2.6.1",
"@types/qs": "6.9.7",
"@types/query-string": "5.0.1",
"@types/react": "17.0.39",
"@types/react-instantsearch-core": "6.10.7",
"@types/react-instantsearch-native": "6.3.2",
"@types/react-native": "0.66.16",
"@types/react-native-push-notification": "8.1.1",
"@types/react-relay": "11.0.3",
"@types/react-test-renderer": "17.0.1",
"@types/react-tracking": "8.1.2",
"@types/relay-runtime": "12.0.1",
"@types/relay-test-utils": "6.0.5",
"@types/remove-markdown": "0.1.1",
"@types/semver": "7.3.9",
"@types/styled-components": "4.0.3",
"@types/styled-system": "5.1.15",
"@types/styled-system__theme-get": "5.0.2",
"@types/supercluster": "5.0.3",
"@types/yup": "0.29.13",
"@typescript-eslint/eslint-plugin": "5.48.2",
"@typescript-eslint/parser": "5.48.2",
"argparse": "2.0.1",
"auto": "7.12.3",
"awesome-typescript-loader": "3.4.1",
"babel-jest": "29.3.1",
"babel-loader": "8.2.3",
"babel-plugin-import-graphql": "2.8.1",
"babel-plugin-module-resolver": "4.1.0",
"babel-plugin-relay": "14.0.0",
"chalk": "2.4.2",
"check-dependencies": "1.1.0",
"concurrently": "7.0.0",
"danger": "11.2.3",
"dedent": "0.7.0",
"dotenv": "8.2.0",
"eslint": "8.32.0",
"eslint-config-prettier": "8.6.0",
"eslint-import-resolver-typescript": "3.5.3",
"eslint-plugin-import": "2.27.5",
"eslint-plugin-jest": "27.2.1",
"eslint-plugin-no-autofix": "1.2.3",
"eslint-plugin-no-relative-import-paths": "1.5.2",
"eslint-plugin-prettier": "4.2.1",
"eslint-plugin-react": "7.32.1",
"eslint-plugin-react-hooks": "4.6.0",
"eslint-plugin-testing-library": "5.9.1",
"eslint-plugin-unused-imports": "2.0.0",
"graphql": "14.5.6",
"graphql-request": "3.7.0",
"husky": "7.0.4",
"jest": "29.3.1",
"jest-environment-jsdom": "29.3.1",
"jest-extended": "0.11.5",
"jest-fetch-mock": "3.0.3",
"jest-junit": "15.0.0",
"jest-raw-loader": "1.0.1",
"jest-watch-typeahead": "0.6.1",
"jetifier": "1.6.6",
"json5": "2.2.2",
"lint-staged": "13.1.0",
"metro-react-native-babel-preset": "0.66.2",
"node-fetch": "2.6.7",
"ora": "5.4.0",
"patch-package": "6.4.7",
"postinstall-prepare": "1.0.1",
"prettier": "2.5.1",
"prompt-sync": "4.2.0",
"pull-lock": "1.0.0",
"react-dom": "17.0.2",
"react-native-flipper": "0.131.1",
"react-relay-network-modern": "6.2.1",
"react-test-renderer": "17.0.2",
"recursive-readdir-sync": "1.0.6",
"redux-flipper": "2.0.1",
"relay-compiler": "14.0.0",
"relay-config": "12.0.1",
"relay-mock-network-layer": "3.0.0",
"relay-runtime": "14.0.0",
"relay-test-utils": "14.0.0",
"rimraf": "3.0.2",
"snapshot-diff": "0.2.2",
"sponge": "0.1.0",
"tmp": "0.2.1",
"ts-node": "8.4.1",
"typescript": "4.9.5",
"vscode-apollo-relay": "1.5.2"
},
"pull-lock": {
"ios/Podfile.lock": "echo \"🚨 New Podfile.lock detected!, you might need to run yarn install:all\" 🚨",
"yarn.lock": "yarn install"
}
}