No description
- JavaScript 78.2%
- CSS 20.9%
- HTML 0.5%
- Dockerfile 0.4%
Travis's catch. `npm test` is a bare `vitest run` with no pretest build, so reading whatever dist/ happens to be on disk is the DEFAULT state, not an edge case: broken source plus an old bundle reads green. That is the same false-green class the built-output check exists to prevent. Nettie hit the identical failure on dashboard-network's font assertion - she re-broke the import order to test her guard and it passed, against a dist/ built before her edit - and Agnetha wrote this mtime comparison for it. Same pattern reused rather than a second one invented. Compares the newest build input against the newest built asset, excluding test files, which live under src/ but do not invalidate dist/. Proven to fire: weakening the kill in source without rebuilding now fails 3 assertions including this one, with "dist/ is 48s older than the newest build input". Rebuilt, it goes green. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| public | ||
| src | ||
| .dockerignore | ||
| .env.example | ||
| .gitignore | ||
| .oxlintrc.json | ||
| Dockerfile | ||
| index.html | ||
| nginx.conf | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| vite.config.js | ||
React + Vite
This template provides a minimal setup to get React working in Vite with HMR and some Oxlint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Oxc
- @vitejs/plugin-react-swc uses SWC
React Compiler
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.
Expanding the Oxlint configuration
If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the TS template for information on how to integrate TypeScript and Oxlint's TypeScript related rules in your project.