-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
54 lines (54 loc) · 1.96 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
{
"name": "dateam",
"private": true,
"workspaces": [
"backend",
"frontend",
"shared"
],
"engines": {
"node": ">=14.0.0",
"npm": ">=7.0.0"
},
"scripts": {
"dev:frontend": "cd frontend/ && npm start",
"dev:backend": "cd backend/ && npm run dev",
"build": "npm run build:shared && npm run build:backend && npm run build:frontend",
"build:frontend": "cd frontend/ && npm run build",
"build:backend": "cd backend/ && npm run build",
"build:shared": "cd shared/ && npm run build",
"start": "cd ./backend && npm start",
"pretest": "npm run build",
"test": "npm run test:backend && npm run test:shared && npm run test:frontend",
"test:frontend": "cd frontend/ && npm run test",
"test:backend": "cd backend/ && npm run test",
"test:shared": "cd shared/ && npm run test",
"test:db": "cd backend/ && npm run test:db",
"clean": "rm -rf ./**/build ./**/*.tsbuildinfo",
"clean:ci": "npm run clean && rm -rf ./node_modules ./**/node_modules",
"docker:up": "docker-compose --env-file .env up",
"docker:down": "docker-compose --env-file .env down",
"predocker:build": "npm run build",
"docker:build": "docker-compose --env-file .env build",
"predocker:backend-build": "npm run build:shared && npm run build:backend",
"docker:backend-build": "docker build -f ./backend/Dockerfile -t backend .",
"docker:backend-run": "docker run -it -p 3001:3001 -e PORT=3001 backend",
"predocker:frontend-build": "npm run build:shared && npm run build:frontend",
"docker:frontend-build": "docker build -f ./frontend/Dockerfile -t frontend .",
"docker:frontend-run": "docker run -it -p 3000:3000 -e PORT=3000 frontend"
},
"devDependencies": {
"husky": "^4.3.8",
"lint-staged": "^10.5.4",
"npm-run-all": "^4.1.5",
"prettier": "^2.2.1"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{ts,tsx,js,css,md}": "prettier --write"
}
}