1.0.13 • Published 2 years ago

noderel v1.0.13

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years 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.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