UNPKG

@whook/swagger-ui

Version:

A wrapper for the Whook HTTP Router to provide SwaggerUI for local dev

149 lines (148 loc) 3.5 kB
{ "metapak": { "configs": [ "main", "readme", "tsesm", "eslint", "jest", "jsdocs" ], "data": { "childPackage": true, "files": "'src/**/*.ts'", "testsFiles": "'src/**/*.test.ts'", "distFiles": "'dist/**/*.js'", "ignore": [ "dist" ], "bundleFiles": [ "dist", "src" ] } }, "name": "@whook/swagger-ui", "version": "20.1.2", "description": "A wrapper for the Whook HTTP Router to provide SwaggerUI for local dev", "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", "keywords": [ "whook", "knifecycle", "REST", "HTTP", "OpenAPI", "web", "wrapper", "swagger" ], "scripts": { "build": "rimraf 'dist' && tsc --outDir dist", "cli": "env NODE_ENV=${NODE_ENV:-cli}", "cover": "node --run jest -- --coverage", "doc": "echo \"# API\" > API.md; jsdoc2md 'dist/**/*.js' >> API.md && git add API.md", "format": "node --run prettier", "jest": "NODE_OPTIONS=--experimental-vm-modules NODE_ENV=test jest", "lint": "eslint 'src/**/*.ts'", "metapak": "metapak", "prettier": "prettier --write 'src/**/*.ts'", "rebuild": "swc ./src -s -d dist -C jsc.target=es2022", "test": "node --run jest" }, "author": { "name": "Nicolas Froidure", "email": "nicolas.froidure@insertafter.com", "url": "http://insertafter.com/en/index.html" }, "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/nfroidure/whook.git" }, "bugs": { "url": "https://github.com/nfroidure/whook/issues" }, "homepage": "https://github.com/nfroidure/whook", "dependencies": { "@types/swagger-ui": "5.21.1", "@whook/whook": "^20.1.2", "axios": "^1.12.2", "ecstatic": "^4.1.4", "knifecycle": "^19.1.3", "swagger-ui-dist": "^5.18.2", "type-fest": "^5.1.0", "ya-json-schema-types": "^1.0.1", "ya-open-api-types": "^1.2.2" }, "devDependencies": { "@eslint/js": "^9.30.1", "@swc/cli": "^0.7.8", "@swc/core": "^1.12.11", "@swc/helpers": "^0.5.17", "@swc/jest": "^0.2.39", "eslint": "^9.30.1", "eslint-config-prettier": "^10.1.5", "eslint-plugin-jest": "^29.0.1", "eslint-plugin-prettier": "^5.5.1", "jest": "^30.0.4", "jsdoc-to-markdown": "^9.1.1", "metapak": "^6.0.4", "metapak-nfroidure": "20.0.5", "prettier": "^3.6.2", "rimraf": "^6.0.1", "typescript": "^5.8.3", "typescript-eslint": "^8.36.0" }, "contributors": [], "engines": { "node": ">=22.16.0" }, "files": [ "dist", "src", "LICENSE", "README.md", "CHANGELOG.md" ], "prettier": { "semi": true, "printWidth": 80, "singleQuote": true, "trailingComma": "all", "proseWrap": "always" }, "jest": { "coverageReporters": [ "lcov", "html" ], "testPathIgnorePatterns": [ "/node_modules/" ], "roots": [ "<rootDir>/src" ], "testEnvironment": "node", "transform": { "^.+\\.tsx?$": [ "@swc/jest", {} ] }, "moduleNameMapper": { "#(.*)": "<rootDir>/../../node_modules/$1", "(.+)\\.js": "$1" }, "extensionsToTreatAsEsm": [ ".ts" ], "prettierPath": null }, "gitHead": "bac7a0bc6d27be92f21fc5faf6be209db108ca84", "funding": { "type": "individual", "url": "https://github.com/sponsors/nfroidure" } }