kill-the-newsletter/package.json

82 lines
2.4 KiB
JSON
Raw Normal View History

2020-03-18 03:19:05 +01:00
{
"scripts": {
2020-08-04 23:47:58 +02:00
"start": "ts-node .",
"develop": "open-cli http://localhost:8000 && 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"
2020-03-18 03:19:05 +01:00
},
"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",
2020-07-09 16:14:32 +02:00
"caddy-npm": "^2.1.1",
2020-03-18 17:22:18 +01:00
"crypto-random-string": "^3.2.0",
2020-05-05 08:12:57 +02:00
"entities": "^2.0.0",
2020-07-23 17:11:41 +02:00
"escape-string-regexp": "^4.0.0",
2020-03-18 03:19:05 +01:00
"express": "^4.17.1",
2020-05-05 08:12:57 +02:00
"jsdom": "^16.2.2",
2020-03-19 04:36:02 +01:00
"mailparser": "^2.7.7",
2020-03-20 05:31:31 +01:00
"pm2": "^4.2.3",
2020-05-05 08:12:57 +02:00
"sanitize-xml-string": "^1.1.0",
2020-03-19 03:41:40 +01:00
"smtp-server": "^3.6.0",
2020-06-09 10:26:41 +02:00
"ts-node": "^8.10.1",
"typescript": "^3.8.3",
2020-05-05 08:12:57 +02:00
"write-file-atomic": "^3.0.3"
2020-03-18 03:19:05 +01:00
},
"devDependencies": {
"@types/jest": "^25.1.4",
2020-03-19 05:20:28 +01:00
"@types/nodemailer": "^6.4.0",
2020-03-20 18:48:53 +01:00
"@types/qs": "^6.9.1",
"axios": "^0.19.2",
2020-03-31 18:57:56 +02:00
"jest": "^25.2.4",
"nodemailer": "^6.4.6",
2020-03-18 03:19:05 +01:00
"nodemon": "^2.0.2",
2020-06-09 10:26:41 +02:00
"open-cli": "^6.0.1",
2020-04-03 23:06:43 +02:00
"prettier": "^2.0.2",
2020-03-31 18:57:56 +02:00
"qs": "^6.9.3",
"ts-jest": "^25.5.0"
2020-03-18 03:19:05 +01:00
},
"jest": {
2020-06-09 10:26:41 +02:00
"preset": "ts-jest",
2020-03-18 03:19:05 +01:00
"testEnvironment": "node"
2020-03-20 05:31:31 +01:00
},
"apps": [
{
"name": "kill-the-newsletter",
2020-08-04 23:47:58 +02:00
"script": "npm start",
2020-03-21 04:54:56 +01:00
"env": {
2020-03-24 16:13:07 +01:00
"NODE_ENV": "production",
2020-04-06 15:34:44 +02:00
"WEB_PORT": "8000",
2020-04-06 15:48:34 +02:00
"EMAIL_PORT": "25",
2020-08-04 23:57:49 +02:00
"BASE_URL": "https://kill-the-newsletter.com",
2020-04-06 15:54:42 +02:00
"EMAIL_DOMAIN": "kill-the-newsletter.com",
2020-04-06 15:57:18 +02:00
"ISSUE_REPORT": "mailto:kill-the-newsletter@leafac.com"
2020-03-21 04:54:56 +01:00
}
2020-03-21 05:51:27 +01:00
},
{
2020-03-21 07:10:56 +01:00
"name": "caddy",
"script": "caddy run"
2020-03-20 05:31:31 +01:00
}
],
"deploy": {
"production": {
"user": "root",
2020-03-21 06:43:17 +01:00
"host": "kill-the-newsletter.com",
2020-03-20 05:31:31 +01:00
"ref": "origin/master",
2020-08-04 23:57:49 +02:00
"repo": "git@github.com:leafac/kill-the-newsletter.com.git",
"path": "/root/kill-the-newsletter.com",
2020-04-30 15:57:37 +02:00
"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)",
2020-07-24 10:03:49 +02:00
"post-setup": "npm ci --production && npx pm2 startup",
"post-deploy": "npm ci --production && npx pm2 startOrRestart package.json && npx pm2 save",
2020-03-20 05:46:52 +01:00
"ssh_options": [
"ForwardAgent=yes",
"StrictHostKeyChecking=no"
2020-03-21 04:54:56 +01:00
]
2020-03-20 05:31:31 +01:00
}
2020-03-18 03:19:05 +01:00
}
}