为grunt-js输出添加颜色

时间:2014-07-28 13:37:34

标签: colors gruntjs exec spawn

我已经设置了grunt来在windows中为我的delphi开发做tdd。 我有一个运行msbuild的监视任务,然后运行我的测试控制台应用程序(用delphi编写)。 当我直接在Windows命令提示符下运行测试应用程序时,它会在grunt执行时输出彩色文本颜色消失。我尝试使用exec和spawn运行测试任务,但使用grunt.js的输出始终没有颜色。 关于如何解决这个问题的任何想法?

1 个答案:

答案 0 :(得分:0)

添加

opts : {stdio : 'inherit'}

到我的spawn任务修复了问题

相关问题