-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
203 lines (203 loc) · 6.5 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
{
"name": "police-scorecard-api",
"version": "1.2.0",
"description": "Police Scorecard API",
"author": "Police Scorecard",
"license": "MIT",
"private": false,
"main": "index.js",
"engines": {
"node": ">= 12.12.0",
"npm": ">= 6.13.4"
},
"contributors": [
{
"name": "Peter Schmalfeldt",
"email": "[email protected]",
"url": "peterschmalfeldt.com"
}
],
"scripts": {
"start": "./scripts/api.sh start",
"start:debug": "./scripts/api.sh start debug",
"stop": "./scripts/api.sh stop",
"cleanup": "find ~/.forever/ -name '*.log' -delete && find ./ -name '*.log' -delete && rm -fr cleanup && npm run docs:clean && rm -r ./.cache/*.cache",
"docs": "jsdoc -c ./doc-conf.json -r ./app -R ./apiary.apib -d ./app/static/docs -t ./node_modules/ink-docstrap/template",
"docs:clean": "rm -r ./app/static/docs || true",
"test": "API_NODE_ENV=test mocha ./test/**/*_test.js --recursive --exit --require esm ./test/bootstrap.js",
"test:single": "API_NODE_ENV=test mocha ./test/**/*_test.js --recursive --exit --require esm ./test/bootstrap.js --grep $2",
"lint": "eslint --ext .js -f ./node_modules/eslint-friendly-formatter app test && echo '\n【ツ】CODE FORMATTING PERFECTION !!!\n'",
"coverage": "API_NODE_ENV=test nyc npm run test",
"check-coverage": "nyc check-coverage --statement 80 --branch 80 --function 80 --line 80",
"migrate": "sequelize db:migrate --debug",
"migrate:create": "sequelize migration:create --debug",
"migrate:rollback": "sequelize db:migrate:undo --debug",
"seed": "sequelize db:seed:all --debug",
"seed:create": "sequelize seed:create --debug",
"seed:rollback": "sequelize db:seed:undo --debug",
"elasticsearch:create": "cd ./app && node ./elasticsearch/create && cd ../",
"elasticsearch:update": "cd ./app && node ./elasticsearch/update && cd ../",
"elasticsearch:delete": "cd ./app && node ./elasticsearch/delete && cd ../",
"help": "node node_modules/npm-scripts-help"
},
"repository": {
"type": "git",
"url": "git+https://github.com/policescorecard/api.git"
},
"bugs": {
"url": "https://github.com/policescorecard/api/issues"
},
"homepage": "https://github.com/policescorecard/api#readme",
"dependencies": {
"@bugsnag/js": "^6.5.0",
"@bugsnag/plugin-express": "^6.5.0",
"async": "^3.1.0",
"babel-core": "^6.26.3",
"bcrypt": "^3.0.7",
"bluebird": "^3.7.2",
"class-extend": "^0.1.2",
"colors": "^1.4.0",
"convict": "^5.2.0",
"cors": "^2.8.5",
"debug": "^4.1.1",
"del": "^5.1.0",
"dotenv": "^8.2.0",
"elasticsearch": "^16.5.0",
"express": "^4.17.1",
"express-jwt": "^5.3.1",
"express-rate-limit": "git:https://github.com/manifestinteractive/express-rate-limit.git#d615bcf3cb50cb67e6a6c05d220d7b86d7f82255",
"express-session": "^1.17.0",
"flat-cache": "^2.0.1",
"follow-redirects": "^1.12.1",
"hashids": "^2.1.0",
"jsonwebtoken": "^8.5.1",
"lodash": "^4.17.20",
"logzio-nodejs": "^1.0.7",
"mandrill-api": "^1.0.45",
"md5": "^2.2.1",
"moment": "^2.24.0",
"moment-timezone": "^0.5.27",
"mysql2": "^2.1.0",
"passport": "^0.4.1",
"passport-local": "^1.0.0",
"randomstring": "^1.1.5",
"sequelize": "^5.21.3",
"sequelize-cli": "^5.5.1",
"sequelize-slugify": "^0.9.1",
"uuid": "^3.3.3",
"validate.js": "^0.13.1",
"validator": "^12.1.0"
},
"devDependencies": {
"babel-eslint": "^10.0.3",
"babel-register": "^6.26.0",
"chai": "^4.2.0",
"chai-passport-strategy": "^1.0.1",
"csv-parse": "^4.8.7",
"eslint": "^6.8.0",
"eslint-config-standard": "^14.1.0",
"eslint-friendly-formatter": "^4.0.1",
"eslint-plugin-html": "^6.0.0",
"eslint-plugin-import": "^2.19.1",
"eslint-plugin-node": "^11.0.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"esm": "^3.2.25",
"ink-docstrap": "^1.3.2",
"jsdoc": "^3.6.3",
"mocha": "^6.2.2",
"mock-req": "^0.2.0",
"mock-res": "^0.5.0",
"nodemon": "^2.0.2",
"npm-scripts-help": "^0.8.0",
"nyc": "^15.0.0",
"pre-commit": "^1.2.2",
"rewire": "^4.0.1",
"sinon": "^8.0.1"
},
"nyc": {
"check-coverage": true,
"report-dir": "coverage",
"reporter": "html",
"include": [
"app/**/*.js"
],
"exclude": [
"app/static/**/*.js",
"**/*.spec.js"
],
"branches": 50,
"lines": 50,
"functions": 50,
"statements": 50
},
"pre-commit": [
"lint"
],
"scriptshelp": {
"help-message": "API NPM Commands:",
"help": {
"Desciption": "Generates List of NPM Scripts you can run"
},
"start": {
"Desciption": "Runs API using `forever` service after running `npm run cleanup`"
},
"start:debug": {
"Desciption": "Starts the API in Debug Mode so you can see Console statements in terminal"
},
"stop": {
"Desciption": "Stop API when run from `npm start` using `forever`"
},
"cleanup": {
"Desciption": "Remove files & folders generated by API that are not apart of the code base"
},
"docs": {
"Desciption": "Generate JSDoc Documentation"
},
"docs:clean": {
"Desciption": "Remove the JSDoc Documentation Folder in `./static/docs/`"
},
"test": {
"Desciption": "Runs complete test suite of Linting, Unit Tests & Code Coverage Reports"
},
"lint": {
"Desciption": "Tests Javascript Code against Linting Rules"
},
"coverage": {
"Desciption": "Generate Code Coverage Reports and Run Unit Tests"
},
"check-coverage": {
"Desciption": "Check Coverage Reports against Minimum Requirements"
},
"migrate": {
"Desciption": "Migrate to Latest Database Schema"
},
"migrate:create": {
"Desciption": "Create new Migration Template file in `./app/seeders` folder"
},
"migrate:rollback": {
"Desciption": "Roll Back Migration Changes"
},
"seed": {
"Desciption": "Run Seeders in `./app/seeders` folder"
},
"seed:create": {
"Desciption": "Create new Seeder Template file in `./app/seeders` folder"
},
"seed:rollback": {
"Desciption": "Undo Seeders"
},
"elasticsearch:create": {
"Desciption": "Create Elasticsearch Indexes"
},
"elasticsearch:update": {
"Desciption": "Update Elasticsearch Indexes"
},
"elasticsearch:delete": {
"Desciption": "Delete Elasticsearch Indexes"
},
"prepublish": {
"Desciption": "Runs any commands necessary before publishing API"
}
}
}