forked from artsy/eigen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
337 lines (337 loc) · 13.9 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
335
336
337
{
"name": "eigen",
"version": "1.21.52",
"native-code-version": 44,
"description": "Artsy mobile app.",
"engines": {
"node": "16.x",
"yarn": "1.x"
},
"main": "index.ios.js",
"scripts": {
"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: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",
"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",
"check-flags": "./scripts/check-flags/check-flags.js",
"ci:lint": "yarn lint --format json --out tslint-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",
"ci": "yarn ci:type-check && yarn ci:lint && yarn prettier-project -l && rm -rf src/__generated__ && yarn relay && yarn ci:test",
"danger": "danger",
"doctor": "./scripts/doctor.js",
"generate-cities-cache": "node scripts/generate-cities-cache.js",
"generate-cities-objc": "node scripts/generate-cities-objc.js",
"ios": "react-native run-ios --udid=\"$(xcrun simctl list | awk -F'[()]' '/(Booted)/ { print $2 }')\"",
"android": "react-native run-android",
"clean-ios": "yarn rimraf ~/Library/Developer/Xcode/DerivedData",
"clean-android": "cd android; ./gradlew clean cleanBuildCache; cd -",
"clean": "yarn clean-ios; yarn clean-android",
"flip_table": "./scripts/flip-table",
"flip_table_extreme": "./scripts/flip-table-extreme",
"install:all": "./scripts/install",
"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",
"lint-fix": "yarn lint --fix; yarn prettier-project",
"lint": "tslint 'src/**/*.{ts,tsx}'",
"open-sim": "open -a Simulator",
"open-url": "npx uri-scheme open",
"postinstall": "yarn init-metaflags; prettier --write package.json; ./scripts/update-echo",
"prepare": "patch-package && husky install",
"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",
"setup:artsy": "./scripts/setup-env-for-artsy",
"setup:oss": "./scripts/setup-env-for-oss",
"setup:artsy:update!": "scripts/update-env-for-artsy",
"setup:releases": "./scripts/setup-env-for-artsy && ./scripts/setup-distribute-macos",
"prestart": "./scripts/set-storybook-environment.js",
"start": "concurrently --kill-others -n relay,metro 'yarn relay --watch' 'yarn react-native start'",
"start:reset-cache": "concurrently --kill-others -n relay,metro 'yarn relay --watch' 'yarn react-native start --reset-cache'",
"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:watch": "jest --watch",
"test:debug": "node --inspect node_modules/.bin/jest --runInBand",
"type-check": "yarn relay; yarn tsc",
"storybook-ios": "npx artsy open -i storybook",
"storybook-android": "npx artsy open -a storybook",
"prestart-storybook": "yarn sb-rn-get-stories --config-path ./src/storybook",
"start-storybook": "STORYBOOK=1 yarn start",
"init-metaflags": "jq -Rn '{ startStorybook: false }' | sponge metaflags.json",
"postinit-metaflags": "rimraf storybook.json",
"secrets:audit": "detect-secrets audit .secrets.baseline",
"secrets:check:staged": "scripts/secrets-check-staged",
"secrets:check:all": "scripts/secrets-check-all",
"secrets:add-from:staged": "scripts/secrets-add-staged",
"secrets:add-from:all": "scripts/secrets-add-all",
"secrets:generate!": "scripts/secrets-generate-baseline",
"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.86.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.3",
"@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-masked-view/masked-view": "0.2.8",
"@react-native-community/netinfo": "9.3.6",
"@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-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.7.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.30",
"grapheme-splitter": "1.0.4",
"html-entities": "2.3.2",
"jsc-android": "250230.2.1",
"limiter": "^2.1.0",
"lodash": "4.17.21",
"luxon": "2.2.0",
"metro-cache": "0.66.2",
"moment": "2.29.4",
"moment-timezone": "0.5.37",
"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": "3.2.3",
"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.9.1",
"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-vision-camera": "2.14.1",
"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.0",
"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.1.2",
"@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": "26.0.24",
"@types/lodash": "4.14.180",
"@types/luxon": "2.0.9",
"@types/moment-timezone": "0.5.30",
"@types/node": "14.17.34",
"@types/node-fetch": "2.6.1",
"@types/puppeteer": "5.4.7",
"@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",
"argparse": "2.0.1",
"auto": "7.12.3",
"awesome-typescript-loader": "3.4.1",
"babel-jest": "26.6.3",
"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": "10.7.1",
"danger-plugin-jest": "1.3.0",
"dedent": "0.7.0",
"dotenv": "8.2.0",
"glob": "7.2.0",
"graphql": "14.5.6",
"graphql-request": "3.7.0",
"husky": "7.0.4",
"jest": "26.6.3",
"jest-extended": "0.11.5",
"jest-fetch-mock": "3.0.3",
"jest-junit": "13.0.0",
"jest-raw-loader": "1.0.1",
"jest-watch-typeahead": "0.6.1",
"jetifier": "1.6.6",
"json5": "2.2.0",
"lint-staged": "12.3.4",
"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",
"puppeteer": "19.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",
"tslint": "5.14.0",
"tslint-config-prettier": "1.18.0",
"tslint-plugin-relay": "0.0.3",
"tslint-react": "5.0.0",
"typescript": "4.9.4",
"vscode-apollo-relay": "1.5.2"
},
"lint-staged": {
"*.@(ts|tsx)": [
"tslint -c tslint.json -p tsconfig.json --fix",
"yarn prettier-write",
"node scripts/strictness-migration.js check-staged"
],
"*.@(json|md)": [
"yarn prettier-write"
]
},
"prettier": {
"printWidth": 100,
"semi": false,
"singleQuote": false,
"trailingComma": "es5",
"bracketSpacing": true
},
"pull-lock": {
"yarn.lock": "yarn install",
"ios/Podfile.lock": "echo \"🚨 New Podfile.lock detected!, you might need to run yarn install:all\" 🚨"
}
}