0

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

一切正常!

任何想法为什么?

干杯 izocan

4

1 回答 1

0

在此处的 google 群组讨论中解决:General issue when using Dalek with Grunt

于 2014-04-08T08:49:59.300 回答