Skip to content

Latest commit

 

History

History
59 lines (38 loc) · 984 Bytes

File metadata and controls

59 lines (38 loc) · 984 Bytes

Huntris

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

Installation

Clone this repository,

git clone https://github.com/CoderK/Huntris.git

and then install dependencies.

cd Huntris && npm install

Build

Just build source codes:

npm build

If you want to run webpack-dev-server with HMR(Hot Module Replacement):

npm start

Test

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.