live and let live.与民争利的政府必亡
Friday, 1 July 2016
A command line tool thatwatchfile changes and do alivereloadwhen needed (compatible with both node.js and io.js), and works over https.
This allows us to use npm as our build tool instead of grunt or gulp.
npm install wiper --save-dev or npm install -g wiper
-p port to listen on, default to 35729.
-t debounce timeout, default to 5000ms.
-w files to watch; note that you should use \* to prevent bash from expanding globs, as we want wiper to expand it instead, also see that we double escape \\* in package.json due to additional string escapes.
--cert=ssl.crt and --key=ssl.key to start livereload server on https, generate your self-signed certificate and import them into your CA trust store for this to work.