Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 792 Bytes

CONTRIBUTING.md

File metadata and controls

31 lines (22 loc) · 792 Bytes

Setup

Fork the repository, clone it then:

  1. cd TheaterJS
  2. npm install

Tasks

TheaterJS' build workflow is based on npm scripts and webpack:

  • npm run build - build the dist version of TheaterJS.
  • npm run dev - watch for changes and build the dist version when needed.
  • npm run lint - lint js files using standard.
  • npm run test - run the tests.

Note: there's a git pre-commit hook that's going to run the tests when using git commit.

Adding a keyboard

The keyboards are implemented in src/keyboards.json. A mapped keyboard is just a list of characters, ordered after their "physical" equivalent. So for example, the english keyboard (aka qwerty) looks like this:

[
  "qwertyuiop",
  "asdfghjkl",
  "zxcvbnm"
]