phantomjs/bridge.js
function (arg) {
    var args = Array.isArray(arg) ? arg : [].slice.call(arguments);
    var channel = options.taskChannelPrefix + '.' + args[0];
    args[0] = channel;
    fs.write(tmpfile, JSON.stringify(args) + "\n", "a");
}
function (arg) {
    var args = Array.isArray(arg) ? arg : [].slice.call(arguments);
    var channel = options.taskChannelPrefix + '.' + args[0];
    args[0] = channel;
    fs.write(tmpfile, JSON.stringify(args) + "\n", "a");
}
function ( arg ) { var args = Array . isArray ( arg ) ? arg : [ ] . slice . call ( arguments ) ; var channel = options . taskChannelPrefix + '.' + args [ 0 ] ; args [ 0 ] = channel ; fs . write ( tmpfile , JSON . stringify ( args ) + "\n" , "a" ) ; }
Messages are sent to the parent by appending them to the tempfile. NOTE, the tempfile appears to be shared between asynchronously running grunt tasks
Messages are sent to the parent by appending them to the tempfile . NOTE the tempfile appears to be shared between asynchronously running grunt tasks