forked from leafac/kill-the-newsletter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
81 lines (81 loc) · 2.36 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
{
"scripts": {
"start": "ts-node .",
"develop": "nodemon --ext ts --exec 'ts-node .'",
"test": "prettier --check '**/*.{ts,css}' && jest",
"deploy": "pm2 deploy package.json production",
"deploy:setup": "pm2 deploy package.json production setup"
},
"dependencies": {
"@types/express": "^4.17.3",
"@types/jsdom": "^16.2.1",
"@types/mailparser": "^2.7.2",
"@types/node": "^13.9.8",
"@types/smtp-server": "^3.5.4",
"@types/write-file-atomic": "^3.0.0",
"caddy-npm": "^2.1.1",
"crypto-random-string": "^3.2.0",
"entities": "^2.0.0",
"escape-string-regexp": "^4.0.0",
"express": "^4.17.1",
"jsdom": "^16.2.2",
"mailparser": "^2.7.7",
"pm2": "^4.2.3",
"sanitize-xml-string": "^1.1.0",
"smtp-server": "^3.6.0",
"tagged-template-noop": "^2.1.1",
"ts-node": "^8.10.1",
"typescript": "^3.8.3",
"write-file-atomic": "^3.0.3"
},
"devDependencies": {
"@types/jest": "^25.1.4",
"@types/nodemailer": "^6.4.0",
"@types/qs": "^6.9.1",
"axios": "^0.21.1",
"jest": "^25.2.4",
"nodemailer": "^6.4.6",
"nodemon": "^2.0.2",
"prettier": "^2.0.2",
"qs": "^6.9.3",
"ts-jest": "^25.5.0"
},
"jest": {
"preset": "ts-jest",
"testEnvironment": "node"
},
"apps": [
{
"name": "kill-the-newsletter",
"script": "npm start",
"env": {
"NODE_ENV": "production",
"WEB_PORT": "8000",
"EMAIL_PORT": "25",
"BASE_URL": "https://kill-the-newsletter.com",
"EMAIL_DOMAIN": "kill-the-newsletter.com",
"ISSUE_REPORT": "mailto:kill-the-newsletter@leafac.com"
}
},
{
"name": "caddy",
"script": "caddy run"
}
],
"deploy": {
"production": {
"user": "root",
"host": "kill-the-newsletter.com",
"ref": "origin/master",
"repo": "git@github.com:leafac/kill-the-newsletter.com.git",
"path": "/root/kill-the-newsletter.com",
"pre-setup": "(curl -sL https://deb.nodesource.com/setup_14.x | bash -) && apt install -y nodejs build-essential && (ssh -o StrictHostKeyChecking=no git@github.com || true)",
"post-setup": "npm ci --production && npx pm2 startup",
"post-deploy": "npm ci --production && npx pm2 startOrRestart package.json && npx pm2 save",
"ssh_options": [
"ForwardAgent=yes",
"StrictHostKeyChecking=no"
]
}
}
}