1
0
Fork 0

Add automatic rebuilds on file changes

2016
dignifiedquire 8 years ago
parent b310003aa4
commit 25c33600d3

@ -3,6 +3,11 @@
```bash ```bash
$ npm install $ 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 $ npm start
``` ```

@ -21,9 +21,11 @@
"dependencies": { "dependencies": {
"ecstatic": "^1.4.0", "ecstatic": "^1.4.0",
"handlebars": "^4.0.5", "handlebars": "^4.0.5",
"nodemon": "^1.9.1",
"remarkable": "^1.6.2" "remarkable": "^1.6.2"
}, },
"scripts": { "scripts": {
"build": "node ./scripts/build.js" "build": "node ./scripts/build.js",
"watch": "nodemon -w src -e md,hbs -x npm run build"
} }
} }

Loading…
Cancel
Save