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 install
Just build source codes:
npm build
If you want to run webpack-dev-server with HMR(Hot Module Replacement):
npm start
You must install the node-test package before running the test.
https://www.npmjs.com/package/canvas
Run all unit tests once:
npm test
Run all unit tests with watch mode:
npm run tdd
You can use Chrome's Inspect mode to do real-time debugging on your Chrome browser.