1.0.13 • Published 2 years ago
noderel v1.0.13
↻ ♾️ NodeRel
NodeRel is a tool that automatically restarting the node application when file changes.
- Fast and simple to use.
- Automatic re-running.
- Manual restarting.
- Monitoring multiple directories.
- Ignoring files.
- Delaying restarting.
Installation
npm install -g noderel
# yarn global add noderel
CLI
# all configs are optional
noderel --entry bin/server.js --watch routes,app --delay 150
# short
noderel -e server.js -w routes,app -d 150
API
const Noderel = require('noderel');
const noderel = Noderel(configuration?: Object): void
noderel.start()
noderel.stop()
CLI options
Prop | Default | Description |
---|---|---|
--help or -h | - | display usage info for all commands |
--version or -v | - | display package version |
--entry or -e | (package.json).main | Set entry file |
--watch or -w | . | Set the watch directories or files. |
--ignore or -i | node_modules,tests | which\'s files or folders should be ignored |
--delay or -d | 100 | Realod time between changes (ms). |
--verbose or -V | true | Show logs |
--allow-restart or -R | true | allow restart when typing rs |
--override or -O | node (package.json).main | override the default command |
Configuration file
// noderel.json
// A config file can take any of the command line arguments as JSON key values, for example:
{
"entry": "tests/server.js",
"watch": ["src", "bin"],
"ignore": ["node_modules", "tests", ".git"],
"delay": 150,
"verbose": true,
"allowRestart": true, // allow restart when typing `rs`
"override": "python3 app.py",
}
Built with
Capture
License
1.0.9
2 years ago
1.0.8
2 years ago
1.0.11
2 years ago
1.0.10
2 years ago
1.0.13
2 years ago
1.0.12
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
0.0.9
2 years ago
0.0.8
2 years ago
0.0.5
2 years ago
0.0.4
2 years ago
0.0.7
2 years ago
0.0.6
2 years ago
0.0.3
3 years ago
0.0.2
3 years ago
0.0.1
3 years ago