sindresorhus / grunt-concurrent

Run grunt tasks concurrently

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is there an easy way to remove the blank lines from the output?

sebv opened this issue · comments

I am running concurrent mocha , and the output like this:

Running "env:chrome" (env) task

Running "simplemocha:sauce" (simplemocha) task


  tutorial (chrome)
    ✓ should get home page (2875ms)
    ✓ should go to the doc page (0) (2737ms)
    ✓ should return to the home page(0) (2450ms)
    ✓ should go to the doc page (1) (2462ms)
    ✓ should return to the home page(1) (2548ms)


  5 passing (20s)


Done, without errors.

becomes something like this:

  Running "env:explorer" (env) task

    Running "simplemocha:sauce" (simplemocha) task


      tutorial (internet explorer)

        ✓ should get home page (2930ms)

        ✓ should go to the doc page (0) (3120ms)

        ✓ should return to the home page(0) (3381ms)

        ✓ should go to the doc page (1) (3051ms)

        ✓ should return to the home page(1) (3949ms)


      5 passing (28s)


    Done, without errors.

Just wondering why the extra white lines and how to get rid of them?

To answer my own question, this is node.js spawn who add the extra space, will have to figure a way to doctor the result here: https://github.com/sindresorhus/grunt-concurrent/blob/master/tasks/concurrent.js#L31.

See PR.

#30