Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ requirements and this file as you learn. Loosening a requirement, a test or a ru
3. Deliver it small and proven, to the principles below and the Done questions.
4. Write lessons where the next agent will look. A repeated mistake becomes a rule here, a broken rule becomes a test,
and a gap you hit becomes a GitHub issue (search before filing). Back gains with before-and-after numbers or "not
measured"; never win by weakening a test or a baseline.
measured" (`make scorecard`); never win by weakening a test or a baseline.
5. Shipping brings users, whose issues and feedback feed step 2.

## Principles
Expand Down
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ clicks: env ## Count the clicks, keys and taps each journey takes on a fresh Len
ci/clicks/run.sh --compare ci/clicks/baseline.json
ci/clicks/run.sh --device phone --compare ci/clicks/baseline-phone.json

.PHONY: scorecard
SCORECARD ?=
scorecard: ## The numbers that say whether Lens meets its goals, as one JSON line (SCORECARD=file.jsonl compares and appends)
python3 ci/scorecard/scorecard.py $(if $(SCORECARD),--log $(SCORECARD))

.PHONY: run dev stop setup-code logs

run: .env ## Build once and run the whole stack, no hot reload (the fast way to use it): http://localhost:3000
Expand Down
15 changes: 15 additions & 0 deletions ci/scorecard/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"name": "scorecard",
"projectType": "application",
"tags": ["lang:python"],
"targets": {
"test": {
"executor": "nx:run-commands",
"options": {
"cwd": "{workspaceRoot}",
"command": "python3 -m unittest discover ci/scorecard"
}
}
}
}
Loading
Loading