GithubHelp home page GithubHelp logo

Comments (15)

amasad avatar amasad commented on May 28, 2024

looking

from sane.

jonathanong avatar jonathanong commented on May 28, 2024

i think the easiest solution is to make sure any file matches one of the globs before being emitted. another solution would be to filiter the files in the recReaddir callbacks, though i think that's more complicated.

from sane.

amasad avatar amasad commented on May 28, 2024

wait, where are you getting this list of files from?
I can't repro

from sane.

jonathanong avatar jonathanong commented on May 28, 2024

i'm doing:

console.log(watcher.globs)
console.log(Object.keys(watcher.watched))

from sane.

jonathanong avatar jonathanong commented on May 28, 2024

oaky. you know waht. i can't reproduce anymore either. wtfff.

closing haha.

can you release 0.3.1 please? i think component build -w is done

from sane.

jonathanong avatar jonathanong commented on May 28, 2024

btw this shit is so fast

from sane.

amasad avatar amasad commented on May 28, 2024

.watched is internal wouldn't tell you what is really being watched.

publish have been failing with me all day. npm ERR! publish fail Cannot publish over existing version. any idea?

from sane.

jonathanong avatar jonathanong commented on May 28, 2024

meh. just publish another version. lol

from sane.

jonathanong avatar jonathanong commented on May 28, 2024

noticed that on 0.10, events have a 300ms delay and on 0.11, events have a 100ms delay. do you know why that is?

from sane.

amasad avatar amasad commented on May 28, 2024

no idea

from sane.

amasad avatar amasad commented on May 28, 2024

publish is fucked, can't publish anything, npm is so broken

from sane.

jonathanong avatar jonathanong commented on May 28, 2024

seriously. this is why i like component and using github as a registry :D

from sane.

amasad avatar amasad commented on May 28, 2024

alright published

from sane.

amasad avatar amasad commented on May 28, 2024

btw if you're interested, this.watched is big, because it watches everything in case at some point something appeared in one of the directories that matches our glob we should be able to emit an event. Maybe optimizations exist but the library needs to understand globs much deeply to do this optimizations.

from sane.

jonathanong avatar jonathanong commented on May 28, 2024

yeah i don't completely understand the code yet. at least it's readable though, unlike other watcher libs i've seen _

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.