grunt-includes
Advanced tools
Comparing version 0.3.5 to 0.3.6
{ | ||
"name": "grunt-includes", | ||
"description": "Include other files within a file.", | ||
"version": "0.3.5", | ||
"version": "0.3.6", | ||
"author": "vanetix <matmcfarland@gmail.com>", | ||
@@ -6,0 +6,0 @@ "main": "Gruntfile.js", |
@@ -154,2 +154,3 @@ # grunt-includes [![Build Status](https://travis-ci.org/vanetix/grunt-includes.png?branch=master)](https://travis-ci.org/vanetix/grunt-includes) | ||
## Release History | ||
- 0.3.6 - Update replacement so only the include statement is replace. Thanks [SAPikachu](https://github.com/SAPikachu)! | ||
- 0.3.5 - Add options for filename prefix and suffix. | ||
@@ -156,0 +157,0 @@ - 0.3.4 - Add explicit include path option. |
@@ -145,3 +145,3 @@ /* | ||
function recurse(p, opts, included, indents) { | ||
var src, next, match, error, comment, | ||
var src, next, match, error, comment, content, | ||
newline, compiled, indent, fileLocation; | ||
@@ -209,3 +209,4 @@ | ||
next = path.join((opts.includePath || path.dirname(p)), fileLocation); | ||
line = recurse(next, opts, included, indents + indent); | ||
content = recurse(next, opts, included, indents + indent); | ||
line = line.replace(opts.includeRegexp, content); | ||
@@ -228,3 +229,2 @@ /** | ||
} | ||
}; | ||
}; |
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
12091
170