Giter VIP home page Giter VIP logo

broccoli-sane-watcher's Introduction

broccoli-sane-watcher

Build Status

A drop in replacement for Broccoli's Watcher that uses the sane module for file watching.

This package has been merged into Broccoli core and is no longer needed for Broccoli 1.0.0 and above.

broccoli-sane-watcher's People

Contributors

amasad avatar bcardarella avatar espadrine avatar jlauemoeller avatar joliss avatar krisselden avatar raytiley avatar rwjblue avatar simonexmachina avatar stefanpenner avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

broccoli-sane-watcher's Issues

Possible to have multiple filePaths trigger change, but only one is reported

When a change is detected, the watcher builds and then

Because the build is debounced, it's possible for multiple files to change before the build starts, but only the first one will get reported in the results hash filePath property.

This can be demonstrated by changing two files very quickly, e.g.:

  • touch path/to/a.js && touch path/to/b.js -> broccoli-sane-watcher emits change with {filePath: path/to/a.js}
  • touch path/to/b.js && touch path/to/a.js -> broccoli-sane-watcher emits change with {filePath: path/to/b.js}

I'm not sure how "public" the filePath property on the hash is considered to be, but the livereload server in ember-cli does use that property to determine whether it should trigger a livereload notification in the shouldTriggerReload method.

If it seems like a good idea to gather all the filepaths that changed before the build started and report them in a filePaths property on the results hash I would be happy to make a PR for that.

How to integrate this as watcher in broccoli?

I can't find any docs on broccoli-sane-watcher, is it meant to integrate it in the Brocfile.js or the cli?

We have broccoli running with some people on one dev-server, and it consumes almost all the CPU.

potential Instability when filters throw

I am unsure if it is this watcher, but since introducing it we seem to kill the build when a filter fails. For example if es6-validate-import fails to parse the JS. The build breaks, and we are unable to recover without restarting ember-cli

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.