gulp.spritesmith
Advanced tools
Comparing version 3.5.4 to 3.6.0
# gulp.spritesmith changelog | ||
3.6.0 - Upgraded to `spritesheet-templates@9.4.0` and added handlebars helper registration | ||
3.5.4 - Added `node@0.12` and `iojs` to CI tests | ||
@@ -3,0 +5,0 @@ |
@@ -302,2 +302,10 @@ // Load our dependencies | ||
// If we have handlebars helpers, register them | ||
var handlebarsHelpers = params.cssHandlebarsHelpers; | ||
if (handlebarsHelpers) { | ||
Object.keys(handlebarsHelpers).forEach(function registerHelper (helperKey) { | ||
templater.registerHandlebarsHelper(helperKey, handlebarsHelpers[helperKey]); | ||
}); | ||
} | ||
// If there is a custom template, use it | ||
@@ -304,0 +312,0 @@ var cssFormat = 'spritesmith-custom'; |
{ | ||
"name": "gulp.spritesmith", | ||
"description": "Convert a set of images into a spritesheet and CSS variables via gulp", | ||
"version": "3.5.4", | ||
"version": "3.6.0", | ||
"homepage": "https://github.com/twolfson/gulp.spritesmith", | ||
@@ -38,3 +38,3 @@ "author": { | ||
"minimatch": "~2.0.4", | ||
"spritesheet-templates": "~9.4.0", | ||
"spritesheet-templates": "~9.5.0", | ||
"spritesmith": "~1.3.0", | ||
@@ -41,0 +41,0 @@ "through2": "~0.6.1", |
@@ -138,2 +138,5 @@ # gulp.spritesmith [![Build status](https://travis-ci.org/twolfson/gulp.spritesmith.png?branch=master)](https://travis-ci.org/twolfson/gulp.spritesmith) | ||
- For more templating information, see the [Templating section](#templating) | ||
- cssHandlebarsHelpers `Object` - Container for helpers to register to [handlebars][] for our template | ||
- Each key-value pair is the name of a [handlebars][] helper corresponding to its function | ||
- For example, `{half: function (num) { return num/2; }` will add a [handlebars][] helper that halves numbers | ||
- cssVarMap `Function` - Mapping function for each filename to CSS variable | ||
@@ -140,0 +143,0 @@ - For more information, see [Variable mapping](#variable-mapping) |
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
277950
951
675
+ Addedspritesheet-templates@9.5.2(transitive)
- Removedspritesheet-templates@9.4.1(transitive)
Updatedspritesheet-templates@~9.5.0