-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
101 lines (101 loc) · 4.72 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
{
"name": "findadoc-server",
"version": "1.0.0",
"description": "Backend for Find a Doc, Japan",
"main": "index.js",
"scripts": {
"dev": "echo '🧶 Installing yarn dependencies...🧶' && yarn && yarn generate && yarn dev:startserver",
"dev:startserver": "echo '💻 💻 💻✨ Starting dev server...' && cross-env NODE_ENV=development nodemon -e 'ts' --exec 'node --inspect --loader ts-node/esm src/index.ts'",
"dev:startlocaldb": "firebase login && firebase emulators:start --project=find-a-doc-japan --only firestore",
"test": "echo '🧶 Installing yarn dependencies...🧶' && yarn && vitest",
"test:dockerstart": "docker compose -f docker/docker-compose-test.yml up -d --build",
"test:dockerstop": "docker compose -f docker/docker-compose-test.yml down",
"prepare": "husky install",
"prod": "yarn prod:dockerstop && yarn prod:dockerstart",
"prod:build": "echo '🧶 Installing yarn dependencies...🧶' && yarn --immutable --immutable-cache --check-cache && echo '🧹 cleaning dist folder...' && npx rimraf dist/ && echo '➡ ➡ copying files...' && npx copyfiles -a -V src/typeDefs/schema.graphql .env.prod dist && echo '💻✨ compiling code..' && tsc && echo '💻✨ successfully built!'",
"prod:startserver": "echo '💻 💻 💻✨ Starting prod server...' && cross-env NODE_ENV=production PIDUSAGE_USE_PS=true pm2 start dist/src/index.js --no-daemon && pm2 logs --lines 100",
"prod:stopserver": "echo '💻 💻 💻✨ Stopping prod server...' && pm2 stop all && pm2 delete all",
"prod:monitor": "pm2 monitor",
"prod:dockerstart": "echo '🐳 🐳 🐳✨ Running docker compose...' && docker compose -f docker/docker-compose-api.yml up -d --build --remove-orphans --force-recreate",
"prod:dockerstop": "echo '🐳 🐳 🐳✨ Stopping docker compose...' && docker compose -f docker/docker-compose-api.yml down",
"prod:logs": "docker logs findadoc-api -f",
"generate": "echo '➡ ➡ ➡ Generating types from graphql schema ➡ ➡ ➡' && graphql-codegen --config ./typesgeneratorconfig.ts",
"lint": "cross-env ESLINT_USE_FLAT_CONFIG=true eslint -c eslint.config.js .",
"lint:ci": "ESLINT_USE_FLAT_CONFIG=true eslint ."
},
"repository": {
"type": "git",
"url": "git+https://github.com/ourjapanlife/findadoc-server.git"
},
"keywords": [],
"author": "Find a Doc, Japan",
"license": "MIT",
"type": "module",
"private": true,
"bugs": {
"url": "https://github.com/ourjapanlife/findadoc-server/issues"
},
"homepage": "https://github.com/ourjapanlife/findadoc-server#readme",
"engines": {
"node": "21.3.0",
"yarn": "4.6.0"
},
"devDependencies": {
"@firebase/rules-unit-testing": "^3.0.1",
"@graphql-codegen/cli": "^5.0.0",
"@graphql-codegen/typescript": "^4.0.1",
"@graphql-codegen/typescript-resolvers": "^4.0.1",
"@graphql-eslint/eslint-plugin": "^3.20.1",
"@graphql-tools/mock": "^9.0.0",
"@graphql-tools/schema": "^10.0.0",
"@stylistic/eslint-plugin": "^1.5.4",
"@stylistic/eslint-plugin-migrate": "^1.5.4",
"@swc/core": "^1.3.95",
"@types/node": "^20.8.10",
"@types/supertest": "^6.0.2",
"@typescript-eslint/eslint-plugin": "^6.9.1",
"@typescript-eslint/parser": "^6.9.1",
"all-contributors-cli": "^6.24.0",
"axios": "^1.7.9",
"copyfiles": "^2.4.1",
"eslint": "^8.53.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-plugin-import": "^2.29.0",
"firebase-tools": "^13.1.0",
"globals": "^13.23.0",
"husky": "^8.0.3",
"puppeteer": "^22.12.1",
"rimraf": "^5.0.1",
"typescript": "^5.2.2",
"vitest": "^2.1.8"
},
"dependencies": {
"@apollo/server": "^4.9.3",
"@as-integrations/fastify": "^2.1.1",
"@faker-js/faker": "^8.2.0",
"@fastify/compress": "^6.5.0",
"@fastify/cors": "^8.4.1",
"@fastify/rate-limit": "^9.0.1",
"@types/googlemaps": "^3.43.3",
"cross-env": "^7.0.3",
"csv-parse": "^5.3.3",
"dotenv": "^16.3.1",
"fastify": "^4.24.3",
"fastify-healthcheck": "^4.4.0",
"firebase": "^10.8.0",
"firebase-admin": "^12.0.0",
"graphql": "^16.8.1",
"graphql-import-node": "^0.0.5",
"graphql-tag": "^2.12.6",
"nodemon": "^3.0.1",
"pm2": "^5.3.0",
"supertest": "^6.3.3",
"ts-node": "^10.9.1",
"winston": "^3.11.0",
"winston-loki": "^6.0.8"
},
"resolutions": {
"long": "^4.0.0"
}
}