gimm / gulp-express

gulp plugin for express
56 stars 26 forks source link

Console.log #32

Closed mjancarik closed 9 years ago

mjancarik commented 9 years ago

Why do you erase support for console.log from gulp.express?

Now I have to add listener on stdout and stderr.

ghost commented 9 years ago

@Microx I figured out that if you pass options.stdio = 'inherit' you get your logging back. Problem now is there's an null reference error on line 81.

thesciz commented 9 years ago

I'd love a solution to this as well! Particularly the null reference error.

thesciz commented 9 years ago

I've found a quick workaround. Instead of setting options.stdio, don't pass any options and just change line 63 in node_modules/gulp_express/index.js: from debug(data.trim()); to console.log(data.trim());

mjancarik commented 9 years ago

Yes, it's possible.

I have to add listener for gulp task.

node.stdout.on('data', function(data) {
        console.log(data.trim());
    });

    node.stderr.on('data', function(data) {
        console.error(data.trim());
    });
gimm commented 9 years ago

please update to version 0.2.0 manually