Note that there are some explanatory texts on larger screens.

plurals
  1. POUsing grunt, how do I run three blocking tasks concurrently?
    primarykey
    data
    text
    <p>I have succesfully combined <code>grunt-contrib-watch</code> with <code>grunt-nodemon</code> using <code>grunt-concurrent</code> to allow me to autostart my node.js instance whenever I edit and transpile my coffeescript files. </p> <p>Here is the <code>grunt-concurrent</code> portion of the gruntfile that I use to achieve this:</p> <p><strong>gruntfile.coffee</strong></p> <pre><code>concurrent: dev: tasks: [ 'watch' 'nodemon' ] options: logConcurrentOutput: true </code></pre> <p>The <code>watch</code> and <code>nodemon</code> tasks are configured in the same file but have been removed for brevity. This work fine.</p> <p>Now I want to add a <code>grunt-node-inspector</code> to the list of concurrent tasks. Like so:</p> <pre><code>concurrent: dev: tasks: [ 'watch' 'nodemon' 'node-inspector' ] options: logConcurrentOutput: true </code></pre> <p>According to the <code>grunt-nodemon</code> help file at least, this should be possible as it is given as an example usage: <a href="https://github.com/ChrisWren/grunt-nodemon#running-nodemon-concurrently" rel="nofollow">Running Nodemon Concurrently</a></p> <p>However this does not work for me. Instead only the first two tasks are started.</p> <p>Experiments show that <code>grunt-concurrent</code> appears to be limited to running only two tasks concurrently. Any subsequent tasks are ignored. I have tried various options, for example:</p> <pre><code>concurrent: dev1:[ 'watch' 'nodemon' ] dev2:[ 'node-inspector' ] options: logConcurrentOutput: true grunt.registerTask 'default', ['concurrent:dev1', 'concurrent:dev2'] </code></pre> <p>I also have tried setting the <code>limit</code> option to 3. I had high hopes for this so maybe I have misunderstood how to apply the value correctly:</p> <pre><code>concurrent: dev: limit: 3 tasks: [ 'watch' 'nodemon' 'node-inspector' ] options: logConcurrentOutput: true </code></pre> <p>But I cannot get my third blocking task to run.</p> <p><strong>Question</strong> How can I get all three blocking tasks running at the same time?</p> <p>Thanks.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload