Coder Social home page Coder Social logo

Watch command about lab HOT 10 CLOSED

hapijs avatar hapijs commented on May 21, 2024 1
Watch command

from lab.

Comments (10)

AdriVanHoudt avatar AdriVanHoudt commented on May 21, 2024 5

you can run fsmonitor -s -p '+*.js' npm test and I'll do the trick for you, you can even put that in a npm command like npm run watch

from lab.

hueniverse avatar hueniverse commented on May 21, 2024 2

This does not make sense for a test runner.

from lab.

toymachiner62 avatar toymachiner62 commented on May 21, 2024 1

Mocha has this feature and it's great b/c I do not have to have a grunt task to watch the file. I can just call $ mocha my-test.js -w and it automatically watches the file for changes. πŸ‘

from lab.

chrisinajar avatar chrisinajar commented on May 21, 2024 1

This is a very very useful feature for anyone doing TDD. A lot better than cmd+s, alt+tab, up, enter... πŸ‘

from lab.

chrisinajar avatar chrisinajar commented on May 21, 2024 1

There are a hundred tools to do it, I'm using nodemon personally, but why not just build it in with a flag? Since most people are coming from the mocha world, matching their feature set isn't a bad objective.

Lab solves so many problems for you, and then just has this 1 random broken window where you have to solve it yourself. It'd be different and I would understand if the project philosophically aimed to be unopinionated, but that's not the type of project this is.

from lab.

 avatar commented on May 21, 2024 1

Why would you implement something that can already be done using tools that
specialize in solving this particular requirement? I personally prefer to
keep my choice of tool when I change my test runner ...
On Jun 3, 2015 7:36 PM, "Chris Vickery" [email protected] wrote:

There are a hundred tools to do it, I'm using nodemon personally, but why
not just build it in with a flag? Since most people are coming from the
mocha world, matching their feature set isn't a bad objective.

Lab solves so many problems for you, and then just has this 1 random
broken window where you have to solve it yourself. It'd be different and I
would understand if the project philosophically aimed to be unopinionated,
but that's not the type of project this is.

β€”
Reply to this email directly or view it on GitHub
#73 (comment).

from lab.

 avatar commented on May 21, 2024

How about using fsmonitor?

from lab.

Marsup avatar Marsup commented on May 21, 2024

If you use gulp/grunt/... like all the kids these days, it also already does that for you.

from lab.

dazld avatar dazld commented on May 21, 2024

please lock this, it was an off the cuff thought, and repo owners have already replied.

solution: can use any of the myriad task runners as @Marsup mentions.

from lab.

lock avatar lock commented on May 21, 2024

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

from lab.

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.