react-pacman
v0.0.4
Published
Pacman game written as a React component
Downloads
5,237
Readme
react-pacman
Pacman game written as a React component
Original game repo: https://github.com/felamaslen/pacman-react
This package contains some dependency updates for the game
Dependencies
To build this project, run:
npm install && npm run build
Note that rsync
is required.
Testing
Tests are written in the Mocha framework. To run them:
npm test
Use as a dependency
To use react-pacman
as a dependency, run (in your project)
npm install -S react-pacman
Then you can do something like the following:
import { render } from 'react-dom';
import Pacman from 'react-pacman';
render(<Pacman />, document.getElementById('root'));
Note that you will need a loader to handle sass files with an scss
extension. Webpack with sass-loader
should suffice.
Development
To run a development server:
npm run dev
This has hot module replacement so you can work on files in the src/Pacman
directory and they should be updated on the fly.