Files
rplace/package.json
T
tiennm99 1565776f02 feat(scripts): add image-to-colors + upload-colors CLI scripts
Convert PNG/JPG/WebP to rplace palette JSON (nearest-color or Floyd-Steinberg
dither) and upload at a target (x, y) with client-side credit throttling and
429 backoff. Shared palette conversion lives in src/lib/image-to-palette.js so
the browser importer can reuse it.
2026-04-17 11:25:06 +07:00

31 lines
881 B
JSON

{
"name": "rplace",
"private": true,
"type": "module",
"scripts": {
"dev": "wrangler dev",
"dev:client": "vite dev",
"build": "vite build",
"deploy": "vite build && wrangler deploy",
"preview": "vite build && wrangler dev",
"test": "vitest run --config vitest.config.js",
"test:integration": "vitest run --config vitest.integration.config.js",
"test:all": "vitest run --config vitest.config.js && vitest run --config vitest.integration.config.js",
"test:watch": "vitest --config vitest.config.js"
},
"dependencies": {
"@upstash/redis": "^1.34.3",
"hono": "^4.7.6"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^5.0.3",
"ioredis": "^5.10.1",
"sharp": "^0.34.5",
"svelte": "^5.28.2",
"testcontainers": "^11.14.0",
"vite": "^6.3.2",
"vitest": "^4.1.4",
"wrangler": "^4.14.1"
}
}