From c898d958db80ba1f2a06fd9f505f3e1219f18764 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 9 Jun 2024 20:59:00 +0000 Subject: [PATCH] Add: help to readme --- README.md | 23 +++++++++++++++++++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 26 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1e895b7..d6027f7 100644 --- a/README.md +++ b/README.md @@ -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) @@ -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 hot reload server port (env: SERVE_PORT) + -d, --dir target dir (default: ".", env: SERVE_PATH) + -i, --id-endpoint 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 ``` diff --git a/package-lock.json b/package-lock.json index df0c427..4befaa9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "hotweby", - "version": "1.0.5", + "version": "1.0.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "hotweby", - "version": "1.0.5", + "version": "1.0.6", "license": "MIT", "dependencies": { "commander": "^12.1.0", diff --git a/package.json b/package.json index 2cf757c..6dfb2e4 100644 --- a/package.json +++ b/package.json @@ -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",