spiegel-keyman/common/core/web/input-processor
2020-04-24 14:35:51 +07:00
..
src fix(web): proper location for testing resource dupe 2020-04-24 14:35:51 +07:00
.gitignore change(web/engine): splits off input-processor into own module 2020-04-24 14:35:48 +07:00
package-lock.json change(web/engine): splits off input-processor into own module 2020-04-24 14:35:48 +07:00
package.json change(web/engine): splits off input-processor into own module 2020-04-24 14:35:48 +07:00
README.md change(web/engine): splits off input-processor into own module 2020-04-24 14:35:48 +07:00

Keyman: Keyboard Processor Module

The Original Code is (C) 2017-2020 SIL International

The Keyboard Processor module is an internal component of KeymanWeb, seen within this repo at /web/.

Minimum Compilation Requirements

  • A local installation of Node.js v8.9+.
    • Builds will call npm install to automatically install further necessary build dependencies.

    • Linux users can run the following to update to LTS version of nodejs

sudo apt-get install python-software-properties
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install nodejs
  • A globally-installed lerna package (npm install -g lerna)
    • Builds will call lerna bootstrap to setup and manage all needed npm links for within-repo dependencies.

build.sh options:

The build script may be found at src/build.sh.

  • // TODO: enumerate build options

Unit Testing

Before running unit tests on the Keyboard Processor module, first run ./build.sh according to the instructions above.

Once the build is complete, running npm test will run the unit testing suite on your local machine in-browser. Alternatively, see unit_tests/test.sh, which the former command executes.