ember-cli / watch-detector Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
This seems to be primarily created for ember-cli to use, and was an extraction of the detection logic from there I'd like to suggest moving the repo into the ember-cli org and adding a few more ember-cli contributors as npm owners.
@chrmod - What do you think?
https://github.com/paulmillr/chokidar is pretty much the defacto replacement for wanting to use watch in node. Could be cool to be able to toggle this. It seems like it would be easily combined with #6.
so the client can be sure what type was returned, for example:
const detector = new WatchDetector(..);
const watchPreference = detector.findBestWatcherOption({ watcher: options.watcher });
const watcher = watchPreference.watcher;
const saneOptions = {
poll: watcher === WatchDetector.POLLING ,
watchman: watcher === WatchDetector.WATCHMAN,
node: watcher === WatchDetector.NODE,
};
Installing watchman via
brew install watchman
provides the new version of 20210328.072220.0
. Which results in
Invalid watchman found, version: [20210328.072220.0] did not satisfy [>= 3.0.0].
Visit https://ember-cli.com/user-guide/#watchman for more info
Getting error:
Invalid watchman found, version: [2021.08.02.00] did not satisfy [>= 3.0.0].
Visit https://ember-cli.com/user-guide/#watchman for more info.
How I install watchman?
brew install watchman
watchman -v -> 2021.12.20.00
ember-cli
or broccoli
organizationtravisci
and appveyor
prior art: #12
Use case: our developers occasionally make changes to our internal Ember Addons that are consumed by our host app, and they do so while running the host app's dev server instead of the addon's. This worked fine in Watchman v4.9.0, but the recent changes to the versioning format broke it and now changes to the addon do not trigger a rebuild of the host app.
Most of the semver-related issues were fixed in #13, but this one remained. Since that PR removed most of the version checks (and the corresponding test), I'm going to open a PR that finishes the job and removes the one remaining version check.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.