GithubHelp home page GithubHelp logo

Comments (7)

amasad avatar amasad commented on May 24, 2024

pass in dot: false which ignore dot files from the watch. See the readme.

from sane.

tomccabe avatar tomccabe commented on May 24, 2024

I've already done that with no change in behavior.

from sane.

amasad avatar amasad commented on May 24, 2024

that's strange, I don't see how listening on the event will cause the glob to be ignored. Feel free to debug and send me a patch if you find a solution

from sane.

tomccabe avatar tomccabe commented on May 24, 2024

The only way to fix is to comment out line 314 of node_watcher.js. What's the reasoning behind emitting the "all" event? This line emits an event that is also picked up by my change handler.

from sane.

amasad avatar amasad commented on May 24, 2024

You can just not listen to the all event. It's not a special event that will execute all handlers. It's a custom thing that could be useful if you're interested in all events and don't want to listen to everyone manually.

from sane.

tomccabe avatar tomccabe commented on May 24, 2024

I was actually incorrect as I was debugging...PR #59 opened.

from sane.

tomccabe avatar tomccabe commented on May 24, 2024

Steps to reproduce:

  1. start Sane watch
  2. make a change
  3. git commit change
  4. .git/objects/[dir] will be acted upon by ADD_EVENT handler

This happens with other non-watched directories (i.e. a build dir), but is easy to reproduce with git commit

from sane.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.