This project is a refreshed clone of the classic Minesweeper game built with React. The game logic still lives in a small, well-tested module, while the UI has been updated with a more modern layout and a GitHub Pages deployment flow that works directly from this repository.
https://jpo.github.io/react-minesweeper/
npm install
npm run devnpm test
npm run build
npm run previewnpm run dev launches the Vite development server, npm test runs the Vitest
suite, npm run build creates the production bundle in dist/, and
npm run preview serves the production build locally.
This repo now includes .github/workflows/deploy.yml,
which builds the app and deploys the dist/ directory to GitHub Pages on every
push to main.
To enable publishing on GitHub:
- Open the repository settings on GitHub.
- Go to Pages.
- Set the source to GitHub Actions.
After that, pushing to main will publish the site at the GitHub Pages URL above.
