Files
context-extractor/Makefile
T
ilia d26d1aaa4e
CI / automation-js (vitest + real Chromium) (pull_request) Successful in 1m15s
CI / Lint + tests (pull_request) Successful in 10m42s
Unify product version at 1.4.0, add ruff gate, drop stale GitHub workflow
- One version (1.4.0) across extension/manifest.json, automation/pyproject.toml,
  automation-js/package.json (+lockfile); README documents the bump-together policy
- Delete .github/workflows/ci.yml (behind the Gitea copy; CI runs on Gitea Actions)
- CURSOR_PROMPT.md: replace personal paths with <path-to-context-extractor>
- Add ruff (E4,E7,E9,F,I, line-length 120) to automation/ dev extras, Makefile lint,
  and the Gitea CI Lint + tests job as a hard gate
2026-07-26 15:47:37 -04:00

35 lines
1.3 KiB
Makefile

.PHONY: help test test-js lint package ci install install-js
help: ## Show targets
@grep -E '^[a-zA-Z_-]+:.*?## ' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " %-12s %s\n", $$1, $$2}'
install: ## Create venv and install automation package + Playwright Chromium
cd automation && python3 -m venv .venv
cd automation && .venv/bin/pip install -U pip && .venv/bin/pip install -e ".[dev]"
cd automation && .venv/bin/playwright install chromium
install-js: ## npm install automation-js (uses the Chromium cache npx playwright already has)
cd automation-js && npm install
test: ## Run pytest
cd automation && .venv/bin/pytest -q
test-js: ## Run automation-js vitest suite (real headless Chromium)
cd automation-js && npm test
lint: ## Syntax-check extension JS + validate manifest JSON + ruff on automation/
@node --check extension/core/dom.js
@node --check extension/core/prompt.js
@node --check extension/page-patcher.js
@node --check extension/content.js
@node --check extension/background.js
@node --check extension/popup.js
@python3 -m json.tool extension/manifest.json >/dev/null
@cd automation && .venv/bin/ruff check .
@echo "lint OK"
package: ## Zip extension/ into dist/
python3 scripts/package_extension.py
ci: lint test test-js package ## Local stand-in for Gitea Actions