forked from darshitvvora/node-api-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
100 lines (100 loc) · 2.84 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
{
"name": "node-api-boilerplate",
"version": "0.0.1",
"description": "A boilerplate for NodeJS REST API's",
"main": "./src/index.js",
"scripts": {
"test": "NODE_ENV=test PORT=8000 ./node_modules/.bin/nyc ./node_modules/.bin/mocha --exit --timeout 50000 --require ./mocha.conf.js ./src/api/*/*.test.js mocha.global.js",
"debug": "node --nolazy --inspect-brk=9229 ./src/index",
"start": "nodemon ./src/index",
"clear-db": "sequelize db:drop; sequelize db:create",
"migrate": "DEBUG=s.* sequelize db:migrate;",
"lint": "./node_modules/.bin/eslint --max-warnings 0 ",
"lint:fix": "./node_modules/.bin/eslint --fix ",
"pretty": "./node_modules/.bin/prettier --write ",
"buddy": "./node_modules/.bin/buddy ",
"generate-js-docs": "./node_modules/.bin/jsdoc -c jsdoc.json ",
"doc": "./node_modules/.bin/apidoc -i src/ -o docs/ "
},
"keywords": [
"nodejs",
"boilerplate",
"rest",
"api"
],
"author": "Darshit Vora",
"license": "MIT",
"private": true,
"dependencies": {
"@elastic/elasticsearch": "^7.7.1",
"body-parser": "^1.19.0",
"commander": "^5.1.0",
"compression": "^1.7.4",
"cookie-parser": "^1.4.5",
"cors": "^2.8.5",
"dotenv": "^8.2.0",
"express": "^4.17.1",
"express-request-id": "^1.4.1",
"helmet": "^3.22.0",
"lodash": "^4.17.19",
"moment": "^2.26.0",
"node-webhooks": "^1.4.2",
"path": "^0.12.7",
"pg": "^8.2.1",
"pg-hstore": "^2.3.3",
"response-time": "^2.3.2",
"sequelize": "^5.21.10",
"sequelize-cli": "^5.5.1",
"winston": "^3.2.1",
"winston-daily-rotate-file": "^4.4.2",
"winston-elasticsearch": "0.7.0",
"winston-sentry": "^0.2.1"
},
"devDependencies": {
"apidoc": "^0.23.0",
"buddy.js": "^0.9.3",
"chai": "^4.2.0",
"chai-http": "^4.3.0",
"commitizen": "^4.1.2",
"cz-conventional-changelog": "^3.2.0",
"docdash": "^1.2.0",
"eslint": "^7.0.0",
"eslint-config-airbnb": "^18.1.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-prettier": "^3.1.3",
"faker": "^4.1.0",
"husky": "^4.2.5",
"jsdoc": "^3.6.4",
"lint-staged": "^10.2.4",
"mocha": "^7.2.0",
"nodemon": "^2.0.4",
"nyc": "^15.1.0",
"prettier": "^2.0.5",
"sinon": "^9.0.2",
"supertest": "^4.0.2"
},
"husky": {
"hooks": {
"prepare-commit-msg": "exec < /dev/tty && git cz --hook || true",
"pre-commit": "npm run test && npm audit && lint-staged",
"pre-push": "npm run lint"
}
},
"lint-staged": {
"src/**/!(*.test).js": [
"npm run buddy",
"npm run pretty",
"npm run lint:fix",
"npm run lint",
"npm run generate-js-docs",
"npm run doc",
"git add ."
]
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
}