node-sprite icon indicating copy to clipboard operation
node-sprite copied to clipboard

Rebuild *.json file if it doesn't exist but image does

Open martinheidegger opened this issue 11 years ago • 0 comments

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 ;)

martinheidegger avatar Oct 06 '13 15:10 martinheidegger