November 22, 2015
Over the past month, we have been taking steps to update and formalize spritesmith's
API. It's fallen behind on the times and we wanted to fix it up.
Here's a short list of the things that we have changed:
- Broke up the test suite/spec hybrid into separate repos
- Updated engine specification
- Moved to constructor for
Engine
- Allows for setting options for engines on a per-task basis instead of a global singleton
- Moved to streaming output over binary string/buffer
- Allows for more efficient memory usage and faster writes to disk
- Updated API to use async only for image initialization
- Removes unnecessary async logic handling for sync actions
- Added support for Vinyl as input
- Allows in-memory engines like pixelsmith and canvassmith to better support gulp.spritesmith
- Moved to constructor for
- Updated spritesmith API to emulate underlying engine API
- Broke down into constructor with 2 methods (i.e.
createImages
,processImages
) - Moved to async only for image creation
- Moved to streaming output for
processImages
- Broke down into constructor with 2 methods (i.e.
- Updated grunt-spritesmith to leverage streaming output
- Updated gulp.spritesmith to leverage Vinyl input support and streaming output
- Started a newsletter to make it easier to receive updates about spritesmith
A full list of changes can be found here:
https://gist.github.com/twolfson/d303342301cd7a1c0b4b
Links
Here's a full list of all the repos we worked on: