将 Dalek 与 Grunt 一起使用时的一般配置问题



>我通过使用 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']
    }
  }
};

一切正常!

知道为什么吗?

干杯伊佐坎

在谷歌群组讨论中解决:将 Dalek 与 Grunt 一起使用时的一般问题

最新更新