Static calculator suite built with Vite + TypeScript + Tailwind, powered by decimal.js for precise arithmetic.
npm install
npm run devThe dev server runs with Vite (default port 5173). Open the UI and switch calculators from the left navigation.
npm run dev– Vite dev servernpm run build– Production build (dist/) plus SPA fallback (dist/404.html)npm run preview– Preview the production buildnpm run test– Run unit tests with Vitest
The repository is wired for GitHub Pages. On push to main, the workflow at .github/workflows/deploy.yml:
- Installs dependencies with
npm ci - Builds the site with Vite
- Copies
dist/index.htmltodist/404.htmlto support deep links - Publishes
dist/to GitHub Pages viaactions/deploy-pages
If you prefer a manual publish, run npm run build and upload the dist/ folder to your static host (or copy to a docs/ folder and enable Pages from docs/).
- Calculations run entirely in the browser; there is no server component.
- History is stored locally in
localStorageundercalc.history.