-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
32 lines (32 loc) · 1.67 KB
/
package.json
File metadata and controls
32 lines (32 loc) · 1.67 KB
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
{
"devDependencies": {
"@biomejs/biome": "2.1.2",
"@playwright/test": "^1.58.2",
"@types/node": "^24.1.0",
"concurrently": "^9.2.1",
"wait-on": "^8.0.5",
"typescript": "^5.8.3"
},
"dependencies": {
"argon2": "^0.43.1",
"jsonwebtoken": "^9.0.2",
"postgres": "^3.4.7",
"seed": "^0.4.4"
},
"scripts": {
"install:root": "npm install",
"install:client": "cd client && npm install",
"install:server": "cd server && npm install",
"i": "npm run install:root && npm run install:client && npm run install:server",
"docker": "docker compose -f compose.dev.yaml up -d",
"test": "cd server && npm test && cd ../client && npm test",
"test:create-db": "docker compose -p footsy-test -f compose.e2e.yaml exec -T database bash -c \"psql -U postgres -tAc \"SELECT 1 FROM pg_database WHERE datname='db_footsy_test'\" | grep -q 1 || psql -U postgres -c \"CREATE DATABASE db_footsy_test\"\"",
"dev:server:test": "cd server && npm run dev:test",
"dev:client:local": "cd client && npm run dev",
"test:e2e": "docker compose -p footsy-test -f compose.e2e.yaml up -d && npm run test:create-db && npm run test:seeder && npx wait-on tcp:5051 http://localhost:3001 && set \"E2E_GRAPHQL_URL=http://localhost:5051\" && npx playwright test __tests__ --reporter=html && docker compose -p footsy-test -f compose.e2e.yaml down",
"db:create-migration": "cd server && npx typeorm migration:create -n",
"db:migrate": "cd server && npx typeorm migration:run",
"docker:seeder": "docker compose -f compose.dev.yaml exec backend npm run seed",
"test:seeder": "docker compose -p footsy-test -f compose.e2e.yaml exec backend npm run seed"
}
}