-
Notifications
You must be signed in to change notification settings - Fork 18
/
package.json
53 lines (53 loc) · 1.77 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
{
"name": "numbers_api",
"version": "1.0.0",
"scripts": {
"test": "jest",
"start": "NODE_ENV=development nodemon server.js",
"start-graphql": "NODE_ENV=development nodemon graphql/index.js",
"start-prod": "NODE_ENV=production forever -a start server.js",
"stop": "forever stopall",
"scss": "node-sass public/sass -o public/css",
"dangerously-stop-running-node-servers": "sudo pkill node || true; npm run stop",
"transfer": "npm run scss; rsync -avz --exclude .git --exclude logs/ --exclude suggestions.json --stats --progress . numbers:~/www",
"deploy": "npm run transfer; ssh numbers 'cd /home/numbers/www && nohup make start &>> deploy.log < /dev/null &'; ssh numbers 'tail -n 200 /home/numbers/www/deploy.log'",
"dump-facts": "NODE_PATH=/usr/local/lib/node_modules node server.js --dump",
"count-facts": "grep -c '[a-zA-Z]' facts-dump/*.txt && grep '[a-zA-Z]' facts-dump/*.txt | wc -l"
},
"main": "server.js",
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"pre-push": "npm test"
}
},
"lint-staged": {
"*.{js,css,md}": "pretty-quick --staged"
},
"dependencies": {
"apollo-server-express": "^2.24.0",
"cors": "^2.8.5",
"dotenv": "^8.2.0",
"easygraphql-tester": "^6.0.1",
"errorhandler": "^1.5.1",
"express": "^4.17.1",
"forever": "^3.0.0",
"graphql": "^15.5.0",
"graphql-tools": "^7.0.5",
"jquery-mousewheel": "^3.1.4",
"marked": "^1.1.0",
"node-sass": "^4.14.1",
"nodemon": "^2.0.6",
"nunjucks": "^3.2.1",
"serve-favicon": "^2.5.0",
"underscore": ">= 1.12.1"
},
"devDependencies": {
"husky": "^4.2.5",
"jest": "^26.0.1",
"lint-staged": "^10.2.9",
"prettier": "^2.0.5",
"pretty-quick": "^2.0.1",
"supertest": "^4.0.2"
}
}