-
Notifications
You must be signed in to change notification settings - Fork 7
/
package.json
executable file
·84 lines (84 loc) · 2.81 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
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
{
"name": "wolfsbane-backend",
"version": "1.0.0",
"description": "A travel booking server",
"main": "index.js",
"scripts": {
"clean": "rm -rf build && mkdir build",
"build-babel": "babel -d ./build ./src -s",
"build": "npm run clean && npm run build-babel",
"pre-test": "cross-env NODE_ENV=test npm run migrate && cross-env NODE_ENV=test npm run seed",
"undo-pre-test": "cross-env NODE_ENV=test npm run undo-migrate",
"spec": "npm run undo-pre-test && npm run pre-test && npm test",
"test": "cross-env NODE_ENV=test nyc --reporter=html --reporter=text mocha src/test/index.test --timeout 10000 --require @babel/register --recursive --exit || true",
"start": "npm run build && node ./build/index.js",
"start:dev": "cross-env NODE_ENV=development nodemon --exec babel-node ./src/index.js",
"coverage": "nyc report --reporter=text-lcov --reporter=lcov",
"migrate": "node_modules/.bin/sequelize db:migrate",
"undo-migrate": "node_modules/.bin/sequelize db:migrate:undo:all",
"seed": "node_modules/.bin/sequelize db:seed:all",
"undo-seed": "node_modules/.bin/sequelize db:seed:undo:all",
"drop-db": "node_modules/.bin/sequelize db:drop",
"lint": "node_modules/.bin/eslint --fix src/**/*.js"
},
"author": "Andela Simulations Programme",
"license": "MIT",
"dependencies": {
"@sendgrid/mail": "^6.4.0",
"bcrypt": "^3.0.6",
"body-parser": "^1.18.3",
"cors": "^2.8.4",
"datauri": "^2.0.0",
"dotenv": "^6.2.0",
"express": "^4.16.3",
"express-validator": "^6.1.1",
"jsonwebtoken": "^8.5.1",
"passport": "^0.4.0",
"passport-facebook": "^3.0.0",
"passport-google-oauth": "^2.0.0",
"pg": "^7.12.1",
"pg-hstore": "^2.3.3",
"sequelize": "^5.15.0"
},
"devDependencies": {
"@babel/cli": "^7.5.5",
"@babel/core": "^7.5.5",
"@babel/node": "^7.5.5",
"@babel/preset-env": "^7.5.5",
"@babel/register": "^7.5.5",
"chai": "^4.2.0",
"chai-http": "^4.3.0",
"coveralls": "^3.0.6",
"cross-env": "^5.2.0",
"eslint": "^5.16.0",
"eslint-config-airbnb-base": "^13.2.0",
"eslint-plugin-import": "^2.18.2",
"faker": "^4.1.0",
"mocha": "^6.2.0",
"mocha-lcov-reporter": "^1.3.0",
"nodemon": "^1.19.1",
"nyc": "^14.1.1",
"sequelize-cli": "^5.5.0",
"sequelize-test-helpers": "^1.1.2",
"sinon": "^7.4.1",
"sinon-chai": "^3.3.0"
},
"nyc": {
"_comment": "Purpose of this part: to do code coverage within Mocha/Chai using NYC",
"register": "babel-register",
"include": [
"**/*.js",
"./*.js"
],
"exclude": [
"**/node_modules/**",
"**/coverage/**",
"**/.nyc_output/**",
"**/src/utils/emailTemplates/**",
"**src/database/migrations/**",
"**src/database/seeders/**",
"**src/models/**",
"**src/test/**"
]
}
}