-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
49 lines (49 loc) · 1.75 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
{
"name": "blogs-api",
"version": "0.1.0",
"engines": {
"node": ">=16.0.0"
},
"engineStrict": true,
"private": true,
"dependencies": {
"express": "4.18.2",
"express-async-errors": "3.1.1",
"joi": "17.6.0",
"jsonwebtoken": "9.0.0",
"morgan": "1.10.0",
"mysql2": "2.1.0",
"sequelize": "6.30.0",
"shelljs": "0.8.5"
},
"main": "src/server.js",
"scripts": {
"prestart": "npx sequelize-cli db:create && npx sequelize-cli db:migrate",
"start": "node .",
"start:test": "API_PORT=3030 NODE_ENV=test node .",
"kill:test": "if lsof -t -i:3030; then kill -9 $(lsof -t -i:3030); fi",
"drop": "npx sequelize-cli db:drop",
"seed": "npx sequelize-cli db:seed:all",
"populate": "npx sequelize-cli db:create && npx sequelize-cli db:migrate && npx sequelize-cli db:seed:all",
"pretest": "(npm run kill:test && NODE_ENV=test npm run start:test) &",
"test": "npx -y wait-on -t 300000 http://localhost:3030 && NODE_ENV=test API_PORT=3030 jest -i --verbose --forceExit",
"test:dev": "npx -y wait-on -t 300000 http://localhost:3001 && NODE_ENV=development API_PORT=3001 jest -i --verbose --forceExit",
"posttest": "npm run kill:test",
"test-coverage": "jest -i --verbose --forceExit --coverage",
"predev": "npx sequelize-cli db:create && npx sequelize-cli db:migrate",
"dev": "nodemon .",
"lint": "eslint --no-inline-config --no-error-on-unmatched-pattern -c .eslintrc.json ."
},
"devDependencies": {
"change-case": "4.1.2",
"eslint-config-trybe-backend": "2.1.0",
"frisby": "2.1.2",
"jest": "26.0.1",
"jest-each": "28.0.1",
"nodemon": "2.0.22",
"sequelize-cli": "6.2.0",
"sequelize-jest-helpers-trybe": "1.0.0",
"supertest": "4.0.2",
"wait-on": "6.0.1"
}
}