Skip to content

Custom Scripts

This project uses a collection of custom scripts to automate common tasks, enforce quality standards, and enhance the build process.

CommandDescription
devStart development server
dev:hostStart development server with network access
dev:debugStart development server with verbose logging
previewPreview production build locally
cleanRemove build artifacts (dist, .astro)
clean:allRemove build artifacts and node_modules cache
CommandDescription
buildBuild tokens then build site for production
build:ciBuild for CI with verbose logging
tokens:buildCompile design tokens to CSS variables (tokens/dist/tokens.css) and tailwind-tokens.json
CommandDescription
formatFormat code with Biome
format:checkCheck code formatting without changes
lintLint code with Biome
lint:mdLint Markdown files
lint:md:fixFix Markdown linting issues
checkRun Astro type checking (astro check)
check:typesRun TypeScript type checking only (tsc --noEmit)
qualityRun all quality checks (format, lint, markdown, types)
quality:ciThe full CI quality gate: format:check + lint + lint:md + check + test:unit + agents:check + version:check + og:check + docs:count
CommandDescription
testRun unit tests with Vitest
test:unitRun unit tests once
test:mutateRun Stryker mutation testing against the unit suite
test:e2eRun Playwright end-to-end tests
test:e2e:uiRun E2E tests with UI
test:a11yRun accessibility tests
CommandDescription
docs:countVerify documented counts (ADRs, components, etc.) match the filesystem (CI gate)
roadmap:updateUpdate implementation roadmap status

Documentation syncing is handled from the docs-site repository (its update:adrs and update:versions scripts), not from this project.

CommandDescription
images:analyzeAnalyze image sizes and optimization opportunities
images:gateEnforce the per-image size budget (CI gate)
images:optimizeInteractive image optimization tool
fonts:gateEnforce the font-preload cap (CI gate)
bundle:analyzeAnalyze bundle size and composition
perf:budgetsCheck performance against defined budgets
perf:baselineTrack baseline performance metrics
perf:lighthouseRun Lighthouse performance audit
perf:lighthouse:ciRun Lighthouse for CI (JSON output)
perf:lhciRun Lighthouse CI (lhci autorun)
CommandDescription
design:validateValidate color contrast compliance (WCAG AA)
budgets:validateValidate performance budget overrides
CommandDescription
auditRun security audit on production dependencies
audit:ciRun filtered security audit for CI
CommandDescription
prepareInstall Husky git hooks