Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,14 @@ serve:
(sleep 5; python3 -m webbrowser http://127.0.0.1:5000) &
npm run serve

#Serve the OAS specification with live reload on source edits
serve-watch:
npm run publish
npm run build-docs
npm run watch & WATCH_PID=$$!; \
trap "kill $$WATCH_PID 2>/dev/null" EXIT INT TERM; \
npm run serve-live

#Check dependencies for licensing issues
.check-licenses:
npm run check-licenses
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ There are `make` commands that alias some of this functionality:
* `lint` -- Lints the spec and code
* `publish` -- Outputs the specification as a **single file** into the `build/` directory
* `serve` -- Serves a preview of the specification in human-readable format - your browser will automatically open the documentation
* `serve-watch` -- Serves a preview of the specification in human-readable format that is updated as you make changes
* `build-test-documentation` -- Builds the test documentation that is checked into the repository under `docs/tests`

## Testing
Expand Down
Loading
Loading