1.0.9 • Published 5 years ago

the-freshmaker v1.0.9

Weekly downloads
12
License
MIT
Repository
github
Last release
5 years ago

the-freshmaker

Auto-reload for express.

Install module

npm install the-freshmaker

Express setup

Add the following to your express app.

const express = require("express")
const app = express()
require('the-freshmaker')(app)

HTML setup

Add the following to webpages you want to restart when there is a change on the server.

<script src="/the-freshmaker-client.js" type="text/javascript"></script>

Use nodemon to restart node when files change.

npm install -g nodemon

nodemon --config nodemon.json app.js

nodemon.json

{
    "watch": ["app.js", "public", "routes", "lib"],
    "ext": "js, css, html"
}
1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago