grunt-include-source
Advanced tools
Comparing version
@@ -7,2 +7,6 @@ # Changelog | ||
### 2015-07-10 ver. 0.6.1 | ||
* Add support to specify target with include options (see https://github.com/jwvdiermen/grunt-include-source/pull/39) | ||
### 2015-05-24 ver. 0.6.0 | ||
@@ -9,0 +13,0 @@ |
{ | ||
"name": "grunt-include-source", | ||
"description": "Include your sources into your HTML files automatically.", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"homepage": "https://github.com/jwvdiermen/grunt-include-source", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -206,3 +206,2 @@ /* | ||
grunt.log.debug('Starting task "includeSource"...'); | ||
var options = this.options({ | ||
@@ -214,2 +213,3 @@ basePath: '', | ||
}); | ||
options.target = this.target; | ||
@@ -286,3 +286,8 @@ var typeMappings = extendr.clone(defaultTypeMappings); | ||
includes.forEach(function(include, includeIndex) { | ||
var files = resolveFiles(options, include.options); | ||
var files = []; | ||
if (include.options.target && options.target !== include.options.target) { | ||
grunt.log.debug('Include target is "' + include.options.target + '" and task target is "' + options.target + '", skipping include.'); | ||
} else { | ||
files = resolveFiles(options, include.options); | ||
} | ||
orderFiles(files, include.options); | ||
@@ -289,0 +294,0 @@ |
68478
0.65%521
1.17%