1.0.2 • Published 7 years ago
nodevl v1.0.2
nodevl
Simple Nodejs app reloader for development.
This will reload the app when any of the files are changed, edited, deleted or saved.
Install
- Install as a dev-dependecy
npm i nodevl --save-devoryarn add nodevl --dev - Install as a global module
npm i nodevl -g
Usage
- As a dev-dependency On
package.jsoncreate a scriptdev: nodevl your.jsand run it withnpm run dev - As a global module, you can directly run
nodevl your.jsis similar to runningnode your.js
Environment Variables
- You can pass extra environment variables by using
--envoption. eg.nodevl your.js --env=PORT=8080,DEBUG=*
Ignoring Directories/Files
- By default, this module ignores the
node_modulesfolder in addition, you can also pass--ignoredoption to add ignored directories/folders/file. eg.nodevl your.js --ignored=dist/test,test,buildthis will ignoredist/test,test, andbuildfolders