grunt-includes
Advanced tools
Comparing version 0.4.5 to 0.5.0
{ | ||
"name": "grunt-includes", | ||
"description": "Include other files within a file.", | ||
"version": "0.4.5", | ||
"version": "0.5.0", | ||
"author": "vanetix <matmcfarland@gmail.com>", | ||
@@ -6,0 +6,0 @@ "main": "Gruntfile.js", |
@@ -175,2 +175,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.5.0 - Given a full include path, filenamePrefix and filenameSuffix will now be ignored. | ||
- 0.4.0 - Release templating ability. Thanks [nathankot](https://github.com/nathankot)! | ||
@@ -189,3 +190,3 @@ - 0.3.7 - Various bug fixes and updates. | ||
## License (MIT) | ||
Copyright (c) 2012-2013 Matt McFarland | ||
Copyright (c) 2012-2015 Matt McFarland and Contributors | ||
@@ -192,0 +193,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. |
@@ -5,3 +5,3 @@ /** | ||
* | ||
* Copyright (c) 2013 Matt McFarland | ||
* Copyright (c) 2012-2015 Matt McFarland and Contributors | ||
* Licensed under the MIT license. | ||
@@ -199,3 +199,9 @@ */ | ||
fileLocation = opts.filenamePrefix + fileLocation + opts.filenameSuffix; | ||
// If a full filepath + extension is given, use it instead of building | ||
if(isFilename(fileLocation)) { | ||
fileLocation = fileLocation; | ||
} else { | ||
fileLocation = opts.filenamePrefix + fileLocation + opts.filenameSuffix; | ||
} | ||
next = path.join((opts.includePath || path.dirname(p)), fileLocation); | ||
@@ -202,0 +208,0 @@ content = 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
14904
4
191
194