/
package.json
174 lines (174 loc) · 6.53 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
{
"name": "pix-api",
"version": "3.354.0",
"private": false,
"description": "Plateforme d'évaluation et de certification des compétences numériques",
"license": "AGPL-3.0",
"author": "GIP Pix",
"engines": {
"node": ">=16.15 <18",
"npm": ">=8.13.2 <9"
},
"type": "module",
"repository": {
"type": "git",
"url": "git+https://github.com/1024pix/pix.git"
},
"main": "index.js",
"homepage": "https://github.com/1024pix/pix#readme",
"dependencies": {
"@aws-sdk/client-s3": "^3.121.0",
"@aws-sdk/lib-storage": "^3.121.0",
"@aws-sdk/s3-request-presigner": "^3.145.0",
"@hapi/accept": "^6.0.0",
"@hapi/boom": "^10.0.1",
"@hapi/hapi": "^21.0.0",
"@hapi/inert": "^7.0.0",
"@hapi/vision": "^7.0.0",
"@joi/date": "^2.1.0",
"@pdf-lib/fontkit": "^1.1.1",
"@xmldom/xmldom": "^0.7.5",
"axios": "^0.27.2",
"bcrypt": "^5.0.1",
"bluebird": "^3.7.2",
"bookshelf": "^1.2.0",
"bookshelf-validate": "^2.0.3",
"cron-parser": "^4.6.0",
"dayjs": "^1.11.5",
"debug": "^4.3.4",
"dotenv": "^16.0.1",
"fast-levenshtein": "^3.0.0",
"file-type": "^16.5.3",
"hapi-i18n": "^3.0.1",
"hapi-pino": "9.1.2",
"hapi-sentry": "^4.0.0-0",
"hapi-swagger": "^16.0.0",
"hash-int": "^1.0.0",
"i18n": "^0.15.0",
"iconv-lite": "^0.6.3",
"joi": "^17.6.0",
"js-yaml": "^4.1.0",
"json2csv": "^5.0.7",
"jsonapi-serializer": "^3.6.7",
"jsonwebtoken": "^9.0.0",
"jszip": "^3.10.0",
"knex": "^2.1.0",
"lodash": "^4.17.21",
"moment": "^2.29.3",
"moment-timezone": "^0.5.34",
"ms": "^2.1.3",
"node-cache": "^5.1.2",
"node-stream-zip": "^1.15.0",
"oppsy": "https://github.com/1024pix/oppsy#main",
"papaparse": "^5.3.2",
"pdf-lib": "^1.17.1",
"pg": "^8.7.3",
"pg-boss": "^7.2.1",
"pg-connection-string": "^2.5.0",
"pino": "^8.0.0",
"pino-pretty": "^8.0.0",
"randomstring": "^1.2.2",
"redis": "^3.1.2",
"redlock": "^4.2.0",
"request": "^2.88.2",
"request-promise-native": "^1.0.9",
"samlify": "^2.8.5",
"sax": "^1.2.4",
"saxpath": "^0.6.5",
"scalingo": "^0.6.1",
"schemalint": "^1.0.0",
"sib-api-v3-sdk": "^8.3.0",
"uuid": "^9.0.0",
"validator": "^13.7.0",
"xlsx": "https://cdn.sheetjs.com/xlsx-0.19.1/xlsx-0.19.1.tgz",
"xml-buffer-tostring": "^0.2.0",
"xml2js": "^0.5.0",
"xmlbuilder2": "^3.0.2",
"xregexp": "^5.1.1",
"yargs": "^17.5.1"
},
"devDependencies": {
"@babel/eslint-parser": "^7.18.2",
"@babel/plugin-syntax-import-assertions": "^7.20.0",
"@ls-lint/ls-lint": "^1.11.2",
"chai": "^4.3.6",
"chai-as-promised": "^7.1.1",
"chai-sorted": "^0.2.0",
"depcheck": "^1.4.3",
"eslint": "^8.18.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-chai-expect": "^3.0.0",
"eslint-plugin-i18n-json": "^4.0.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-knex": "^0.2.1",
"eslint-plugin-mocha": "^10.0.5",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-unicorn": "^46.0.0",
"eslint-plugin-yml": "^1.0.0",
"flush-write-stream": "^2.0.0",
"form-data": "^4.0.0",
"inquirer": "^8.2.4",
"mocha": "^10.0.0",
"mocha-junit-reporter": "^2.0.2",
"mockdate": "^3.0.5",
"nock": "^13.2.7",
"nodemon": "^2.0.16",
"npm-run-all": "^4.1.5",
"prettier": "^2.7.1",
"sinon": "^15.0.0",
"sinon-chai": "^3.7.0",
"split2": "^4.1.0",
"stream-to-promise": "^3.0.0"
},
"overrides": {
"bookshelf": {
"knex": "^2.1.0"
}
},
"scripts": {
"clean": "rm -rf node_modules",
"cache:refresh": "node scripts/refresh-cache",
"db:new-migration": "npx knex --knexfile db/knexfile.js migrate:make $migrationname",
"db:create": "node scripts/database/create-database",
"db:delete": "node scripts/database/drop-database",
"db:empty": "node scripts/database/empty-database",
"db:migrate": "knex --knexfile db/knexfile.js migrate:latest && node scripts/database/pg-boss-migration.js",
"db:rollback:latest": "knex --knexfile db/knexfile.js migrate:down",
"db:prepare": "npm run db:delete && npm run db:create && npm run db:migrate",
"db:seed": "knex --knexfile db/knexfile.js seed:run",
"db:reset": "npm run db:prepare && npm run db:seed",
"lint": "npm-run-all --parallel --continue-on-error lint:*",
"lint:dependencies": "depcheck",
"lint:file-and-directory-names": "ls-lint",
"lint:database": "NODE_ENV=test npm run db:prepare && schemalint --config tests/acceptance/database/configuration.cjs",
"lint:code": "eslint . --ext js --cache --cache-strategy content",
"lint:code:uncached": "eslint . --ext js",
"lint:translations": "eslint --ext .json --format node_modules/eslint-plugin-i18n-json/formatter.js translations",
"lint-fix": "npm-run-all --parallel --continue-on-error lint-fix:*",
"lint-fix:translations": "eslint --fix --ext .json --format node_modules/eslint-plugin-i18n-json/formatter.js translations",
"lint-fix:code": "eslint --fix . --ext js --cache --cache-strategy content",
"local:test:coverage": "nyc npm test",
"postdeploy": "npm run db:migrate",
"preinstall": "npx check-engine",
"scalingo-postbuild": "node scripts/generate-cron > cron.json",
"start": "node index.js",
"start:watch": "nodemon index.js",
"start:job": "node worker.js",
"start:job:watch": "nodemon worker.js",
"test": "NODE_ENV=test npm run db:prepare && npm run test:api",
"test:api": "status=0; npm run test:api:unit || status=1 ; for dir in $(find tests/* -maxdepth 0 -type d -not -path tests/unit) ; do npm run test:api:path -- $dir || status=1 ; done ; exit $status",
"test:api:path": "NODE_ENV=test mocha --exit --recursive --reporter=${MOCHA_REPORTER:-dot}",
"test:api:scripts": "npm run test:api:path -- tests/integration/scripts",
"test:api:unit": "TEST_DATABASE_URL=postgres://should.not.reach.db.in.unit.tests REDIS_URL= npm run test:api:path -- tests/unit",
"test:api:integration": "npm run test:api:path -- tests/integration",
"test:api:acceptance": "npm run test:api:path -- tests/acceptance",
"test:api:debug": "NODE_ENV=test mocha --inspect-brk=9229 --recursive --exit --reporter dot tests",
"test:api:watch": "NODE_ENV=test mocha --recursive tests --watch --reporter dot",
"test:api:bail": "npm run test:api:unit -- --bail && npm run test:api:integration -- --bail && npm run test:api:acceptance -- --bail",
"test:lint": "npm test && npm run lint"
},
"optionalDependencies": {
"nyc": "^15.1.0"
}
}