lawsynth/Makefile
caelum0x 0e1d53dca5 ci: gate the TypeScript monorepo (10 packages/apps) in PR checks
The Rust workspace and python/lawsynth were covered by CI, but the entire pnpm
TypeScript workspace — world-schema, api-client, chart-core, design-system,
layout-engine, state-store, world-viewer, and apps studio/playground/docs-site
(including all the SDK parsers, Studio analysis module, docs-site, and playground
wasm loader added this cycle) — had NO CI coverage.

- .github/workflows/pr.yml: new `typescript` job — pnpm/action-setup +
  setup-node 22 (pnpm cache), `pnpm install --frozen-lockfile`, then
  `pnpm run build` / `pnpm run typecheck` / `pnpm run test` (the root recursive
  scripts). Verified locally: build + typecheck + test are green across all
  10 packages/apps (api-client 30, docs-site 11, playground 12, chart-core/
  state-store/design-system 10 each, others Done; 0 failures).
- justfile + Makefile: new `ts` target (install/build/typecheck/test) folded
  into `verify`, so `just verify` / `make verify` now match CI (Rust + Python +
  TypeScript) instead of skipping the web workspace.
2026-08-18 21:43:12 +03:00

29 lines
537 B
Makefile

.DEFAULT_GOAL := help
.PHONY: help fmt check test lint python-test ts verify
help:
@printf '%s\n' 'Targets: fmt check test lint python-test ts verify'
fmt:
cargo fmt --all
check:
cargo check --workspace --all-targets
test:
cargo test --workspace
lint:
cargo clippy --workspace --all-targets -- -D warnings
python-test:
PYTHONPATH=python/lawsynth/src python3 -m pytest -q python/lawsynth/tests
ts:
pnpm install --frozen-lockfile
pnpm run build
pnpm run typecheck
pnpm run test
verify: fmt check test lint python-test ts