Skip to content

Commit

Permalink
Add: help to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Jun 9, 2024
1 parent a20023e commit c898d95
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 3 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ Automatic hot-reloading webserver based on a file watcher, a websocket server, a

- [hotweby](#hotweby)
- [Getting started](#getting-started)
- [Global install](#global-install)
- [Show help](#show-help)
- [Run as webserver](#run-as-webserver)
- [Contributing](#contributing)
- [License](#license)
- [Disclaimer](#disclaimer)
Expand All @@ -24,10 +27,30 @@ Automatic hot-reloading webserver based on a file watcher, a websocket server, a

# Getting started

## Global install
```sh
npm i -g @noblemajo/hotweby
```

## Show help
```sh
hotweby --help
```

```js
Usage: hotweby [options]

Automatic multiway hot-reloading webserver

Options:
-V, --version output the version number
-p, --port <number> hot reload server port (env: SERVE_PORT)
-d, --dir <string> target dir (default: ".", env: SERVE_PATH)
-i, --id-endpoint <string> id endpoint (default: "/noblemajo-serve-id", env: SERVE_ID_ENDPOINT)
-h, --help display help for command
```

## Run as webserver
```sh
hotweby -p 8080 -d html
```
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hotweby",
"version": "1.0.5",
"version": "1.0.6",
"description": "Automatic multiway hot-reloading webserver",
"type": "module",
"main": "dist/index.js",
Expand Down

0 comments on commit c898d95

Please sign in to comment.