spiegel-keyman/developer/js
2020-11-26 13:01:12 -05:00
..
libexec docs(developer/compilers): document purpose of create-override-script-regexp 2020-08-26 14:55:21 -06:00
source chore(common/models/types): CasingEnum -> CasingForm 2020-11-11 08:55:26 +07:00
tests chore(common/models/types): CasingEnum -> CasingForm 2020-11-11 08:55:26 +07: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 chore: tweaks to script 2020-10-07 14:25:29 +11:00
package-lock.json auto: increment master version to 14.0.191 2020-11-26 13:01:12 -05:00
package.json auto: increment master version to 14.0.191 2020-11-26 13:01:12 -05: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