1.0.14 • Published 11 months ago

noderel v1.0.14

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

↻ ♾️ NodeRel

NodeRel is a tool that automatically restarting the node application when file changes.

downloads version

  • 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

PropDefaultDescription
--help or -h-display usage info for all commands
--version or -v-display package version
--entry or -e(package.json).mainSet entry file
--watch or -w.Set the watch directories or files.
--ignore or -inode_modules,testswhich\'s files or folders should be ignored
--delay or -d100Realod time between changes (ms).
--verbose or -VtrueShow logs
--allow-restart or -Rtrueallow restart when typing rs
--override or -Onode (package.json).mainoverride 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

Capture

License

MIT

1.0.14

11 months ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago