forked from Lumieducation/H5P-Nodejs-library
-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
138 lines (138 loc) · 5.65 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
{
"name": "h5p-nodejs-library",
"version": "2.0.0",
"description": "The H5P-Nodejs-library is a port of the H5P-Editor-PHP-library and the H5P-PHP-Library for Nodejs.",
"license": "GPL-3.0-or-later",
"repository": {
"type": "git",
"url": "https://github.com/Lumieducation/H5P-Nodejs-library"
},
"scripts": {
"build:watch": "npx tsc -w -p ./tsconfig.build.json",
"build": "sh build.sh",
"ci": "npm run build && npm run lint && npm run format:check && npm run test && npm run test:integration && npm run test:e2e",
"clear": "rm -rf test/data/hub-content && rm -rf h5p && rm test/data/content-type-cache/real-content-types.json && rm -rf build && rm -rf coverage && rm -rf node_modules",
"download:content-type-cache": "ts-node scripts/update-real-content-type-cache.ts",
"download:content": "node scripts/download-examples.js test/data/content-type-cache/real-content-types.json test/data/hub-content",
"download:h5p": "sh scripts/install.sh",
"format:check": "npx prettier --check \"{src,test,examples}/**/*.ts\"",
"format": "npx prettier --write \"{src,test,examples}/**/*.ts\"",
"lint": "npx tslint --project tsconfig.json --config tslint.json",
"prepare": "npm run download:content-type-cache && npm run download:h5p && npm run build",
"semantic-release": "semantic-release",
"start:dbs": "docker-compose -f test/implementation/db/mongo-s3-docker-compose.yml up -d",
"start": "npx ts-node examples/express.ts",
"stop:dbs": "docker-compose -f test/implementation/db/mongo-s3-docker-compose.yml down",
"test:coverage": "npx jest --config jest.coverage.config.js --collect-coverage --testTimeout=120000",
"test:db": "npx jest --config jest.db.config.js --maxWorkers=${BUILD_WORKERS-`nproc`} --logHeapUsage",
"test:e2e:tests": "npx jest --config jest.e2e.config.js --maxWorkers=1",
"test:e2e": "start-server-and-test start http://localhost:8080 test:e2e:tests",
"test:integration": "npx jest --config jest.integration.config.js --maxWorkers=${BUILD_WORKERS-`nproc`} --logHeapUsage",
"test:server+upload": "start-server-and-test start http://localhost:8080 test:upload",
"test:upload": "npx ts-node test/e2e/customUpload.ts ${H5P_FILES} ${ERROR_FILE}",
"test:watch": "jest --watch",
"test": "jest --logHeapUsage --maxWorkers=${BUILD_WORKERS-`nproc`}",
"uninstall": "rm -rf node_modules && rm -rf test/data/hub-content && rm test/data/content-type-cache/real-content-types.json && rm -rf h5p && rm -rf build"
},
"release": {
"branch": "master"
},
"husky": {
"hooks": {
"pre-commit": "npm run lint && npm run format:check",
"pre-push": "npm run ci",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"contributors": [
{
"name": "Sebastian Rettig",
"email": "[email protected]"
},
{
"name": "Nikolas Martens"
},
{
"name": "Jan Philip Schellenberg",
"email": "[email protected]",
"url": "http://Lumi.education"
},
{
"name": "Bo Biene",
"email": "[email protected]",
"url": "https://www.qm-team.de/mymento-kursportal/"
}
],
"dependencies": {
"@types/react": "^16.9.35",
"ajv": "^6.12.0",
"axios": "^0.20.0",
"crc": "^3.8.0",
"debug": "^4.1.1",
"escape-html": "^1.0.3",
"fs-extra": "^9.0.0",
"glob-promise": "^3.4.0",
"image-size": "^0.9.0",
"jsonpath": "^1.0.2",
"merge": "^1.2.1",
"mime-types": "^2.1.26",
"mkdirp": "^1.0.3",
"nanoid": "^3.1.10",
"promisepipe": "^3.0.0",
"qs": "^6.9.3",
"sanitize-filename": "^1.6.3",
"stream-buffers": "^3.0.2",
"tmp-promise": "^3.0.0",
"upath": "^2.0.0",
"yauzl-promise": "^2.1.3",
"yazl": "^2.5.1"
},
"devDependencies": {
"@commitlint/config-conventional": "11.0.0",
"@semantic-release/git": "9.0.0",
"@semantic-release/github": "7.1.1",
"@types/escape-html": "1.0.0",
"@types/express": "4.17.8",
"@types/fs-extra": "9.0.2",
"@types/jest": "26.0.14",
"@types/jsonpath": "0.2.0",
"@types/mime-types": "2.1.0",
"@types/mongodb": "3.5.27",
"@types/puppeteer": "3.0.2",
"@types/shortid": "0.0.29",
"@types/stream-buffers": "3.0.3",
"@types/supertest": "2.0.10",
"@types/yargs": "15.0.8",
"@types/yauzl-promise": "2.1.0",
"@types/yazl": "2.4.2",
"aws-sdk": "2.771.0",
"axios-mock-adapter": "1.18.2",
"body-parser": "1.19.0",
"commitlint": "11.0.0",
"express": "4.17.1",
"express-fileupload": "1.2.0",
"husky": "4.3.0",
"i18next": "19.8.2",
"i18next-fs-backend": "1.0.7",
"i18next-http-middleware": "3.0.6",
"jest": "26.5.3",
"mockdate": "3.0.2",
"mongodb": "3.6.2",
"prettier": "2.1.2",
"promise-queue": "2.2.5",
"puppeteer": "5.3.1",
"semantic-release": "17.2.1",
"source-map-support": "0.5.19",
"start-server-and-test": "1.11.5",
"stream-mock": "2.0.5",
"supertest": "5.0.0",
"ts-jest": "26.4.1",
"ts-node": "9.0.0",
"tslint": "6.1.3",
"tslint-config-airbnb": "5.11.2",
"tslint-config-prettier": "1.18.0",
"typescript": "4.0.3"
},
"main": "./build/src/index.js",
"types": "./build/src/index.d.ts"
}