Skip to content

jpo/react-minesweeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Minesweeper

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.

Live Demo

https://jpo.github.io/react-minesweeper/

Screenshot

React Minesweeper screenshot

Local Development

npm install
npm run dev

Available Scripts

npm test

npm run build

npm run preview

npm 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.

GitHub Pages

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:

  1. Open the repository settings on GitHub.
  2. Go to Pages.
  3. Set the source to GitHub Actions.

After that, pushing to main will publish the site at the GitHub Pages URL above.

About

A Minesweeper clone built with React

Topics

Resources

Stars

Watchers

Forks

Contributors