node-sprite
node-sprite copied to clipboard
Rebuild *.json file if it doesn't exist but image does
I just had the case that for some reason the spritesheet.png was available in the filesystem but the corresponding spritesheet.json wasn't (not commited). node-sprite ran over the thing and told me it processed all files properly and I naturally assumed there would be a .json file waiting for me. Yet unfortunately there was no .json file because node-sprite seems to not recreate a .json file if the .png exists.
Would it be posssible that node-sprite creates a .json file (and recreates the .png) if the .json file doesn't exist? It would be also okay to add a option for that?
Now: I know its the users problem if they decide to not push a .json file however: A chance less for human-error is a chance for a better life ;)