wikimedia/mediawiki-extensions-Wikibase

View on GitHub
repo/rest-api/package.json

Summary

Maintainability
Test Coverage
{
    "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 -- --require tests/mocha/api-testing/fixtures.cjs tests/mocha/api-testing",
        "api-testing:spec": "npm run mocha -- --require tests/mocha/openapi-validation/hooks.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 --config .eslintrc.json --fix .",
        "build": "run-s build:docs build:spec",
        "build:docs": "webpack --config docs/webpack.config.js",
        "serve:docs": "webpack serve --config docs/webpack.config.js --mode development",
        "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": ">=18"
    },
    "devDependencies": {
        "@apidevtools/swagger-cli": "^4.0.4",
        "@apidevtools/swagger-parser": "^10.1.0",
        "api-testing": "^1.7.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": "^10.4.0",
        "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.17.14",
        "webpack": "^5.74.0",
        "webpack-cli": "^4.10.0",
        "webpack-dev-server": "^4.10.1"
    }
}