grunt-karma
Advanced tools
Comparing version 0.8.2 to 0.8.3
@@ -0,1 +1,4 @@ | ||
# 0.8.3 | ||
* Flatten `files` input (@cgross) | ||
# 0.8.2 | ||
@@ -2,0 +5,0 @@ * Emergency fix: Don't pass anything to karma if no browsers are defined. |
{ | ||
"name": "grunt-karma", | ||
"version": "0.8.2", | ||
"version": "0.8.3", | ||
"description": "grunt plugin for karma test runner", | ||
@@ -5,0 +5,0 @@ "main": "tasks/grunt-karma.js", |
@@ -67,2 +67,19 @@ # grunt-karma [![Build Status](https://travis-ci.org/karma-runner/grunt-karma.png?branch=master)](https://travis-ci.org/karma-runner/grunt-karma) | ||
### Config with Grunt Template Strings in `files` | ||
When using template strings in the `files` option, the results will flattened. Therefore, if you include a variable that includes an array, the array will be flattened before being passed to Karma. | ||
Example: | ||
```js | ||
meta: { | ||
jsFiles: ['jquery.js','angular.js'] | ||
}, | ||
karma: { | ||
options: { | ||
files: ['<%= meta.jsFiles %>','angular-mocks.js','**/*-spec.js'] | ||
} | ||
} | ||
``` | ||
## Sharing Configs | ||
@@ -69,0 +86,0 @@ If you have multiple targets, it may be helpful to share common |
@@ -59,2 +59,6 @@ /* | ||
if (data.files){ | ||
data.files = _.flatten(data.files); | ||
} | ||
//support `karma run`, useful for grunt watch | ||
@@ -61,0 +65,0 @@ if (this.flags.run){ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12654
154
202