#!/usr/bin/env node // Prefix our docpad executable with the node debug and profile flags // and suffix docpad with it's profile flag var command = [ 'tracegl', '-no:coffee-script', __dirname+'/docpad', ].concat(process.argv.slice(2)); // Output the command we'll be running console.log(command.join(' ')); // And spawn our command and let us know if any errors occur require('safeps').spawn(command, {stdio:'inherit'}, function(err){ if (err) console.log(err); });