Init atlas-baker tool with source-dir scan and pair-detection

Creates the sporel-tool-atlas-baker Node CLI scaffold and the first
phase of the bake pipeline: scan a source directory for *_diffuse.png
files, pair them with optional *_height.png companions, and return
alphabetically-sorted sources for deterministic re-bakes.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Axel Meyer
2026-05-21 22:38:42 +02:00
commit b64e3e87a9
12 changed files with 1295 additions and 0 deletions

18
package.json Normal file
View File

@@ -0,0 +1,18 @@
{
"name": "sporel-tool-atlas-baker",
"version": "0.1.0",
"description": "Bake paired diffuse + height PNG atlases for the Sporel map-lib v0.3.0+ format. Accepts PNG/WebP/JPG sources via jimp.",
"bin": {
"sporel-atlas-baker": "bin/atlas-baker.js"
},
"scripts": {
"test": "node --test tests/*.test.js"
},
"dependencies": {
"jimp": "^0.22.10",
"pngjs": "^7.0.0"
},
"engines": {
"node": ">=18"
}
}