Add automatic rebuilds on file changes

This commit is contained in:
dignifiedquire 2016-03-05 12:31:20 +01:00
parent b310003aa4
commit 25c33600d3
2 changed files with 9 additions and 2 deletions

View file

@ -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
```

View file

@ -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"
}
}