Instantly generate TexturePacker spritesheets when assets are updated
npm install tps-watchTexturePacker .tps-file watcher that autogenerates spritesheets when source files change
``sh`
npm install tps-watch --save
Or globally:
`sh`
npm install tps-watch --global
To use this, you must have purchased and installed TexturePacker Pro, which enables the command line interface.
Unfortunately, tps-watch is not yet Windows compatible.
As a binary:
`sh`
tps-watch ./folder/containing/tpsfiles --notify
As a library:
`js
const watch = require('tps-watch');
const tpsFiles = ['./foo/bar/mySpritesheet.tps'];
const texturePackerPath = '/usr/local/bin/TexturePacker';
const notify = true;
watch(tpsFiles, texturePackerPath, notify);
`
Turning on notify` will use node-notifier to show a notification every
time a spritesheet has been recreated.