nodejs-files-watcher

0.0.11 • Public • Published

#nodejs-file-watcher

Simple watcher for restart nodejs server after changes

For correct work you need add file watcher.config.json to root of your project.

###Config example

{
  "watchers": [
    {
      "path": "auth",
      "command": "cd auth && npm run build",
      "exclude": [
        "auth/.git",
        "auth/dist"
      ]
    },
    {
      "path": "src"
    }
  ],
  "run": "ts-node -r dotenv/config src/index.ts"
}

#####Watchers Array files and directories for watching.

Field Description
path Path to files for watching
command Command which will be running after changes in path (execute before run)
exclude Array of directories and files which be excluded for watching

####Run Main command for running

Package Sidebar

Install

npm i nodejs-files-watcher

Weekly Downloads

0

Version

0.0.11

License

ISC

Unpacked Size

2.6 kB

Total Files

3

Last publish

Collaborators

  • oleg.samoylov