grunt-includes
Advanced tools
Comparing version 0.3.4 to 0.3.5
{ | ||
"name": "grunt-includes", | ||
"description": "Include other files within a file.", | ||
"version": "0.3.4", | ||
"version": "0.3.5", | ||
"author": "vanetix <matmcfarland@gmail.com>", | ||
@@ -6,0 +6,0 @@ "main": "Gruntfile.js", |
@@ -49,2 +49,14 @@ # grunt-includes [![Build Status](https://travis-ci.org/vanetix/grunt-includes.png?branch=master)](https://travis-ci.org/vanetix/grunt-includes) | ||
#### filenamePrefix | ||
Type: `String` | ||
Default: `` | ||
Prepend the defined string to each included filename before reading them. Thus making possible to include "include_file.ext" by using directly "file.ext". | ||
#### filenameSuffix | ||
Type: `String` | ||
Default: `` | ||
Append the defined string to each included filename before reading them. Thus making possible to include "file.ext" by using directly "file". | ||
#### includeRegexp | ||
@@ -143,2 +155,3 @@ Type: `RegExp` | ||
## Release History | ||
- 0.3.5 - Add options for filename prefix and suffix. | ||
- 0.3.4 - Add explicit include path option. | ||
@@ -145,0 +158,0 @@ - 0.3.2 - Add silent flag to silence save messages. |
@@ -47,3 +47,5 @@ /* | ||
includeRegexp: defaultRegexp, | ||
includePath: '' | ||
includePath: '', | ||
filenamePrefix: '', | ||
filenameSuffix: '' | ||
}); | ||
@@ -205,2 +207,3 @@ | ||
fileLocation = opts.filenamePrefix + fileLocation + opts.filenameSuffix; | ||
next = path.join((opts.includePath || path.dirname(p)), fileLocation); | ||
@@ -207,0 +210,0 @@ line = recurse(next, opts, included, indents + indent); |
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
11902
175
169