From 85dac1ede49f01c9e7f95ffb1664fe7678e998eb Mon Sep 17 00:00:00 2001 From: dusan Date: Tue, 11 Feb 2020 16:06:55 +1100 Subject: [PATCH] add start in a watch mode script --- README.md | 2 +- package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9f41d07..f13f08b 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ This project includes an independently-developed API specification for facilitating communication between partners, SLA guidelines, as well as templates and validation tools for implementing the API. -To run the documentation locally, clone the repository and run `npm start`. +To run the documentation locally, clone the repository and run `npm start`. For a watch mode using nodemon, run `npm start:w` ## API Structure diff --git a/package.json b/package.json index cd50401..aab2e84 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "http-server": "^0.12.1" }, "scripts": { - "start": "http-server ./docs -o -c-1" + "start": "http-server ./docs -o -c-1", + "start:w": "nodemon --watch 'docs' --ext 'yaml' --exec 'http-server ./docs -c-1'" } }