kill-the-newsletter/package.json

77 lines
2.3 KiB
JSON
Raw Normal View History

2020-03-18 03:19:05 +01:00
{
"scripts": {
2020-03-20 07:52:49 +01:00
"start": "concurrently \"tsc --watch\" \"nodemon lib\"",
2020-03-20 18:18:14 +01:00
"test": "tsc && jest && prettier --check 'src/**'",
2020-03-20 20:15:49 +01:00
"deploy": "pm2 deploy package.json production"
2020-03-18 03:19:05 +01:00
},
"dependencies": {
2020-03-18 17:22:18 +01:00
"crypto-random-string": "^3.2.0",
2020-03-18 03:19:05 +01:00
"express": "^4.17.1",
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-03-18 04:07:48 +01:00
"react": "^16.13.0",
"react-dom": "^16.13.0",
2020-03-19 03:41:40 +01:00
"smtp-server": "^3.6.0",
2020-03-18 03:19:05 +01:00
"xml2js": "^0.4.23"
},
"devDependencies": {
"@types/express": "^4.17.3",
"@types/jest": "^25.1.4",
2020-03-19 04:36:02 +01:00
"@types/mailparser": "^2.7.0",
2020-03-18 17:22:18 +01:00
"@types/node": "^13.9.1",
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",
2020-03-18 04:07:48 +01:00
"@types/react": "^16.9.23",
"@types/react-dom": "^16.9.5",
2020-03-19 03:41:40 +01:00
"@types/smtp-server": "^3.5.3",
2020-03-18 17:22:18 +01:00
"@types/xml2js": "^0.4.5",
2020-03-20 18:48:53 +01:00
"axios": "^0.19.2",
2020-03-18 03:19:05 +01:00
"concurrently": "^5.1.0",
"jest": "^25.1.0",
2020-03-19 05:20:28 +01:00
"nodemailer": "^6.4.5",
2020-03-18 03:19:05 +01:00
"nodemon": "^2.0.2",
"prettier": "^1.19.1",
2020-03-20 18:48:53 +01:00
"qs": "^6.9.1",
2020-03-18 03:19:05 +01:00
"typescript": "^3.8.3"
},
"jest": {
"rootDir": "lib",
"testEnvironment": "node"
2020-03-20 05:31:31 +01:00
},
"apps": [
{
"name": "kill-the-newsletter",
2020-03-20 07:33:11 +01:00
"script": "lib"
2020-03-20 05:31:31 +01:00
}
],
"deploy": {
"production": {
"user": "root",
"host": "204.48.21.111",
"ref": "origin/master",
"repo": "git@github.com:leafac/www.kill-the-newsletter.com.git",
"path": "/root/www.kill-the-newsletter.com",
2020-03-20 22:31:46 +01:00
"pre-setup": "(curl -sL https://deb.nodesource.com/setup_13.x | bash -) && sudo apt-get install -y nodejs build-essential && (curl https://getcaddy.com | bash -s personal) && (ssh -o StrictHostKeyChecking=no git@github.com || true)",
2020-03-20 05:46:52 +01:00
"ssh_options": [
"ForwardAgent=yes",
"StrictHostKeyChecking=no"
],
2020-03-20 06:54:55 +01:00
"TODO": [
2020-03-20 22:31:46 +01:00
"Caddyfile",
"/root/www.kill-the-newsletter.com/current/node_modules/.bin/pm2 startOrRestart all",
2020-03-20 15:59:05 +01:00
"env NODE_ENV=production npm ci",
2020-03-20 06:54:55 +01:00
"rsync",
"pm2 startup OR pm2 save",
2020-03-20 07:15:46 +01:00
"pm2 start env.js",
2020-03-20 07:33:11 +01:00
"https://pm2.keymetrics.io/docs/usage/deployment/",
2020-03-20 20:20:30 +01:00
"https://pm2.keymetrics.io/docs/usage/startup/",
2020-03-21 02:56:35 +01:00
"host: kill-the-newsletter.com",
2020-03-21 04:15:41 +01:00
"test: basic application workflow, previously created newsletter, /feeds/ directory listing, port 8000 isnt responding"
2020-03-20 06:54:55 +01:00
],
2020-03-20 05:31:31 +01:00
"env": {
"NODE_ENV": "production"
}
}
2020-03-18 03:19:05 +01:00
}
}