sindresorhus / grunt-concurrent

Run grunt tasks concurrently

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"[object Object]" in args

vladikoff opened this issue · comments

Using concurrent with this config:

grunt.config('concurrent', {
    server: [
      'modernizr',
      'copy:styles'
    ]
  });

Ends up:

Running "concurrent:server" (concurrent) task
    [ 'modernizr',
      '--force',
      '--_modernizr.defaults=[object Object]',
      '--_modernizr.private=[object Object]' ]
        [ 'copy:styles',
      '--force',
      '--_modernizr.defaults=[object Object]',
      '--_modernizr.private=[object Object]' ]

If I log args in the task

var cp = grunt.util.spawn({
                grunt: true,
                args: args2,
                opts: spawnOptions
            }, function (err, result, code) {
                if (err || code > 0) {
                    grunt.warn(result.stderr || result.stdout);
                }
                grunt.log.writeln('\n' + result.stdout);
                next();
            });

grunt-modernizr ref https://github.com/Modernizr/grunt-modernizr/blob/master/tasks/modernizr.js#L15

A bit related to this args logic, there is also issue with --force.
We are looking at it here: gruntjs/grunt#1067

image

Seems like grunt-concurrent is not the cause of the issue. Closing.