GithubHelp home page GithubHelp logo

Excluding node_modules in watcher about sane HOT 3 OPEN

amasad avatar amasad commented on May 28, 2024
Excluding node_modules in watcher

from sane.

Comments (3)

amasad avatar amasad commented on May 28, 2024

Have you tried the globs option?

On Sun, Aug 21, 2016, 2:20 AM Guy Bedford [email protected] wrote:

If running the Node native watcher on a folder that contains a large
node_modules directory, we want the ability to ignore this folder.

Is there any way in this project (or with the Node native watcher for that
matter), to handle use cases like this?

See jspm/jspm-cli#1999 jspm/jspm-cli#1999 for
more info.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#72, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAj2_hYFYCQ0ulG8gN8Y6-e5QvcROcmkks5qiBhAgaJpZM4JpQni
.

from sane.

guybedford avatar guybedford commented on May 28, 2024

See the discussion previously at jspm/jspm-cli#1775 (comment).

The issue is that because we know the specific module tree, we do know exactly which individual files to watch.

I'm wondering if it's worth just falling back to a custom fs.watch call here on the specific directories we know we need to listen to, as we don't need recursion actually.

from sane.

amasad avatar amasad commented on May 28, 2024

Yeah that might make sense. We can also have a predicate function that gets called on directories and if returns false it will skip watching that dir or any of it's descendants. I don't have the time to do any work on this. So let me know what works for you and patches welcome

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.