mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 11:27:09 +00:00
Create HTML version of OpenAPI doc on install.
When running `npm install`, a self-contained HTML document with the contents of the OpenAPI specification is saved as openapi.html in the same directory as openapi.yaml.
This commit is contained in:
@@ -4,7 +4,8 @@
|
||||
"description": "Dougal web backend",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"postinstall": "redoc-cli bundle ./spec/openapi.yaml -o ./spec/openapi.html"
|
||||
},
|
||||
"author": "Aaltronav s.r.o.",
|
||||
"license": "UNLICENSED",
|
||||
|
||||
Reference in New Issue
Block a user