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
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
npm run coverage
npm run coverage:badge
git add README.md resources/coverage-badge.svg
npm run build
8 changes: 8 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,14 @@ Modes and sibling repos:
- **Templates ref bump.** Shipping a change that depends on a new templates release is a two-step,
cross-repo dance: release `seamless-templates` first, then bump `SEAMLESS_TEMPLATES_REF`
([src/core/images.ts](src/core/images.ts)) to that tag.
- **Coverage badge.** `README.md` shows a line-coverage badge (`resources/coverage-badge.svg`)
regenerated locally by a Husky `pre-commit` hook ([.husky/pre-commit](.husky/pre-commit)): it runs
`npm run coverage` (`src/**/*.test.ts` only, so it never sweeps the Playwright specs under
`verify/`), then `npm run coverage:badge` ([scripts/updateCoverageBadge.mjs](scripts/updateCoverageBadge.mjs))
to rewrite the SVG from `coverage/coverage-summary.json`, stages it, and rebuilds. We standardized on
the pre-commit hook (matching `seamless-auth-api`) rather than a CI staleness check, so the committed
badge always reflects the latest local run. If you change coverage, let the hook regenerate the badge;
do not hand-edit the SVG.
## Before You Finish A Change

- Run `npm run build` (the root package's only build step).
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

[![License: AGPL-3.0-only](https://img.shields.io/badge/License-AGPL3-yellow.svg)](LICENSE)
[![npm version](https://img.shields.io/npm/v/seamless-cli.svg?style=flat)](https://www.npmjs.com/package/seamless-cli)
![coverage](resources/coverage-badge.svg)

Seamless CLI is a command-line tool for bootstrapping applications with Seamless Auth, an open source, passwordless authentication system.

Expand Down
Loading
Loading