Skip to content

Commit

Permalink
plain-documentation: document handy watch script
Browse files Browse the repository at this point in the history
  • Loading branch information
karlvr committed Dec 18, 2023
1 parent bc8647d commit 07aba97
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions packages/plain-documentation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,23 @@ An [OpenAPI Generator Plus](https://github.com/karlvr/openapi-generator-plus) te
See the [OpenAPI Generator Plus](https://github.com/karlvr/openapi-generator-plus) documentation for how to use
generator templates.

For convenience when editing the API spec, or editing custom templates, you can setup a watch script and an automatically
reloading web browser:

```shell
npm add -D live-server
```

Then add the following `npm` script, adjusting paths to your config file and output folder (`./dist` in this example):

```json
{
"scripts": {
"watch": "openapi-generator-plus -c config.yml --clean --watch & live-server --port=9123 ./dist & wait"
}
}
```

## Config file

The available config file properties are:
Expand Down

0 comments on commit 07aba97

Please sign in to comment.