forked from GSA/srt-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
85 lines (85 loc) · 5.14 KB
/
Copy pathpackage.json
File metadata and controls
85 lines (85 loc) · 5.14 KB
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
82
83
84
85
{
"name": "section508dash",
"version": "1.0.1",
"description": "Web services to see 508 compliance predictions for solicitations posted to FBO",
"main": "index.js",
"scripts": {
"start": "node_modules/.bin/sequelize db:migrate && node server/loadPredictions.js && node server/server.js",
"dev": "export JWT_SECRET=abc123 && export NODE_ENV=development && export MAIL_ENGINE=nodemailer-mock && node_modules/.bin/sequelize db:migrate && node --max-old-space-size=256 server/server.js",
"dev-monitor": "export JWT_SECRET=abc123 && export NODE_ENV=development && export MAIL_ENGINE=nodemailer-mock && node_modules/.bin/sequelize db:migrate && nodemon node --max-old-space-size=256 server/server.js",
"load-predictions": "export JWT_SECRET=abc123 && export NODE_ENV=development && export MAIL_ENGINE=nodemailer-mock && node_modules/.bin/sequelize db:migrate && node server/loadPredictions.js --fast",
"old-test": "export NODE_ENV=test || SET NODE_ENV=test && mocha server/**/*.test.js",
"analysis": "snyk test",
"test": "export JWT_SECRET=abcd && export NODE_ENV=development && export MAIL_ENGINE=nodemailer-mock && node server/loadPredictions.js --fast && ./node_modules/.bin/jest --detectOpenHandles --config=jest.config.js ",
"circleci": "export JWT_SECRET=123456789 && MAIL_ENGINE=nodemailer-mock && node server/loadPredictions.js --fast && ./node_modules/.bin/snyk test && circleci tests glob server/tests/**/* | circleci tests split --split-by=timings | xargs ./node_modules/.bin/jest --detectOpenHandles --config=jest.config.js ",
"test-watch": "export NODE_ENV=development && export MAIL_ENGINE=nodemailer-mock && node server/loadPredictions.js --fast && jest --detectOpenHandles --config=jest.config.js --watch ",
"backup-db": "export PGPASSWORD=srtpass && pg_dump -U circleci -d srt -h localhost > srt-database-export.sql && gzip -8 srt-database-export.sql && cp srt-database-export.sql.gz srt-db.crypt && export CRYPTIFY=Blue-Cast-1-Heavy-Bird && ./node_modules/.bin/cryptify -c aes-256-cbc -p ${CRYPTIFY} -e srt-db.crypt",
"restore-db": "cp srt-db.crypt srt-database-export.sql.gz && ./node_modules/.bin/cryptify -c aes-256-cbc -p ${CRYPTIFY} -d srt-database-export.sql.gz && export PGPASSWORD=srtpass && export PGUSER=circleci && export PGHOST=192.168.33.101 && export PGDATABASE=srt && rm -f srt-database.sql* srt-database.sql.gz && cp srt-database-export.sql.gz srt-database.sql.gz && gzip -d srt-database.sql.gz && dropdb ${PGDATABASE} && createdb ${PGDATABASE} && psql <srt-database.sql ",
"restore-stage": "export PGPASSWORD=srtpass && export PGUSER=circleci && export PGHOST=192.168.33.22 && export PGDATABASE=srt && dropdb ${PGDATABASE} && createdb ${PGDATABASE} && psql < stage-database.sql ",
"startdb": "export CRYPTIFY=Blue-Cast-1-Heavy-Bird && mkdir -p docker/sql && rm -f docker/sql/srt-database-export* && cp srt-db.crypt docker/sql/srt-database-export.sql.gz && cd docker/sql && ../.././node_modules/.bin/cryptify -c aes-256-cbc -p ${CRYPTIFY} -d srt-database-export.sql.gz && gzip -d srt-database-export.sql.gz && cd .. && ./run-pg.sh && cd .. && node_modules/.bin/sequelize db:migrate && node server/loadPredictions.js --fast ",
"loaddbbackup": "export PGHOST=localhost && export PGDATABASE=srt && export PGUSER=circleci && export PGPASSWORD=srtpass && zcat dbbackup.sql.gz | psql && node_modules/.bin/sequelize db:migrate ",
"killIdle": "ps -eaf | grep idle | grep -v grep | grep -v 4801 | grep -o \"^[0-9]*[^0-9]*[0-9]*\" | grep -o \"[0-9]*$\" | sudo xargs kill -9 ",
"doc": "node_modules/.bin/jsdoc -d docs -R ./README.md -r server/routes server/models",
"snyk-protect": "snyk protect",
"prepare": "npm run snyk-protect"
},
"author": "TCG",
"license": "ISC",
"dependencies": {
"@albertcrowley/winston-pg-native": "github:albertcrowley/winston-pg-native",
"bcryptjs": "^2.4.3",
"body-parser": "^1.19.0",
"cas-authentication": "0.0.8",
"clone-deep": "^4.0.1",
"cors": "^2.8.5",
"express": "^4.17.1",
"express-session": "^1.17.1",
"express-winston": "^3.4.0",
"jsonwebtoken": "^8.5.1",
"lodash": "^4.17.15",
"moment": "^2.27.0",
"ms": "^2.1.2",
"nodemailer": "^5.1.1",
"pg": "^7.18.2",
"random-words": "^1.1.1",
"sequelize": "^5.21.7",
"sequelize-cli": "^5.5.1",
"umzug": "^2.3.0",
"winston": "^3.2.1"
},
"devDependencies": {
"cryptify": "^3.0.3",
"docdash": "^1.2.0",
"eslint": "^5.16.0",
"eslint-config-standard": "^12.0.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-node": "^8.0.1",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"expect": "^1.20.2",
"jest": "^25.4.0",
"jest-extended": "^0.11.5",
"jsdoc": "^3.6.4",
"mock-express-request": "^0.2.2",
"mock-express-response": "^0.2.2",
"nodemailer-mock": "^1.5.1",
"nodemon": "^2.0.4",
"sinon": "^7.5.0",
"snyk": "^1",
"supertest": "^4.0.2",
"supertest-session": "^4.0.0"
},
"engines": {
"node": "^12.18.0",
"npm": "^3.10.3"
},
"nodemonConfig": {
"verbose": false,
"ignore": [
"*.test.js",
"winston.log.json"
],
"delay": 2200
},
"snyk": true
}