tiny-sprite/package.json
Corey Johnson 311b91d0c5 refactor: pure CSS sprite animation with CSS variables
- Remove runtime JavaScript from Sprite component entirely
- Use CSS custom properties (--x, --y, --ex) with shared @keyframes
- Add SpriteStyles component for global keyframe (include once in <head>)
- Require sheetWidth/sheetHeight props (calculated by dev tool)
- Remove grid/columns support (horizontal strips only)
- Dev tool now auto-detects frames and calculates crop bounds
- Dev server is now CLI-based with required assets directory arg
- Add image picker with filter/search

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-06 16:07:35 -08:00

24 lines
427 B
JSON

{
"name": "tiny-sprites",
"type": "module",
"exports": {
".": "./src/sprite.tsx"
},
"bin": {
"tiny-sprites": "src/dev/server.tsx"
},
"scripts": {
"dev": "bun --hot src/dev/server.tsx ./assets",
"test": "tsc --noEmit && bun test"
},
"dependencies": {
"hono": "^4.11.3"
},
"devDependencies": {
"bun-types": "latest"
},
"prettier": {
"semi": false,
"printWidth": 100
}
}