From 62a264c62a4e6dbde456cd06c0af422d599e12bf Mon Sep 17 00:00:00 2001 From: Jared Miller Date: Wed, 28 Jan 2026 10:59:07 -0500 Subject: [PATCH] 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. --- justfile | 23 +++++++++++++++++++++++ package.json | 24 ++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 justfile create mode 100644 package.json diff --git a/justfile b/justfile new file mode 100644 index 0000000..fa4281c --- /dev/null +++ b/justfile @@ -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 diff --git a/package.json b/package.json new file mode 100644 index 0000000..27d5831 --- /dev/null +++ b/package.json @@ -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" + } +}