-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
57 lines (57 loc) · 1.98 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
{
"name": "badgehub-api",
"version": "1.0.0",
"description": "Node project for the BadgeHub API",
"type": "module",
"main": "src/index.ts",
"scripts": {
"install:container": "docker exec -it badgehub-api-node-1 npm install",
"start": "node --import tsx src/index.ts",
"monitor": "docker exec -it badgehub-api-node-1 npx pm2 monit",
"lint": "pretty-quick --check",
"build": "tsc",
"swagger": "tsoa spec-and-routes",
"dev": "node --import tsx --watch src/index.ts",
"test-db:up": "docker compose -f docker-compose.test-db.yml up -d --wait",
"test-db:down": "docker compose -f docker-compose.test-db.yml down",
"backup": "docker exec -it badgehub-api-db-1 /usr/bin/pg_dump --username badgehub badgehub -f /var/backup/data-backup-`date +\"%Y-%m-%dT%H:%m\"`.sql",
"overwrite-mockup-data": "docker exec -it badgehub-api-db-1 /usr/bin/pg_dump --username badgehub --schema badgehub badgehub > mockup-data.sql",
"test": "vitest --coverage.enabled true",
"db-migrate:up": "db-migrate up",
"db-migrate:down": "db-migrate down",
"db-migrate:create": "db-migrate create --sql-file true",
"prepare": "husky"
},
"license": "MIT",
"dependencies": {
"db-migrate": "^0.11.14",
"db-migrate-pg": "^1.5.2",
"dotenv": "^16.4.5",
"express": "^4.21.2",
"jose": "^5.9.6",
"moment": "^2.30.1",
"pg": "^8.11.5",
"pino-http": "^10.1.0",
"pm2": "^5.4.0",
"sql-template-tag": "^5.2.1",
"swagger-ui-express": "^5.0.0",
"tsoa": "^6.2.1",
"tsx": "^4.19.2",
"typescript": "^5.4.5"
},
"devDependencies": {
"@types/express": "^4.17.21",
"@types/node": "^20.17.6",
"@types/pg": "^8.11.5",
"@types/supertest": "^6.0.2",
"@types/swagger-ui-express": "^4.1.6",
"@vitest/coverage-v8": "^2.1.1",
"concurrently": "^8.2.2",
"husky": "^9.0.11",
"prettier": "^3.2.5",
"pretty-quick": "^4.0.0",
"supertest": "^7.0.0",
"vite-tsconfig-paths": "^5.1.3",
"vitest": "^2.1.1"
}
}