Add npm scripts and justfile for development workflow

Scripts cover linting, type checking, testing, and dev server.
Justfile provides docker commands and unified check command.
This commit is contained in:
Jared Miller 2026-01-28 10:59:07 -05:00
parent 0bc0c2fded
commit 62a264c62a
Signed by: shmup
GPG key ID: 22B5C6D66A38B06C
2 changed files with 47 additions and 0 deletions

23
justfile Normal file
View file

@ -0,0 +1,23 @@
default:
@just --list
dev:
bun run dev
start:
bun run start
check:
bun run lint && bun run typecheck && bun run test
build:
docker build -t claude-remote .
up:
docker compose up -d
down:
docker compose down
logs:
docker compose logs -f

24
package.json Normal file
View file

@ -0,0 +1,24 @@
{
"name": "claude-remote",
"description": "Self-hosted remote control for Claude Code - wrap CLI in PTY, stream output, approve prompts from phone",
"module": "index.ts",
"type": "module",
"private": true,
"scripts": {
"lint": "bunx biome check --write .",
"dev": "bun run --watch src/server.ts",
"start": "bun run src/server.ts",
"test": "bun test",
"typecheck": "bunx tsc"
},
"devDependencies": {
"@biomejs/biome": "^2.3.13",
"@types/bun": "latest"
},
"peerDependencies": {
"typescript": "^5"
},
"dependencies": {
"bun-pty": "^0.4.8"
}
}