-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
45 lines (45 loc) · 1.74 KB
/
Copy pathpackage.json
File metadata and controls
45 lines (45 loc) · 1.74 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
33
34
35
36
37
38
39
40
41
42
43
44
45
{
"name": "battleship",
"packageManager": "yarn@3.6.1",
"version": "1.0.1",
"repository": "https://github.com/tinyCatzilla/battleship.git",
"author": "catzilla",
"type": "module",
"devDependencies": {
"@types/node": "^20.4.1",
"@types/ws": "^8.5.5",
"ts-node": "^10.9.1",
"tsc-watch": "^6.0.4",
"typescript": "^5.1.6"
},
"dependencies": {
"@types/cors": "^2.8.13",
"@types/dompurify": "^3.0.2",
"@types/express": "^4.17.17",
"@types/jsdom": "^21.1.1",
"@yarnpkg/pnpify": "^4.0.0-rc.48",
"concurrently": "^8.2.0",
"copyfiles": "^2.4.1",
"cors": "^2.8.5",
"dompurify": "^3.0.5",
"dotenv": "^16.3.1",
"express": "^4.18.2",
"jsdom": "^22.1.0",
"pm2": "^5.3.0",
"rimraf": "^5.0.1",
"serve": "^14.2.0",
"ws": "^8.0.0"
},
"scripts": {
"clean": "rimraf build/",
"copy-files": "copyfiles --all --up 1 --exclude \"./**/*.{ts,tsx}\" \"./src/**/*\" build/",
"build": "yarn clean && tsc && yarn copy-files",
"start-backend-dev": "tsc-watch --onSuccess \"node ./build/backend/server.js\" --project ./tsconfig.json",
"start-frontend-dev": "FRONTEND_PORT=$(cat .env | grep FRONTEND_PORT | cut -d '=' -f 2) && serve ./build/frontend -s -l $FRONTEND_PORT",
"build-frontend-dev": "tsc --project tsconfig.json",
"dev": "concurrently \"yarn build\" \"yarn start-backend-dev\" \"yarn build-frontend-dev\" \"yarn start-frontend-dev\"",
"start-backend-prod": "tsc && pm2 start ./build/backend/server.js --name \"webgame-backend\"",
"cf-tunnel-backend": "BACKEND_PORT=$(cat .env | grep BACKEND_PORT | cut -d '=' -f 2) && cloudflared tunnel run battleship",
"start": "concurrently \"yarn build\" \"yarn start-backend-prod\" \"yarn cf-tunnel-backend\""
}
}