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:
parent
0bc0c2fded
commit
62a264c62a
2 changed files with 47 additions and 0 deletions
23
justfile
Normal file
23
justfile
Normal 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
24
package.json
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue