forked from qa-apprenticeships/secure-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
57 lines (57 loc) · 1.93 KB
/
package.json
File metadata and controls
57 lines (57 loc) · 1.93 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
{
"name": "secure-api",
"version": "1.0.0",
"description": "",
"main": "index.js",
"directories": {
"test": "test"
},
"dependencies": {
"@awaitjs/express": "^0.6.3",
"debug": "^4.3.1",
"express": "^4.17.1",
"express-validator": "^6.7.0",
"helmet": "^4.2.0",
"jsonwebtoken": "^8.5.1",
"knex": "^0.21.12",
"lodash.clonedeep": "^4.5.0",
"mysql2": "^2.2.5",
"per-env": "^1.0.2",
"pg": "^8.5.1"
},
"devDependencies": {
"cross-env": "^7.0.3",
"eslint": "^7.14.0",
"eslint-config-google": "^0.14.0",
"expect": "^26.6.2",
"mocha": "^8.2.1",
"nodemon": "^2.0.6",
"nyc": "^15.1.0",
"supertest": "^6.0.1"
},
"scripts": {
"postinstall": "per-env",
"postinstall:development": "npm run start-db && npm run wait-for-db && npm run reset-db && npm run migrate-db && npm run seed-db",
"postinstall:test": "npm run start-db && npm run wait-for-db",
"postinstall:production": "",
"test": "npm run lint && npm run test-with-coverage",
"pretest": "npm run reset-db -- --env test && npm run migrate-db -- --env test",
"test-with-coverage": "NODE_ENV=test bash -o pipefail -c \"nyc mocha test/**/*.spec.js --exit | tee test-results.txt\"",
"lint": "eslint ./",
"wait-for-db": "until [ $(docker inspect -f {{.State.Health.Status}} secure-api_postgres_1) = \"healthy\" ]; do sleep 1; done",
"start-db": "docker-compose up -d postgres",
"reset-db": "knex migrate:rollback --all --knexfile src/config/knexfile.js",
"migrate-db": "knex migrate:latest --knexfile src/config/knexfile.js",
"seed-db": "knex seed:run --knexfile src/config/knexfile.js",
"dev": "nodemon src/index.js",
"predev": "npm run migrate-db",
"start": "node src/index.js",
"adminer": "docker-compose up -d adminer",
"down": "docker-compose down"
},
"author": "Andrew Burgess / QA Apprenticeships",
"license": "ISC",
"engines": {
"node": "14.x"
}
}