0.0.11 • Published 5 years ago

nodejs-files-watcher v0.0.11

Weekly downloads
1
License
ISC
Repository
gitlab
Last release
5 years ago

#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.

FieldDescription
pathPath to files for watching
commandCommand which will be running after changes in path (execute before run)
excludeArray of directories and files which be excluded for watching

####Run Main command for running

0.0.12

5 years ago

0.0.11

5 years ago

0.0.1

5 years ago