makefile 752 B

12345678910111213141516171819202122232425
  1. pre-commit-install:
  2. pre-commit install;
  3. pre-commit install --hook-type commit-msg;
  4. update-template:
  5. copier update --trust --defaults
  6. # https://copier.readthedocs.io/en/stable/updating/#recover-from-a-broken-update
  7. update-template-forced:
  8. copier recopy $$project --trust
  9. cspell-filenames:
  10. git ls-files | cspell stdin --show-context --locale en-GB,de-CH
  11. lint:
  12. cd src; redocly lint openapi.yaml
  13. bundle:
  14. cd src; redocly bundle openapi.yaml -o ../out/openapi.json
  15. preview-docs: bundle
  16. docker run -p 8080:8080 -e SWAGGER_JSON=/out/openapi.json -e DOC_EXPANSION=none -v $(PWD)/out:/out swaggerapi/swagger-ui
  17. preview-docs-redocly: bundle
  18. docker run -p 8080:80 -e SPEC_URL=/out/openapi.json -v $(PWD)/out:/usr/share/nginx/html/out redocly/redoc