-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
33 lines (33 loc) · 1.77 KB
/
package.json
File metadata and controls
33 lines (33 loc) · 1.77 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
{
"name": "frontbase-supervisor",
"version": "1.0.0",
"description": "FrontBase.io: Supervisor is responsible for keeping the app online and OS-level interactions.",
"scripts": {
"prepare": "git -C /frontbase/system/client pull && yarn --cwd ../client install && yarn --cwd ../client build && git -C /frontbase/system/server pull && yarn --cwd ../server install && yarn --cwd ../client build",
"start": "pm2 start ./pm2.json && yarn logs",
"restart": "pm2 stop ./pm2.json && yarn start",
"stop": "pm2 stop ./pm2.json",
"build": "tsc",
"logs": "pm2 logs --time --merge-logs",
"startSupervisor": "tsc && node dist/supervisor.js",
"update": "yarn updateSupervisor && yarn updateServer && yarn updateClient",
"updateClient": "git -C /frontbase/system/client pull && yarn --cwd ../client install && yarn --cwd ../client build",
"updateServer": "git -C /frontbase/system/server reset --hard && git -C /frontbase/system/server pull && yarn --cwd ../server install && yarn --cwd ../server build && yarn restartServer",
"updateEngine": "git -C /frontbase/system/engine reset --hard && git -C /frontbase/system/engine pull && yarn --cwd ../engine install && yarn --cwd ../engine build && yarn restartEngine",
"updateSupervisor": "git -C /frontbase/system/supervisor reset --hard && git -C /frontbase/system/supervisor pull && yarn --cwd ../supervisor install && yarn build && yarn restartSupervisor",
"restartSupervisor": "pm2 restart Supervisor",
"restartServer": "pm2 restart Server",
"restartEngine": "pm2 restart Engine"
},
"devDependencies": {
"pm2": "^5.2.2"
},
"dependencies": {
"concurrently": "^7.6.0",
"dotenv": "^16.0.3",
"global": "^4.4.0",
"mongodb": "^5.0.0",
"tsc": "^2.0.4",
"typescript": "^4.9.5"
}
}