0.1.1 • Published 8 years ago
tps-watch v0.1.1
tps-watch
TexturePacker .tps-file watcher that autogenerates spritesheets when source files change
Installation
npm install tps-watch --saveOr globally:
npm install tps-watch --globalRequirements
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.
Usage
As a binary:
tps-watch ./folder/containing/tpsfiles --notifyAs a library:
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.