-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
58 lines (53 loc) · 2.35 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
55
56
57
58
{
"main": "dist/index.js",
"scripts": {
"copy-resources": "cp -r puzzle-packages src/views dist/",
"build": "mkdir -p dist && npm run copy-resources && tsc",
"sync-remote": "source envs/deploy.env && rsync -av --exclude='scripts' --exclude='envs' --exclude='logs' --exclude='.git' --exclude='node_modules' --exclude='dist' $(pwd) $DEPLOY_PATH",
"build-remote": "source envs/deploy.env && ssh -t root@$PROD_IP 'cd marcos-22nd-web ; npm run build'",
"pre-run": "NODE_PATH=dist/ node ./dist/index.js",
"pre-deploy": "npm run sync-remote && npm run build-remote",
"debug": "source envs/debug.env && npm start",
"post-debug": "tmux kill-session -t marcos-22nd-debug && tmux new-session -s marcos-22nd-debug -d npm run debug",
"deploy-debug": "source envs/debug.env && ssh -t root@$PROD_IP 'cd marcos-22nd-web ; npm run post-debug'",
"push-debug": "npm run pre-deploy && npm run deploy-debug",
"prod": "source envs/prod.env && npm start",
"post-prod": "tmux kill-session -t marcos-22nd && tmux new-session -s marcos-22nd -d npm run prod",
"deploy-prod": "source envs/prod.env && ssh -t root@$PROD_IP 'cd marcos-22nd-web ; npm run post-prod'",
"push-prod": "npm run pre-deploy && npm run deploy-prod",
"deploy": "npm run pre-deploy && npm run deploy-debug && npm run deploy-prod",
"start": "npm run pre-run && node .",
"restart": "npm run clean && npm run build && npm start",
"clean": "rm -rf dist"
},
"devDependencies": {
"@types/cookie-parser": "^1.4.3",
"@types/express": "^4.17.17",
"@types/luxon": "^3.2.0",
"@typescript-eslint/eslint-plugin": "^5.55.0",
"@typescript-eslint/parser": "^5.55.0",
"eslint": "^8.36.0",
"eslint-config-standard-with-typescript": "^34.0.1",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-n": "^15.6.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-promise": "^6.1.1",
"prettier": "2.8.4",
"typescript": "^5.0.2"
},
"dependencies": {
"@types/body-parser": "^1.19.2",
"@types/cors": "^2.8.13",
"@types/ejs": "^3.1.2",
"@types/js-levenshtein": "^1.1.1",
"@types/lodash": "^4.14.191",
"body-parser": "^1.20.2",
"cookie-parser": "^1.4.6",
"cors": "^2.8.5",
"ejs": "^3.1.9",
"express": "^4.18.2",
"js-levenshtein": "^1.1.6",
"lodash": "^4.17.21",
"luxon": "^3.3.0"
}
}