monorepo-coverage-badges
v2.0.0
Published
Generate coverage badges for monorepos
Downloads
567
Readme
# npm
npm install monorepo-coverage-badges -D
# yarn
yarn add monorepo-coverage-badges -D
# pnpm
pnpm i monorepo-coverage-badges -D
{
"scripts": {
"test": "vitest --run && pnpm badges",
"test:watch": "vitest --ui --coverage",
"test:ci": "vitest --run --coverage && pnpm badges:ci",
"badges": "monorepo-coverage-badges",
"badges:ci": "monorepo-coverage-badges --ci"
}
}
{
"husky": {
"hooks": {
"pre-commit": "pnpm test && pnpm badges"
}
}
}