diff --git a/.gitignore b/.gitignore index 47777d9..5bdf59a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,7 @@ # Stryker Mutation testing .stryker-tmp/ +mutation-testing/reports/mutation-report.json +mutation-testing/reports/html/ # Logs logs @@ -25,6 +27,8 @@ lib-cov # Coverage directory used by tools like istanbul coverage *.lcov +playwright-report/ +test-results/ # nyc test coverage .nyc_output diff --git a/.prettierrc.json b/.prettierrc.json new file mode 100644 index 0000000..a0627b1 --- /dev/null +++ b/.prettierrc.json @@ -0,0 +1,5 @@ +{ + "singleQuote": true, + "trailingComma": "es5", + "semi": true +} diff --git a/AGENTS.md b/AGENTS.md index 8fe7c9d..47723e7 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,106 +1,49 @@ -# AGENTS.md — TemplateJs -Canonical instructions for coding agents. Human-facing docs are in `README.md`. +# Rules -## Quick facts -- Minimal single-page web app (static HTML + modular JS) +## General +- Minimal local first web app (static HTML + modular JS) - Entrypoint: `index.html` (+ static pages in `pages/`) -- Source in `src/` with colocated tests -- Deploy via GitHub Pages from `main` (static assets) -- Preferred dev env: Codespaces (optional) - -## Runbook -- Before commit: `npm run check:all` then `npm test` -- Before PR/release: `npm run validate:all` (tests + checks + mutation) -- Always run commands in a real terminal and include actual output in notes/PRs. +- Source composed of small, focused modules in `src/` (`components/`, `utils/`, ..) with colocated tests +- Frequently during development and before each commit: run `npm test` +- `README.md` typically contains big picture dev. spec and context. It should be kept up to date whenever the code is ready for a PR +- Static app => serve `index.html` with simple static server (e.g., VS Code Live Server) +- Only change code directly related to the current task; keep diffs small +- Preserve existing comments & docs; add concise, long-lived comments where useful and avoid narrating changes via comments +- When external documentation is needed and you lack a browsing/online search tool, ask the user to run an online search for you (e.g., "Please search for \"x\" and paste back the findings") -## Build/Serve -- Static app; serve `index.html` with a simple static server (e.g., VS Code Live Server) +## Dependencies & no-build approach to use +This project follows a no-build, static workflow: +- Use native ES modules and ` + + + + +
+ +Checking…
+ +