-
Notifications
You must be signed in to change notification settings - Fork 80
/
package.json
275 lines (275 loc) · 10.3 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
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
{
"name": "uwazi",
"version": "1.18.0",
"description": "Uwazi is a free, open-source solution for organising, analysing and publishing your documents.",
"keywords": [
"react"
],
"homepage": "https://www.uwazi.io/",
"bugs": {
"url": "https://github.com/huridocs/uwazidocs/issues"
},
"repository": {
"type": "git",
"url": "git@github.com:huridocs/uwazidocs.git"
},
"license": "MIT",
"author": "huridocs.org",
"main": "server.js",
"scripts": {
"check-types": "tsc --noEmit --pretty",
"watch-types": "tsc --noEmit --pretty --watch --preserveWatchOutput",
"emit-types": "node emitSchemaTypes.js",
"production-build": "./webpack/build.sh",
"run-production": "export NODE_ENV=production; node --max-http-header-size 20000 server.js",
"dev-server": "./node_modules/.bin/nodemon --max-http-header-size 20000 ./server.js --ignore 'app/dist/*' --watch 'app/api' --watch 'app/shared' --ext 'ts js tsx'",
"webpack-server": "node ./webpack/webpack.server.js",
"hot": "export HOT=true; export BABEL_ENV=debug; yarn run watch-types & yarn run dev-server & yarn run webpack-server",
"hot-inspect": "export HOT=true; export BABEL_ENV=debug; yarn run watch-types & yarn dev-server --inspect & yarn run webpack-server",
"hot-debug": "export HOT=true; export BABEL_ENV=debug; node --max-http-header-size 20000 --inspect-brk=9229 server.js",
"reindex": "node --max-http-header-size 20000 run.js ./database/reindex_elastic.js",
"health-check": "node --max-http-header-size 20000 run.js ./database/health_check.js",
"import-csv": "node --max-http-header-size 20000 run.js ./database/import_csv.js",
"import-evidences": "node --max-http-header-size 20000 run.js ./database/import_evidences_vault.js",
"vault-evidences-template": "node --max-http-header-size 20000 run.js ./database/vault_evidences_template.js",
"blank-state": "./database/blank_state.sh",
"admin-user": "./database/admin_user.sh",
"dump-db": "./database/dump_db.sh",
"restore-db": "./database/restore_db.sh",
"fixtures": "./uwazi-fixtures/restore.sh",
"add-migration": "./node_modules/.bin/plop --plopfile ./app/api/migrations/plopfile.js migration",
"migrate": "node --max-http-header-size 20000 run.js ./app/api/migrations/migrate",
"test-debug": "node --max-http-header-size 20000 --inspect ./node_modules/.bin/jest --watch --no-cache -i",
"test": "node --max-http-header-size 20000 ./node_modules/.bin/jest",
"e2e": "jest --projects nightmare/jest.e2e.config.js -i --verbose true",
"e2e-puppeteer": "echo 'MAKE SURE UWAZI IS RUNNING WITH uwazi_e2e DATABASE AND INDEX';DATABASE_NAME=uwazi_e2e INDEX_NAME=uwazi_e2e jest --projects e2e/jest.e2e.config.ts -i --verbose true",
"e2e-puppeteer-fixtures": "DATABASE_NAME=uwazi_e2e INDEX_NAME=uwazi_e2e ./uwazi-fixtures/restore.sh",
"e2e-show": "export SHOW_E2E=1; yarn e2e",
"e2e-restore-fixtures": "cd nightmare/fixtures; ./restore.sh",
"eslint": "./node_modules/.bin/eslint e2e app --quiet --ext js,ts,tsx",
"eslint-fulldiff": "git diff-index --name-only origin/development | grep ^app/ | grep -v snap | xargs ls -d 2>/dev/null | xargs ./node_modules/.bin/eslint ",
"prettier": "./node_modules/.bin/prettier --write 'app/**/*.{js,ts,tsx}'"
},
"jest": {
"projects": [
"app/jest.client.config.js",
"app/jest.server.config.js"
]
},
"dependencies": {
"@babel/register": "7.11.5",
"@elastic/elasticsearch": "^7.9.0",
"@fast-csv/format": "^4.3.1",
"@fortawesome/fontawesome-svg-core": "^1.2.30",
"@fortawesome/free-regular-svg-icons": "^5.14.0",
"@fortawesome/free-solid-svg-icons": "^5.14.0",
"@fortawesome/react-fontawesome": "^0.1.11",
"@loadable/component": "^5.13.1",
"@supercharge/promise-pool": "^1.2.0",
"ajv": "^6.12.3",
"ajv-keywords": "^3.4.1",
"async": "2.6.3",
"batarange": "0.2.0",
"bcryptjs": "^2.4.3",
"big.js": "^5.2.2",
"body-parser": "^1.19.0",
"bootstrap": "3.4.1",
"child-process-promise": "^2.2.1",
"compression": "^1.7.4",
"connect-mongo": "3.2.0",
"cookie": "0.4.1",
"cookie-parser": "1.4.5",
"cors": "^2.8.5",
"crypto-js": "^4.0.0",
"csvtojson": "^2.0.10",
"diacritics": "^1.3.0",
"dotenv": "^8.2.0",
"enzyme-adapter-react-16": "^1.15.3",
"express": "^4.17.1",
"express-http-proxy": "^1.6.2",
"express-session": "^1.17.1",
"filesize": "^6.1.0",
"flag-icon-css": "^3.5.0",
"formatcoords": "^1.1.3",
"franc": "5.0.0",
"graylog2": "^0.2.1",
"helmet": "^3.23.3",
"html-to-react": "^1.4.3",
"htmlparser2": "^3.9.2",
"immutable": "^3.7.6",
"is-reachable": "^4.0.0",
"isomorphic-fetch": "2.2.1",
"joi": "^13.6.0",
"joi-objectid": "^2.0.0",
"json-schema-to-typescript": "^9.1.1",
"jvent": "1.0.2",
"mark.js": "^8.11.1",
"markdown-it": "11.0.0",
"markdown-it-container": "3.0.0",
"moment": "2.27.0",
"moment-timezone": "0.5.31",
"mongodb": "^3.6.2",
"mongoose": "5.9.25",
"multer": "^1.4.2",
"node-uuid": "^1.4.7",
"nodemailer": "^6.4.11",
"nprogress": "^0.2.0",
"otplib": "^11.0.1",
"passport": "^0.4.1",
"passport-local": "^1.0.0",
"pdfjs-dist": "2.1.266",
"prop-types": "^15.7.2",
"qrcode.react": "^1.0.0",
"query-string": "^6.13.1",
"react": "16.13.1",
"react-color": "^2.17.3",
"react-datepicker": "3.1.3",
"react-dnd": "2.6.0",
"react-dnd-html5-backend": "2.6.0",
"react-dom": "16.13.1",
"react-dropzone": "4.2.9",
"react-helmet": "^5.2.0",
"react-hook-form": "^6.11.5",
"react-hot-loader": "^3.1.3",
"react-image-gallery": "^0.8.12",
"react-map-gl": "^5.2.9",
"react-modal": "3.3.1",
"react-player": "^1.11.1",
"react-redux": "5.0.6",
"react-redux-form": "^1.16.14",
"react-router": "3.0.5",
"react-tabs-redux": "2.0.1",
"react-widgets": "v4.5.0",
"recharts": "1.3.4",
"redis": "^3.0.2",
"redux": "^3.7.2",
"redux-devtools-extension": "^2.13.2",
"redux-thunk": "^2.0.1",
"reselect": "^4.0.0",
"rison-node": "^2.1.1",
"rtlcss": "^2.6.0",
"sanitize-filename": "^1.6.3",
"serialize-javascript": "^5.0.1",
"socket.io": "^2.3.0",
"socket.io-client": "^2.3.0",
"socket.io-redis": "^5.4.0",
"superagent": "^6.1.0",
"svg-captcha": "^1.4.0",
"swagger-jsdoc": "^3.5.0",
"tiny-cookie": "^2.3.2",
"typescript": "3.7.5",
"url-join": "^4.0.1",
"winston": "3.0.0",
"world-countries": "4.0.0",
"wrap-range-text": "^1.0.1",
"xml-js": "^1.6.11",
"yauzl": "^2.10.0",
"yazl": "^2.5.1"
},
"devDependencies": {
"@babel/cli": "7.11.6",
"@babel/core": "7.11.6",
"@babel/helper-call-delegate": "^7.11.4",
"@babel/plugin-proposal-class-properties": "7.10.4",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.10.4",
"@babel/plugin-proposal-object-rest-spread": "7.11.0",
"@babel/plugin-proposal-optional-chaining": "^7.11.0",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-modules-commonjs": "7.10.4",
"@babel/plugin-transform-react-constant-elements": "7.10.4",
"@babel/plugin-transform-react-inline-elements": "7.10.4",
"@babel/preset-env": "7.11.5",
"@babel/preset-react": "7.10.4",
"@babel/preset-typescript": "7.10.4",
"@types/child-process-promise": "^2.2.1",
"@types/cookie": "^0.4.0",
"@types/enzyme": "3.10.0",
"@types/enzyme-adapter-react-16": "1.0.2",
"@types/expect-puppeteer": "^4.4.1",
"@types/express": "^4.17.2",
"@types/express-session": "^1.17.0",
"@types/fetch-mock": "^7.3.3",
"@types/helmet": "^0.0.48",
"@types/jest": "25.2.3",
"@types/jest-environment-puppeteer": "4.3.1",
"@types/jest-image-snapshot": "^3.1.0",
"@types/joi": "^14.3.4",
"@types/loadable__component": "^5.13.0",
"@types/mongodb": "3.5.16",
"@types/mongoose": "5.7.16",
"@types/multer": "^1.4.4",
"@types/node": "13.13.3",
"@types/node-uuid": "^0.0.28",
"@types/prop-types": "^15.7.3",
"@types/puppeteer": "^3.0.2",
"@types/qrcode.react": "^1.0.1",
"@types/react": "^16.8.6",
"@types/react-dnd": "^3.0.2",
"@types/react-helmet": "^5.0.14",
"@types/react-redux": "^7.1.5",
"@types/react-router": "3",
"@types/react-router-dom": "^5.1.0",
"@types/react-tabs-redux": "^4.0.0",
"@types/recharts": "^1.8.3",
"@types/redux-mock-store": "^1.0.1",
"@types/socket.io": "^2.1.11",
"@types/socket.io-client": "^1.4.33",
"@types/supertest": "2.0.10",
"@types/webpack-env": "1.15.2",
"@types/yargs-parser": "^15.0.0",
"@types/yauzl": "^2.9.1",
"@typescript-eslint/eslint-plugin": "4.1.1",
"@typescript-eslint/parser": "4.1.1",
"assets-webpack-plugin": "5.1.1",
"babel-loader": "8.1.0",
"babel-plugin-module-resolver": "4.0.0",
"babel-plugin-transform-react-remove-prop-types": "0.4.24",
"clean-webpack-plugin": "3.0.0",
"copy-webpack-plugin": "6.1.0",
"css-loader": "^4.3.0",
"enzyme": "3.11.0",
"enzyme-to-json": "^3.5.0",
"eslint": "v7.8.1",
"eslint-config-airbnb": "18.2.0",
"eslint-plugin-import": "v2.22.0",
"eslint-plugin-jasmine": "2.9.2",
"eslint-plugin-jest": "v24.0.1",
"eslint-plugin-jsx-a11y": "6.3.1",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-react": "v7.20.0",
"fetch-mock": "^9.10.7",
"identity-obj-proxy": "^3.0.0",
"jest": "24.8.0",
"jest-extended": "0.11.5",
"jest-image-snapshot": "^4.1.0",
"jest-puppeteer": "4.4.0",
"mini-css-extract-plugin": "^0.11.2",
"mongodb-memory-server": "^6.7.5",
"mutationobserver-shim": "^0.3.7",
"nightmare": "2.10.0",
"nightmare-real-mouse": "^1.0.0",
"nightmare-upload": "^0.1.1",
"node-sass": "4.14.1",
"nodemon": "^2.0.4",
"optimize-css-assets-webpack-plugin": "5.0.4",
"plop": "^2.7.4",
"prettier": "1.19.1",
"puppeteer": "^5.3.1",
"react-dnd-test-backend": "2.5.1",
"redux-mock-store": "^1.0.2",
"rtlcss-webpack-plugin": "4.0.3",
"sass-loader": "10.0.2",
"stream-mock": "^2.0.5",
"supertest": "4.0.2",
"terser-webpack-plugin": "^4.2.0",
"wait-for-expect": "^3.0.2",
"webpack": "4.44.1",
"webpack-cli": "3.3.12",
"webpack-dev-middleware": "3.7.2",
"webpack-hot-middleware": "^2.25.0",
"yargs": "^16.0.3"
},
"engines": {
"node": ">=14.1.0"
}
}