From 25c33600d3ab70fb2dfdc0ef7cc8097814bc4380 Mon Sep 17 00:00:00 2001 From: dignifiedquire Date: Sat, 5 Mar 2016 12:31:20 +0100 Subject: [PATCH] Add automatic rebuilds on file changes --- README.md | 7 ++++++- package.json | 4 +++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b12619a..4ddb638 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,11 @@ ```bash $ npm install -$ npm run build +$ npm run watch # Triggers auto rebuilds of files in src/ +``` + +And in another terminal start the server + +```bash $ npm start ``` diff --git a/package.json b/package.json index d2f2376..d6d67ac 100644 --- a/package.json +++ b/package.json @@ -21,9 +21,11 @@ "dependencies": { "ecstatic": "^1.4.0", "handlebars": "^4.0.5", + "nodemon": "^1.9.1", "remarkable": "^1.6.2" }, "scripts": { - "build": "node ./scripts/build.js" + "build": "node ./scripts/build.js", + "watch": "nodemon -w src -e md,hbs -x npm run build" } }