Tetris developed with Modern JavaScript and HTML5 Canvas. This project consists of the latest JavaScript development environment below:
- es2015 with babel + decorator legacy
- webpack + npm
- mocha + chai
- eslint with airbnb base
Clone this repository,
git clone https://github.com/CoderK/Huntris.git
and then install dependencies.
cd Huntris && npm installJust build source codes:
npm buildIf you want to run webpack-dev-server with HMR(Hot Module Replacement):
npm startYou must install the node-test package before running the test.
https://www.npmjs.com/package/canvasRun all unit tests once:
npm testRun all unit tests with watch mode:
npm run tddYou can use Chrome's Inspect mode to do real-time debugging on your Chrome browser.