@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.
Files changed (70) hide show
  1. package/README.md +96 -0
  2. package/build/cjs-src/kmc.cjs +183594 -0
  3. package/build/cjs-src/kmlmc.cjs +154539 -0
  4. package/build/cjs-src/kmlmi.cjs +17266 -0
  5. package/build/cjs-src/kmlmp.cjs +17210 -0
  6. package/build/src/activities/buildKmnKeyboard.d.ts +3 -0
  7. package/build/src/activities/buildKmnKeyboard.d.ts.map +1 -0
  8. package/build/src/activities/buildKmnKeyboard.js +45 -0
  9. package/build/src/activities/buildKmnKeyboard.js.map +1 -0
  10. package/build/src/activities/buildLdmlKeyboard.d.ts +3 -0
  11. package/build/src/activities/buildLdmlKeyboard.d.ts.map +1 -0
  12. package/build/src/activities/buildLdmlKeyboard.js +72 -0
  13. package/build/src/activities/buildLdmlKeyboard.js.map +1 -0
  14. package/build/src/activities/buildModel.d.ts +3 -0
  15. package/build/src/activities/buildModel.d.ts.map +1 -0
  16. package/build/src/activities/buildModel.js +22 -0
  17. package/build/src/activities/buildModel.js.map +1 -0
  18. package/build/src/activities/buildPackage.d.ts +3 -0
  19. package/build/src/activities/buildPackage.d.ts.map +1 -0
  20. package/build/src/activities/buildPackage.js +24 -0
  21. package/build/src/activities/buildPackage.js.map +1 -0
  22. package/build/src/activities/buildProject.d.ts +3 -0
  23. package/build/src/activities/buildProject.d.ts.map +1 -0
  24. package/build/src/activities/buildProject.js +114 -0
  25. package/build/src/activities/buildProject.js.map +1 -0
  26. package/build/src/activities/buildTestData.d.ts +3 -0
  27. package/build/src/activities/buildTestData.d.ts.map +1 -0
  28. package/build/src/activities/buildTestData.js +31 -0
  29. package/build/src/activities/buildTestData.js.map +1 -0
  30. package/build/src/commands/build.d.ts +8 -0
  31. package/build/src/commands/build.d.ts.map +1 -0
  32. package/build/src/commands/build.js +50 -0
  33. package/build/src/commands/build.js.map +1 -0
  34. package/build/src/commands/buildTestData.d.ts +3 -0
  35. package/build/src/commands/buildTestData.d.ts.map +1 -0
  36. package/build/src/commands/buildTestData.js +9 -0
  37. package/build/src/commands/buildTestData.js.map +1 -0
  38. package/build/src/kmc.d.ts +6 -0
  39. package/build/src/kmc.d.ts.map +1 -0
  40. package/build/src/kmc.js +40 -0
  41. package/build/src/kmc.js.map +1 -0
  42. package/build/src/kmlmc.d.ts +6 -0
  43. package/build/src/kmlmc.d.ts.map +1 -0
  44. package/build/src/kmlmc.js +49 -0
  45. package/build/src/kmlmc.js.map +1 -0
  46. package/build/src/kmlmi.d.ts +6 -0
  47. package/build/src/kmlmi.d.ts.map +1 -0
  48. package/build/src/kmlmi.js +64 -0
  49. package/build/src/kmlmi.js.map +1 -0
  50. package/build/src/kmlmp.d.ts +6 -0
  51. package/build/src/kmlmp.d.ts.map +1 -0
  52. package/build/src/kmlmp.js +46 -0
  53. package/build/src/kmlmp.js.map +1 -0
  54. package/build/src/util/NodeCompilerCallbacks.d.ts +14 -0
  55. package/build/src/util/NodeCompilerCallbacks.d.ts.map +1 -0
  56. package/build/src/util/NodeCompilerCallbacks.js +41 -0
  57. package/build/src/util/NodeCompilerCallbacks.js.map +1 -0
  58. package/build/src/util/getDeveloperBinPath.d.ts +9 -0
  59. package/build/src/util/getDeveloperBinPath.d.ts.map +1 -0
  60. package/build/src/util/getDeveloperBinPath.js +36 -0
  61. package/build/src/util/getDeveloperBinPath.js.map +1 -0
  62. package/build/src/util/kpj.schema.json +127 -0
  63. package/build/src/util/kvks.schema.json +182 -0
  64. package/build/src/util/ldml-keyboard.schema.json +634 -0
  65. package/build/src/util/ldml-keyboardtest.schema.json +221 -0
  66. package/build/src/util/sysexits.d.ts +9 -0
  67. package/build/src/util/sysexits.d.ts.map +1 -0
  68. package/build/src/util/sysexits.js +3 -0
  69. package/build/src/util/sysexits.js.map +1 -0
  70. 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.