diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..45a4fb7 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +8 diff --git a/app.js b/app.js index c2e6541..6d52ffb 100644 --- a/app.js +++ b/app.js @@ -119,6 +119,6 @@ Metalsmith(__dirname) if (err) throw err; app.listen(port, function () { - console.log(`App listening on port ${port}`); + console.log(`App listening at http://localhost:${port}`); }); }); diff --git a/package.json b/package.json index 8f29867..4c3fcae 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,8 @@ "private": true, "main": "app.js", "scripts": { - "start": "node app.js" + "start": "node app.js", + "watch": "nodemon --exec npm start -e \"md,html,scss,js\" -i \"build\"" }, "dependencies": { "compression": "^1.6.2", @@ -23,6 +24,9 @@ "moment": "^2.13.0", "striptags": "^2.1.1" }, + "devDependencies": { + "nodemon": "^1.12.1" + }, "engines": { "node": "8" }