-
Notifications
You must be signed in to change notification settings - Fork 59
/
package.json
43 lines (43 loc) 路 1.57 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
{
"name": "wikibase-rest-api-definition",
"version": "0.1.0",
"description": "OpenAPI definition of Wikibase REST API",
"scripts": {
"test": "npm run lint",
"api-testing:e2e": "npm run mocha -- --recursive tests/mocha/api-testing",
"api-testing:spec": "npm run mocha -- --recursive --ext Test.js tests/mocha/openapi-validation",
"api-testing": "npm-run-all api-testing:*",
"mocha": "mocha --timeout 0 --inline-diffs",
"lint": "npm-run-all --parallel lint:*",
"lint:openapi": "swagger-cli validate specs/openapi.json",
"lint:eslint": "eslint . --config .eslintrc.json --max-warnings 0",
"fix": "npm-run-all --parallel fix:*",
"fix:eslint": "eslint --fix .",
"build": "run-s build:docs build:spec",
"build:docs": "webpack --config docs/webpack.config.js",
"build:spec": "swagger-cli bundle specs/openapi.json -o src/RouteHandlers/openapi.json && cp src/RouteHandlers/openapi.json ../../docs/rest-api/openapi.json"
},
"engines": {
"node": ">=14"
},
"devDependencies": {
"@apidevtools/swagger-cli": "^4.0.4",
"@apidevtools/swagger-parser": "^10.1.0",
"api-testing": "^1.5.0",
"chai-openapi-response-validator": "^0.14.2",
"clean-webpack-plugin": "^4.0.0",
"copy-webpack-plugin": "^10.2.4",
"css-loader": "^6.7.1",
"eslint-config-wikimedia": "^0.28.1",
"html-webpack-plugin": "^5.5.0",
"mocha": "^9.2.1",
"npm-run-all": "^4.1.5",
"openapi-request-coercer": "^12.0.2",
"openapi-request-validator": "^12.0.2",
"style-loader": "^3.3.1",
"swagger-ui": "^5.9.4",
"webpack": "^5.74.0",
"webpack-cli": "^4.10.0",
"webpack-dev-server": "^4.10.1"
}
}