From 0d1ecb0535d279f5836298fcee4765868967db31 Mon Sep 17 00:00:00 2001 From: Mickael Daniel Date: Mon, 23 Apr 2012 17:32:02 +0200 Subject: [PATCH] minor change to task doc, open browser and forget * windows kinda weird with "explorer" command, returns status !=0 even though evertyhing went well. * will probably ends up in just the display of url to open, no automatic browser opening --- tasks/docs.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tasks/docs.js b/tasks/docs.js index a67c256..48b12cf 100644 --- a/tasks/docs.js +++ b/tasks/docs.js @@ -23,11 +23,11 @@ module.exports = function(grunt) { var app = grunt.helper('serve', config); app.on('start', function() { - var open = spawn(browser, ['http://localhost:' + config.port]); - open.on('error', function(er) { console.error(er); }); - open.on('exit', function(code) { - if(code) grunt.warn('Something bad happend', code); - }); + // spawn and forget, would probably ends up with no browser opening + // but output to console webserver url. + spawn(browser, ['http://localhost:' + config.port]); + // windows kinda werid on explorer, getting an error code even though everything is ok + }); });