@keymanapp/kmc 17.0.60-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +96 -0
- package/build/cjs-src/kmc.cjs +183594 -0
- package/build/cjs-src/kmlmc.cjs +154539 -0
- package/build/cjs-src/kmlmi.cjs +17266 -0
- package/build/cjs-src/kmlmp.cjs +17210 -0
- package/build/src/activities/buildKmnKeyboard.d.ts +3 -0
- package/build/src/activities/buildKmnKeyboard.d.ts.map +1 -0
- package/build/src/activities/buildKmnKeyboard.js +45 -0
- package/build/src/activities/buildKmnKeyboard.js.map +1 -0
- package/build/src/activities/buildLdmlKeyboard.d.ts +3 -0
- package/build/src/activities/buildLdmlKeyboard.d.ts.map +1 -0
- package/build/src/activities/buildLdmlKeyboard.js +72 -0
- package/build/src/activities/buildLdmlKeyboard.js.map +1 -0
- package/build/src/activities/buildModel.d.ts +3 -0
- package/build/src/activities/buildModel.d.ts.map +1 -0
- package/build/src/activities/buildModel.js +22 -0
- package/build/src/activities/buildModel.js.map +1 -0
- package/build/src/activities/buildPackage.d.ts +3 -0
- package/build/src/activities/buildPackage.d.ts.map +1 -0
- package/build/src/activities/buildPackage.js +24 -0
- package/build/src/activities/buildPackage.js.map +1 -0
- package/build/src/activities/buildProject.d.ts +3 -0
- package/build/src/activities/buildProject.d.ts.map +1 -0
- package/build/src/activities/buildProject.js +114 -0
- package/build/src/activities/buildProject.js.map +1 -0
- package/build/src/activities/buildTestData.d.ts +3 -0
- package/build/src/activities/buildTestData.d.ts.map +1 -0
- package/build/src/activities/buildTestData.js +31 -0
- package/build/src/activities/buildTestData.js.map +1 -0
- package/build/src/commands/build.d.ts +8 -0
- package/build/src/commands/build.d.ts.map +1 -0
- package/build/src/commands/build.js +50 -0
- package/build/src/commands/build.js.map +1 -0
- package/build/src/commands/buildTestData.d.ts +3 -0
- package/build/src/commands/buildTestData.d.ts.map +1 -0
- package/build/src/commands/buildTestData.js +9 -0
- package/build/src/commands/buildTestData.js.map +1 -0
- package/build/src/kmc.d.ts +6 -0
- package/build/src/kmc.d.ts.map +1 -0
- package/build/src/kmc.js +40 -0
- package/build/src/kmc.js.map +1 -0
- package/build/src/kmlmc.d.ts +6 -0
- package/build/src/kmlmc.d.ts.map +1 -0
- package/build/src/kmlmc.js +49 -0
- package/build/src/kmlmc.js.map +1 -0
- package/build/src/kmlmi.d.ts +6 -0
- package/build/src/kmlmi.d.ts.map +1 -0
- package/build/src/kmlmi.js +64 -0
- package/build/src/kmlmi.js.map +1 -0
- package/build/src/kmlmp.d.ts +6 -0
- package/build/src/kmlmp.d.ts.map +1 -0
- package/build/src/kmlmp.js +46 -0
- package/build/src/kmlmp.js.map +1 -0
- package/build/src/util/NodeCompilerCallbacks.d.ts +14 -0
- package/build/src/util/NodeCompilerCallbacks.d.ts.map +1 -0
- package/build/src/util/NodeCompilerCallbacks.js +41 -0
- package/build/src/util/NodeCompilerCallbacks.js.map +1 -0
- package/build/src/util/getDeveloperBinPath.d.ts +9 -0
- package/build/src/util/getDeveloperBinPath.d.ts.map +1 -0
- package/build/src/util/getDeveloperBinPath.js +36 -0
- package/build/src/util/getDeveloperBinPath.js.map +1 -0
- package/build/src/util/kpj.schema.json +127 -0
- package/build/src/util/kvks.schema.json +182 -0
- package/build/src/util/ldml-keyboard.schema.json +634 -0
- package/build/src/util/ldml-keyboardtest.schema.json +221 -0
- package/build/src/util/sysexits.d.ts +9 -0
- package/build/src/util/sysexits.d.ts.map +1 -0
- package/build/src/util/sysexits.js +3 -0
- package/build/src/util/sysexits.js.map +1 -0
- package/package.json +73 -0
package/README.md
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
Keyman Developer - Next Generation Compiler
|
|
2
|
+
================
|
|
3
|
+
|
|
4
|
+
This package provides the following Keyman **command line tools**:
|
|
5
|
+
|
|
6
|
+
- `kmc` — takes **LDML Keyboard .xml sources** and compiles them in to a
|
|
7
|
+
KMXPlus **.kmx** file.
|
|
8
|
+
- `kmlmc` — takes **lexical model sources** and compiles them in to a **.js**
|
|
9
|
+
file.
|
|
10
|
+
- `kmlmp` — uses a `.model.kmp` file to generate a redistributable **lexical
|
|
11
|
+
model package**.
|
|
12
|
+
- `kmlmi` — merges Keyman lexical model `.model_info` files.
|
|
13
|
+
|
|
14
|
+
`kmlmc` is intended to be used standalone, or as part of a build system. `kmlmp`
|
|
15
|
+
is used only by command line tools. `kmlmi` is used exclusively in the
|
|
16
|
+
[lexical-models repository][lexical models].
|
|
17
|
+
|
|
18
|
+
Note: `kmc` will in the future replace `kmlmc`, `kmlmp`, and `kmlmi`.
|
|
19
|
+
|
|
20
|
+
In order to build [lexical models][], these tools must be built and compiled.
|
|
21
|
+
|
|
22
|
+
[lexical models]: https://github.com/keymanapp/lexical-models
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
Install
|
|
26
|
+
-------
|
|
27
|
+
|
|
28
|
+
Install `kmc` globally:
|
|
29
|
+
|
|
30
|
+
npm install -g @keymanapp/kmc
|
|
31
|
+
|
|
32
|
+
kmc Usage
|
|
33
|
+
---------
|
|
34
|
+
|
|
35
|
+
To compile an LDML keyboard from its `.xml` source, use `kmc`:
|
|
36
|
+
|
|
37
|
+
kmc build my-keyboard.xml --outFile my-keyboard.kmx
|
|
38
|
+
|
|
39
|
+
To see more command line options by using the `--help` option:
|
|
40
|
+
|
|
41
|
+
kmc --help
|
|
42
|
+
|
|
43
|
+
kmlmc Usage
|
|
44
|
+
-----------
|
|
45
|
+
|
|
46
|
+
To compile a lexical model from its `.model.ts` source, use `kmlmc`:
|
|
47
|
+
|
|
48
|
+
kmlmc my-lexical-model.model.ts --outFile my-lexical-model.js
|
|
49
|
+
|
|
50
|
+
To see more command line options by using the `--help` option:
|
|
51
|
+
|
|
52
|
+
kmlmc --help
|
|
53
|
+
kmlmp --help
|
|
54
|
+
kmlmi --help
|
|
55
|
+
|
|
56
|
+
How to build from source
|
|
57
|
+
------------------------
|
|
58
|
+
|
|
59
|
+
Run `build.sh`:
|
|
60
|
+
|
|
61
|
+
./build.sh configure build
|
|
62
|
+
|
|
63
|
+
or (less preferably -- build.sh is more efficient):
|
|
64
|
+
|
|
65
|
+
nmake configure build
|
|
66
|
+
|
|
67
|
+
Once you have `configure`d once, you should not normally need to do it again
|
|
68
|
+
unless dependencies change or you clean the build folder. `./build.sh` without
|
|
69
|
+
parameters will do the default action, which is `build`.
|
|
70
|
+
|
|
71
|
+
TODO: Note that kmc currently depends on kmc-* to have been configured; while
|
|
72
|
+
the build of kmc will do the typescript component of the build, it will not be
|
|
73
|
+
able to do any other build steps, so you may wish to build each of the
|
|
74
|
+
components separately, one time.
|
|
75
|
+
|
|
76
|
+
How to run the tests
|
|
77
|
+
--------------------
|
|
78
|
+
|
|
79
|
+
./build.sh test
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
How to prepare bundling for installation
|
|
83
|
+
----------------------------------------
|
|
84
|
+
|
|
85
|
+
./build.sh bundle --build-path <temp_path>
|
|
86
|
+
|
|
87
|
+
The temp_path must be a path outside the repository to avoid npm getting
|
|
88
|
+
confused by the root package.json. This is called by inst/download.in.mak
|
|
89
|
+
normally when building the Keyman Developer installer.
|
|
90
|
+
|
|
91
|
+
How to publish to NPM
|
|
92
|
+
---------------------
|
|
93
|
+
|
|
94
|
+
./build.sh publish [--dry-run]
|
|
95
|
+
|
|
96
|
+
Publishes the current release to NPM. This should only be run from CI.
|