From 5b2143773638dc3e540a18bc860411fd6dddffca Mon Sep 17 00:00:00 2001 From: Jaehyun Yeom Date: Sun, 5 Apr 2026 22:22:56 -0700 Subject: [PATCH 1/2] Add Makefile for developer workflow Wraps existing npm scripts with Make targets for consistent local and CI usage. Includes format, lint, fix, typecheck, test, build, clean, and coverage targets with parallel-safe dependency ordering. --- Makefile | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..551c945 --- /dev/null +++ b/Makefile @@ -0,0 +1,55 @@ +# ROBOCO CLI — Developer Workflow +# TypeScript · Node.js ≥ 24 · npm + +.PHONY: all check format check-format lint fix test test-unit test-integration test-e2e test-all typecheck build clean coverage + +# ─── Full local workflow ─────────────────────────────────────────────── +# Mutating targets run sequentially (format → fix), then parallel-safe targets. +all: format fix test build + +# ─── CI-friendly checks (no mutation) ────────────────────────────────── +check: check-format lint typecheck test build + +# ─── Format / Lint ───────────────────────────────────────────────────── +format: + @npm run format + +check-format: + @npm run format:check + +lint: + @npm run lint + +fix: format + @npm run lint:fix + +# ─── Type checking ───────────────────────────────────────────────────── +typecheck: + @npm run typecheck + +# ─── Tests ───────────────────────────────────────────────────────────── +test: + @npm run test + +test-unit: + @npm run test:unit + +test-integration: + @npm run test:integration + +test-e2e: + @npm run test:e2e + +test-all: + @npm run test:all + +# ─── Build ───────────────────────────────────────────────────────────── +build: + @npm run build + +# ─── Utilities ───────────────────────────────────────────────────────── +clean: + @rm -rf dist coverage + +coverage: + @npx vitest run --coverage From c625fd126aa0a1dc3fa1aae9e7ccbd6c42b2aaa0 Mon Sep 17 00:00:00 2001 From: Jaehyun Yeom Date: Sun, 5 Apr 2026 23:21:59 -0700 Subject: [PATCH 2/2] Remove redundant format from all target fix already depends on format, so listing both caused format to run twice. Now all: fix test build gets the same result in one pass. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 551c945..4d074ac 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ # ─── Full local workflow ─────────────────────────────────────────────── # Mutating targets run sequentially (format → fix), then parallel-safe targets. -all: format fix test build +all: fix test build # ─── CI-friendly checks (no mutation) ────────────────────────────────── check: check-format lint typecheck test build