spritesmith-texturepacker

1.1.0 • Public • Published

SpriteSmith TexturePacker NPM Version NPM Downloads

TexturePacker export template for SpriteSmith!

About

This very tiny module makes exporting TexturePacker compatible JSON sprite sheets with grunt-spritesmith or gulp.spritesmith. Just pass it along via the cssTemplate parameter.

Example

Building a TexturePacker sprite sheet with gulp.

var spritesmith = require('gulp.spritesmith');

gulp.task('sprite', function () {
	return gulp.src('src/gfx/scubaman/*.png')
		.pipe(spritesmith({
			imgName: "scubaman.png",
			cssName: "scubaman.json",
			algorithm: 'binary-tree',
			cssTemplate: require('spritesmith-texturepacker') // <-- this right here
		})
		.pipe(gulp.dest('./dist/gfx/'));
});

Install

With npm:

npm install spritesmith-texturepacker

License

Copyright (c) 2014 Mark Riedesel Licensed under the MIT license.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.0
    30
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.0
    30
  • 1.0.0
    4
  • 0.1.0
    1

Package Sidebar

Install

npm i spritesmith-texturepacker

Weekly Downloads

35

Version

1.1.0

License

none

Unpacked Size

4.29 kB

Total Files

4

Last publish

Collaborators

  • klowner