codeskyblue / fswatch

Watch file change, and trigger commands. (Cross platform)
Apache License 2.0
345 stars 61 forks source link

Watch external directory #23

Open camstuart opened 5 years ago

camstuart commented 5 years ago

Is there a way to watch external directories (outside the current project)

Like:

 pattens:
  - '**/*.go'
  - '**/*.yml'
  - '$GOPATH/src/gitlab.com/my-library/**/*.go'

I am building some packages that live outside the project, and I want to have my project restart when those files are changed

It may be I just have the incorrect syntax