spiegel-keyman/developer/js
Marc Durdin 52884c76e4 fix(developer): use var not let in definitions
Fixes #4716.

We still support Chrome 37 on Android 5.0, which does not permit
use of the `let` keyword in normal conditions.
2021-03-18 17:00:12 +11:00
..
libexec docs(developer/compilers): document purpose of create-override-script-regexp 2020-08-26 14:55:21 -06:00
source fix(developer): use var not let in definitions 2021-03-18 17:00:12 +11:00
tests fix(developer): schema conformance for model package compiler 2021-03-01 10:57:49 +11:00
.gitignore [developer] Initial lexical model compiler files (not yet working) 2019-05-08 10:40:46 +10:00
.npmignore change(developer/compilers): addresses PR review 2020-05-29 14:01:45 +07:00
build.sh fix(developer): schema conformance for model package compiler 2021-03-01 10:57:49 +11:00
package-lock.json auto: increment beta version to 14.0.265 2021-03-17 14:02:12 -04:00
package.json auto: increment beta version to 14.0.265 2021-03-17 14:02:12 -04:00
README.md fix(windows): improve version numbers 2020-10-08 09:13:48 +11:00
tsconfig.json fix(common/models): use correct paths for models-types 2020-05-22 11:42:28 -06:00

Keyman Developer

This package provides the following Keyman command line tools:

  • kmlmc — takes lexical model sources and compiles them in to a .js file.
  • kmlmp — uses a .model.kmp file to generate a redistributable lexical model package.
  • kmlmi — merges Keyman lexical model .model_info files.

kmlmc is intended to be used standalone, or as part of a build system. kmlmp is used only by command line tools. kmlmi is used exclusively in the lexical-models repository.

In order to build lexical models, these tools must be built and compiled.

Install

Install kmlmc, kmlmp, and kmlmi globally:

npm install -g @keymanapp/lexical-model-compiler

Usage

To compile a lexical model from its .model.ts source, use kmlmc:

kmlmc my-lexical-model.model.ts --outFile my-lexical-model.js

To see more command line options by using the --help option:

kmlmc --help
kmlmp --help
kmlmi --help

How to build from source

Run build.sh:

./build.sh

How to run the tests

./build.sh -test