forked from 1024pix/pix
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
137 lines (137 loc) · 4.9 KB
/
package.json
File metadata and controls
137 lines (137 loc) · 4.9 KB
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
{
"name": "pix-api",
"version": "2.226.0",
"private": false,
"description": "Plateforme d'évaluation et de certification des compétences numériques à l'usage de tous les citoyens francophones",
"license": "AGPL-3.0",
"author": "GIP Pix",
"engines": {
"node": "14.x.x",
"npm": "6.14.x"
},
"repository": {
"type": "git",
"url": "git+https://github.com/1024pix/pix.git"
},
"directories": {
"doc": "docs",
"test": "tests"
},
"main": "server.js",
"homepage": "https://github.com/1024pix/pix#readme",
"dependencies": {
"@hapi/accept": "^5.0.1",
"@hapi/hapi": "^19.2.0",
"@hapi/inert": "^6.0.2",
"@hapi/joi": "^17.1.1",
"@hapi/joi-date": "^2.0.1",
"@hapi/vision": "^6.0.1",
"@pdf-lib/fontkit": "^1.0.0",
"airtable": "^0.9.0",
"axios": "^0.21.0",
"bcrypt": "^5.0.0",
"blipp": "^4.0.1",
"bluebird": "^3.7.2",
"bookshelf": "^1.2.0",
"bookshelf-json-columns": "^3.0.0",
"bookshelf-validate": "^2.0.3",
"boom": "^7.3.0",
"bunyan": "^1.8.12",
"catbox": "^10.0.6",
"catbox-memory": "^4.0.1",
"csv-parse": "^4.12.0",
"dezalgo": "^1.0.3",
"dotenv": "^8.2.0",
"faker": "^4.1.0",
"fast-levenshtein": "^3.0.0",
"good": "^8.1.2",
"good-console": "^8.0.0",
"good-squeeze": "^5.1.0",
"hapi-sentry": "^3.0.0",
"hapi-swagger": "^13.1.0",
"hash-int": "^1.0.0",
"iconv-lite": "^0.6.2",
"json2csv": "^5.0.3",
"jsonapi-serializer": "^3.6.6",
"jsonwebtoken": "^8.5.1",
"jszip": "^3.5.0",
"knex": "^0.21.9",
"lodash": "^4.17.19",
"moment": "^2.27.0",
"moment-timezone": "^0.5.31",
"node-cache": "^5.1.2",
"node-cron": "^2.0.3",
"node-mailjet": "^3.3.1",
"papaparse": "^5.2.0",
"path": "^0.12.7",
"pdf-lib": "^1.11.1",
"pg": "^8.3.0",
"randomstring": "^1.1.5",
"redis": "^3.0.2",
"redlock": "^4.1.0",
"request": "^2.88.2",
"request-promise-native": "^1.0.9",
"samlify": "github:1024pix/samlify#no-xml-validation",
"sax": "^1.2.4",
"saxpath": "^0.6.5",
"sib-api-v3-sdk": "^7.2.4",
"xlsx": "^0.16.1",
"xml-buffer-tostring": "^0.2.0",
"xml-crypto": "~1.0.2",
"xml2js": "^0.4.23",
"xmldom": "0.3.0",
"xregexp": "^4.3.0",
"yamljs": "^0.3.0",
"yargs": "^15.4.1"
},
"devDependencies": {
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
"chai-sorted": "^0.2.0",
"eslint": "^7.6.0",
"eslint-plugin-mocha": "^8.0.0",
"mocha": "^8.1.1",
"nock": "^13.0.4",
"nodemon": "^2.0.4",
"nyc": "^15.1.0",
"sinon": "^9.0.3",
"sinon-chai": "^3.5.0",
"stream-to-promise": "^3.0.0"
},
"scripts": {
"clean": "rm -rf node_modules",
"coverage:check": "NODE_ENV=test npm run db:migrate && NODE_ENV=test nyc --silent _mocha --recursive --exit --reporter dot tests && nyc report --reporter=lcovonly --report-dir=../coverage",
"coverage:rename": "mv ../coverage/lcov.info ../coverage/api_lcov.info",
"coverage": "npm run coverage:check && npm run coverage:rename",
"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",
"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": "eslint .",
"lint:fix": "eslint --fix .",
"postdeploy": "npm run db:migrate",
"preinstall": "npx check-engine",
"scalingo-background-job": "node scripts/reload-cache-everyday.js",
"scalingo-postbuild": "echo 'nothing to do'",
"scalingo-post-ra-creation": "npm run postdeploy && npm run db:seed",
"start": "node bin/www",
"start:watch": "nodemon bin/www",
"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=dot",
"test:api:unit": "TEST_DATABASE_URL=bad_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"
},
"nodemonConfig": {
"signal": "SIGTERM"
}
}