This repository has been archived by the owner on Apr 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
52 lines (52 loc) · 3.18 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
{
"name": "@open-cluster-management/console",
"version": "0.0.1",
"license": "SEE LICENSE IN LICENSE",
"private": "true",
"scripts": {
"postinstall": "concurrently npm:frontend:ci npm:backend:ci -n frontend,backend -c green,blue",
"frontend:ci": "cd frontend && npm ci",
"backend:ci": "cd backend && npm ci",
"frontend:reinstall": "cd frontend && npm reinstall",
"backend:reinstall": "cd backend && npm reinstall",
"start": "concurrently npm:frontend npm:backend -n frontend,backend -c green,blue",
"backend": "cd backend && npm start",
"frontend": "cd frontend && npm start",
"test": "concurrently --kill-others-on-fail npm:frontend:test npm:backend:test -n frontend,backend -c green,blue",
"frontend:test": "cd frontend && npm test",
"backend:test": "cd backend && npm test",
"build": "concurrently npm:frontend:build npm:backend:build -n frontend,backend -c green,blue",
"backend:build": "cd backend && npm run build",
"frontend:build": "cd frontend && npm run build",
"clean": "concurrently npm:frontend:clean npm:backend:clean -n frontend,backend -c green,blue",
"backend:clean": "cd backend && npm run clean",
"frontend:clean": "cd frontend && npm run clean",
"update": "npx npm-check-updates --upgrade && npm install && npm run backend:update && npm run frontend:update",
"backend:update": "cd backend && npm run update",
"frontend:update": "cd frontend && npm run update",
"copyright:check": "ts-node --skip-project scripts/copyright-check",
"copyright:fix": "ts-node --skip-project scripts/copyright-fix",
"docker:build": "docker build --file Dockerfile.prow --tag console .",
"docker:run": "npm run docker:build && docker run --rm --name console -p 3000:3000 -e PORT=3000 -v $PWD/backend/certs:/app/certs -v $PWD/backend/config:/app/config --env-file=backend/.env console | ./backend/node_modules/.bin/pino-zen -i time && docker rm -f console",
"docker:deploy": "npm run docker:build && docker tag console quay.io/$USER/console:latest && docker push quay.io/$USER/console:latest && ./scripts/patch-deployment.sh latest quay.io/$USER/console",
"podman:build": "podman build --file Dockerfile.prow --tag console .",
"podman:run": "npm run podman:build && podman run --rm --name console -p 3000:3000 -e PORT=3000 -v $PWD/backend/certs:/app/certs -v $PWD/backend/config:/app/config --env-file=backend/.env console | ./backend/node_modules/.bin/pino-zen -i time && podman rm -f console",
"podman:deploy": "npm run podman:build && podman tag console quay.io/$USER/console:latest && podman push quay.io/$USER/console:latest && ./scripts/patch-deployment.sh latest quay.io/$USER/console",
"setup": "./setup.sh",
"prepare": "husky install"
},
"devDependencies": {
"@types/node": "^16.6.0",
"concurrently": "^6.2.1",
"husky": "^7.0.1",
"prettier": "^2.3.2",
"ts-node": "^10.2.0",
"typescript": "^4.3.5"
},
"prettier": {
"printWidth": 120,
"tabWidth": 4,
"semi": false,
"singleQuote": true
}
}