我通过使用所述的load-grunt-config功能拆分了gruntfile http://www.html5rocks.com/en/tutorials/tooling/supercharging-your-gruntfile/?redirect_from_locale=de
。我还为dalek创建了一个模块,如下所述
https://www.npmjs.org/package/grunt-dalek
它看起来像这样:
module.exports = {
dalek: {
options: {
browser: ['phantomjs'],
reporter: ['html', 'junit', 'json'],
},
dist: {
src: ['tests/gui/dalekjs/dakektest.js']
}
}
};
grunt -v
在控制台中执行时,我在控制台中看到以下输出:
它说没有文件,但是当我使用时:
module.exports = {
dalek: {
options: {
browser: ['phantomjs'],
reporter: ['html', 'junit', 'json'],
},
files: {
src: ['tests/gui/dalekjs/dakektest.js']
}
}
};
一切正常!
有什么想法吗?
欢呼伊佐坎
在这里解决了Google网上论坛的问题:将Dalek与Grunt一起使用时的一般问题
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句