impress-2020/package.json
Matchu 47d22ad25c Build cached zones, stop querying on server
In this change, we cache the zones table as part of the JS build process. This keeps the database as our source of truth, while aggressively caching the data at deploy time.

See the new README for some rationale!

I tested this by pulling up dev Honeycomb, and observing that we no longer run db queries to `zones` in the new traces for the wardrobe page. (It's a good thing we did it this way, because I noticed some code in the server that was still loading the zone anyway, and fixed it here!)
2020-08-19 17:50:05 -07:00

69 lines
2.3 KiB
JSON

{
"name": "impress-2020-app",
"version": "0.1.0",
"private": true,
"dependencies": {
"@apollo/client": "^3.1.1",
"@apollographql/graphql-playground-html": "^1.6.24",
"@chakra-ui/core": "^1.0.0-rc.0",
"@chakra-ui/icons": "^1.0.0-rc.0",
"@chakra-ui/theme": "^1.0.0-rc.0",
"@loadable/component": "^5.12.0",
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.3.2",
"@testing-library/user-event": "^7.1.2",
"apollo-link-persisted-queries": "^0.2.2",
"apollo-server": "^2.12.0",
"apollo-server-core": "^2.12.0",
"apollo-server-env": "^2.4.3",
"aws-sdk": "^2.726.0",
"dataloader": "^2.0.0",
"emotion": "^10.0.27",
"graphql": "^15.0.0",
"honeycomb-beeline": "^2.2.0",
"immer": "^6.0.3",
"jimp": "^0.14.0",
"mysql2": "^2.1.0",
"node-fetch": "^2.6.0",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-router-dom": "^5.1.2",
"react-scripts": "3.4.1",
"react-transition-group": "^4.3.0"
},
"scripts": {
"start": "yarn build-cached-data && react-app-rewired start",
"build": "yarn build-cached-data && react-app-rewired build",
"test": "react-app-rewired test --env=jsdom",
"eject": "react-scripts eject",
"setup-mysql-user": "mysql -h impress.openneo.net -u matchu -p < setup-mysql-user.sql",
"mysql": "mysql --host=impress.openneo.net --user=$(dotenv -p IMPRESS_MYSQL_USER) --password=$(dotenv -p IMPRESS_MYSQL_PASSWORD) --database=openneo_impress",
"mysql-admin": "mysql --host=impress.openneo.net --user=matchu --password --database=openneo_impress",
"build-cached-data": "node -r dotenv/config scripts/build-cached-data.js",
"cache-asset-manifests": "node -r dotenv/config scripts/cache-asset-manifests.js"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"apollo-server-testing": "^2.12.0",
"customize-cra": "^1.0.0",
"customize-cra-react-refresh": "^1.1.0",
"dotenv-cli": "^3.1.0",
"es6-promise-pool": "^2.5.0",
"prettier": "^2.0.5",
"react-app-rewired": "^2.1.6"
}
}