mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-05 23:27:40 +00:00
Bumps [nanoid](https://github.com/ai/nanoid) and [mocha](https://github.com/mochajs/mocha). These dependencies needed to be updated together. Removes `nanoid` Updates `mocha` from 8.4.0 to 10.0.0 - [Release notes](https://github.com/mochajs/mocha/releases) - [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md) - [Commits](https://github.com/mochajs/mocha/compare/v8.4.0...v10.0.0) --- updated-dependencies: - dependency-name: nanoid dependency-type: indirect - dependency-name: mocha dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> |
||
|---|---|---|
| .. | ||
| libexec | ||
| source | ||
| tests | ||
| .gitignore | ||
| .npmignore | ||
| build.sh | ||
| bundle.sh | ||
| Makefile | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
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.kmpfile to generate a redistributable lexical model package.kmlmi— merges Keyman lexical model.model_infofiles.
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