GithubHelp home page GithubHelp logo

auto-detecting watchman about sane HOT 4 CLOSED

amasad avatar amasad commented on May 24, 2024
auto-detecting watchman

from sane.

Comments (4)

amasad avatar amasad commented on May 24, 2024

It should be easy to add an auto option to the sane() function that chooses the best thing available. I worry about making it the default and tell people that it will always do the right thing.

from sane.

stefanpenner avatar stefanpenner commented on May 24, 2024

It's fine to not make auto the default here, but let consumers of this library make that choice.
e.g.

sane.autoWatch('...');

It would also be nice if we where provided with a way to see which watcher auto choose.

from sane.

stefanpenner avatar stefanpenner commented on May 24, 2024

ultimately, this isn't a blocker for me merely a thought.

from sane.

sandstrom avatar sandstrom commented on May 24, 2024

@stefanpenner Today, a few years later, would it make sense to merge watch-detector (https://github.com/chrmod/watch-detector/) with this repo?

I'm working on updates to the docs for ember-cli and wanted to see if the 'missing watchman' console message had changed. I had to dig a bit to find it:

  1. I checked ember-cli source, noticed that watching is handled by broccoli.
  2. Found broccoli-sane-watcher, saw that it's merged into broccoli core.
  3. Checked broccoli core, saw that it used watch-detector.

I know this is how the NPM ecosystem works, everything is broken down into atoms and spread over multiple packages. 😄 But sometimes it would be easier if these were at least collected under the same namespace (e.g. @sane/core, @sane/watch-detector).

Since you've already suggested adding watch-detection to sane (this old issue) and now seem to have commit rights to the repo, I just wanted to hear your thoughts on this!

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.