-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
73 lines (73 loc) · 3.22 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
{
"name": "paysage-api",
"version": "3.1.17",
"description": "API Paysage",
"main": "index.js",
"type": "module",
"scripts": {
"api:dev": "NODE_ENV=development PORT=${npm_config_port} nodemon --experimental-specifier-resolution=node index.js",
"api:start": "NODE_ENV=${npm_config_env} PORT=${npm_config_port} node --experimental-specifier-resolution=node index.js",
"api:test": "NODE_ENV=testing node --expose-gc --experimental-specifier-resolution=node --experimental-vm-modules node_modules/.bin/jest --runInBand --logHeapUsage",
"deploy": "git switch main && git pull origin main --rebase --tags && git merge origin staging && npm version $npm_config_level && git push origin main --tags && git switch staging",
"docker:test": "docker compose -f docker-compose-test.yml up --build --exit-code-from paysage-api",
"docker:start": "docker compose up --build",
"docs:build": "swagger-cli bundle src/openapi/api.yml --outfile docs/reference/api.yml --type yaml",
"setup:elastic": "NODE_ENV=${npm_config_env} node --experimental-specifier-resolution=node src/setup/elastic.js",
"setup:mongo": "NODE_ENV=${npm_config_env} node --experimental-specifier-resolution=node src/setup/mongo.js",
"setup:storage": "NODE_ENV=${npm_config_env} node --experimental-specifier-resolution=node src/setup/storage.js",
"start": "npm run docs:build && npm run setup:mongo --env=development && npm run setup:elastic --env=development && npm run setup:storage --env=development && npm run api:dev",
"start:production": "npm run docs:build && npm run setup:mongo --env=production && npm run setup:elastic --env=production && npm run setup:storage --env=production && npm run api:start --env=production",
"start:staging": "npm run docs:build && npm run setup:mongo --env=staging && npm run setup:elastic --env=staging && npm run setup:storage --env=staging && npm run api:start --env=staging",
"test": "npm run docs:build && npm run setup:mongo --env=testing && npm run setup:elastic --env=testing && npm run api:test"
},
"keywords": [
"paysage"
],
"author": "DOAD",
"license": "MIT",
"dependencies": {
"@cloudnative/health-connect": "^2.1.0",
"@elastic/elasticsearch": "7.12.0",
"agenda": "^4.3.0",
"bcryptjs": "^2.4.3",
"cors": "^2.8.5",
"dotenv": "^10.0.0",
"express": "^4.17.1",
"express-async-errors": "^3.1.1",
"express-openapi-validator": "^4.12.11",
"express-rate-limit": "^6.4.0",
"jsonwebtoken": "^8.5.1",
"mongodb": "^4.0.0",
"multer": "^1.4.5-lts.1",
"node-fetch": "^3.3.1",
"nodemailer": "^6.6.2",
"otplib": "^12.0.1",
"pkgcloud": "^2.2.0",
"sib-api-v3-sdk": "^8.4.0",
"winston": "^3.3.3",
"yamljs": "^0.3.0"
},
"devDependencies": {
"eslint": "^8.7.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jest": "^26.0.0",
"jest": "^27.0.6",
"jest-mock": "^28.0.2",
"nodemon": "^2.0.7",
"supertest": "^6.1.4",
"swagger-cli": "^4.0.4"
},
"jest": {
"coveragePathIgnorePatterns": [
"/node_modules/"
],
"modulePathIgnorePatterns": [
"save"
],
"setupFilesAfterEnv": [
"./tests/globalSetup.js"
],
"testEnvironment": "node"
}
}