@keymanapp/kmc-package 19.0.146-alpha → 19.0.151-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
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
# Keyman Developer - kmc-package
|
|
2
|
-
|
|
3
|
-
This package compiles .kps Keyman package source files into binary .kmp Keyman
|
|
4
|
-
package files. It can be used from the command line with
|
|
5
|
-
[@keymanapp/kmc](https://npmjs.com/package/@keymanapp/kmc).
|
|
6
|
-
|
|
7
|
-
Note: .kmp files are .zip files internally.
|
|
8
|
-
|
|
9
|
-
* [API Reference](https://help.keyman.com/developer/current-version/reference/api/kmc-package)
|
|
1
|
+
# Keyman Developer - kmc-package
|
|
2
|
+
|
|
3
|
+
This package compiles .kps Keyman package source files into binary .kmp Keyman
|
|
4
|
+
package files. It can be used from the command line with
|
|
5
|
+
[@keymanapp/kmc](https://npmjs.com/package/@keymanapp/kmc).
|
|
6
|
+
|
|
7
|
+
Note: .kmp files are .zip files internally.
|
|
8
|
+
|
|
9
|
+
* [API Reference](https://help.keyman.com/developer/current-version/reference/api/kmc-package)
|
|
@@ -92,32 +92,32 @@ export class PackageCompilerMessages {
|
|
|
92
92
|
static WARN_VisualKeyboardFileIsInvalid = SevWarn | 0x0026;
|
|
93
93
|
static Warn_VisualKeyboardFileIsInvalid = (o) => m(this.WARN_VisualKeyboardFileIsInvalid, `Visual keyboard file '${def(o.filename)}' is invalid.`);
|
|
94
94
|
static WARN_PackageVersionIsUnrecognizedFormat = SevWarn | 0x0027;
|
|
95
|
-
static Warn_PackageVersionIsUnrecognizedFormat = (o) => m(this.WARN_PackageVersionIsUnrecognizedFormat, `Package version '${def(o.version)}' has an unrecognized format.`, `The format for version numbers should be number[.number[.number]]. Each
|
|
95
|
+
static Warn_PackageVersionIsUnrecognizedFormat = (o) => m(this.WARN_PackageVersionIsUnrecognizedFormat, `Package version '${def(o.version)}' has an unrecognized format.`, `The format for version numbers should be number[.number[.number]]. Each
|
|
96
96
|
number component should be an integer, without leading zeroes.`);
|
|
97
97
|
static ERROR_PackageMustNotContainItself = SevError | 0x0028;
|
|
98
|
-
static Error_PackageMustNotContainItself = (o) => m(this.ERROR_PackageMustNotContainItself, `The package may not include a .kmp file of the same name '${def(o.outputFilename)}'.`, `
|
|
99
|
-
While it is possible for a package file to contain other .kmp package files,
|
|
100
|
-
it is an error for a package file to contain a package with the same name as
|
|
101
|
-
itself.
|
|
102
|
-
|
|
103
|
-
**Note:** it is not recommended to include other package files within a
|
|
104
|
-
package, as the user experience for installation and uninstallation is
|
|
105
|
-
complex, and not consistent across all platforms.
|
|
106
|
-
|
|
107
|
-
**Note**: Nested packages are not checked for validity or whether or not they
|
|
108
|
-
may violate this rule transitively.
|
|
98
|
+
static Error_PackageMustNotContainItself = (o) => m(this.ERROR_PackageMustNotContainItself, `The package may not include a .kmp file of the same name '${def(o.outputFilename)}'.`, `
|
|
99
|
+
While it is possible for a package file to contain other .kmp package files,
|
|
100
|
+
it is an error for a package file to contain a package with the same name as
|
|
101
|
+
itself.
|
|
102
|
+
|
|
103
|
+
**Note:** it is not recommended to include other package files within a
|
|
104
|
+
package, as the user experience for installation and uninstallation is
|
|
105
|
+
complex, and not consistent across all platforms.
|
|
106
|
+
|
|
107
|
+
**Note**: Nested packages are not checked for validity or whether or not they
|
|
108
|
+
may violate this rule transitively.
|
|
109
109
|
`);
|
|
110
110
|
static ERROR_MissingModelId = SevError | 0x0029;
|
|
111
|
-
static Error_MissingModelId = (o) => m(this.ERROR_MissingModelId, `The lexical model at index ${def(o.index)} has a missing or empty ID field.`, `
|
|
112
|
-
Each LexicalModel element must have an ID sub-element and a Languages
|
|
113
|
-
sub-element. The content of the ID sub-element must correspond to the basename
|
|
114
|
-
of a .model.js file inside the Files element.
|
|
111
|
+
static Error_MissingModelId = (o) => m(this.ERROR_MissingModelId, `The lexical model at index ${def(o.index)} has a missing or empty ID field.`, `
|
|
112
|
+
Each LexicalModel element must have an ID sub-element and a Languages
|
|
113
|
+
sub-element. The content of the ID sub-element must correspond to the basename
|
|
114
|
+
of a .model.js file inside the Files element.
|
|
115
115
|
`);
|
|
116
116
|
static ERROR_MissingKeyboardId = SevError | 0x002A;
|
|
117
|
-
static Error_MissingKeyboardId = (o) => m(this.ERROR_MissingKeyboardId, `The keyboard at index ${def(o.index)} has a missing or empty ID field.`, `
|
|
118
|
-
Each Keyboard element must have an ID sub-element sub-element. The content of
|
|
119
|
-
the ID sub-element must correspond to the basename of a keyboard .kmx or .js
|
|
120
|
-
file inside the Files element.
|
|
117
|
+
static Error_MissingKeyboardId = (o) => m(this.ERROR_MissingKeyboardId, `The keyboard at index ${def(o.index)} has a missing or empty ID field.`, `
|
|
118
|
+
Each Keyboard element must have an ID sub-element sub-element. The content of
|
|
119
|
+
the ID sub-element must correspond to the basename of a keyboard .kmx or .js
|
|
120
|
+
file inside the Files element.
|
|
121
121
|
`);
|
|
122
122
|
}
|
|
123
123
|
//# sourceMappingURL=package-compiler-messages.js.map
|
|
@@ -161,12 +161,12 @@ export class WindowsPackageInstallerCompiler {
|
|
|
161
161
|
return zip.generateAsync({ type: 'uint8array', compression: 'DEFLATE' });
|
|
162
162
|
}
|
|
163
163
|
buildSetupInf(sources, kmpJson, kmpFilename, kps) {
|
|
164
|
-
let setupInf = `[Setup]
|
|
165
|
-
Version=${KEYMAN_VERSION.VERSION}
|
|
166
|
-
MSIFileName=${this.callbacks.path.basename(sources.msiFilename)}
|
|
167
|
-
MSIOptions=
|
|
168
|
-
AppName=${sources.appName ?? PRODUCT_NAME}
|
|
169
|
-
License=${this.callbacks.path.basename(sources.licenseFilename)}
|
|
164
|
+
let setupInf = `[Setup]
|
|
165
|
+
Version=${KEYMAN_VERSION.VERSION}
|
|
166
|
+
MSIFileName=${this.callbacks.path.basename(sources.msiFilename)}
|
|
167
|
+
MSIOptions=
|
|
168
|
+
AppName=${sources.appName ?? PRODUCT_NAME}
|
|
169
|
+
License=${this.callbacks.path.basename(sources.licenseFilename)}
|
|
170
170
|
`;
|
|
171
171
|
if (sources.titleImageFilename) {
|
|
172
172
|
setupInf += `TitleImage=${this.callbacks.path.basename(sources.titleImageFilename)}\n`;
|
package/package.json
CHANGED
|
@@ -1,67 +1,68 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@keymanapp/kmc-package",
|
|
3
|
-
"description": "Keyman Developer package compiler",
|
|
4
|
-
"keywords": [
|
|
5
|
-
"keyboard",
|
|
6
|
-
"keyman",
|
|
7
|
-
"unicode"
|
|
8
|
-
],
|
|
9
|
-
"type": "module",
|
|
10
|
-
"exports": {
|
|
11
|
-
".": "./build/src/main.js"
|
|
12
|
-
},
|
|
13
|
-
"files": [
|
|
14
|
-
"/build/src/"
|
|
15
|
-
],
|
|
16
|
-
"scripts": {
|
|
17
|
-
"build": "tsc -b",
|
|
18
|
-
"lint": "eslint .",
|
|
19
|
-
"test": "npm run lint && cd test && tsc -b && cd .. && c8 --reporter=lcov --reporter=text mocha",
|
|
20
|
-
"coverage": "npm test"
|
|
21
|
-
},
|
|
22
|
-
"author": "Marc Durdin <marc@keyman.com> (https://github.com/mcdurdin)",
|
|
23
|
-
"contributors": [
|
|
24
|
-
"Eddie Antonio Santos <Eddie.Santos@nrc-cnrc.gc.ca>",
|
|
25
|
-
"Joshua Horton"
|
|
26
|
-
],
|
|
27
|
-
"license": "MIT",
|
|
28
|
-
"bugs": {
|
|
29
|
-
"url": "https://github.com/keymanapp/keyman/issues"
|
|
30
|
-
},
|
|
31
|
-
"dependencies": {
|
|
32
|
-
"@keymanapp/common-types": "19.0.
|
|
33
|
-
"@keymanapp/developer-utils": "19.0.
|
|
34
|
-
"jszip": "^3.7.0",
|
|
35
|
-
"marked": "^7.0.0"
|
|
36
|
-
},
|
|
37
|
-
"devDependencies": {
|
|
38
|
-
"@keymanapp/developer-test-helpers": "19.0.
|
|
39
|
-
"@types/mocha": "^5.2.7",
|
|
40
|
-
"@types/node": "^20.4.1",
|
|
41
|
-
"c8": "^7.12.0",
|
|
42
|
-
"chalk": "^2.4.2",
|
|
43
|
-
"typescript": "^5.4.5"
|
|
44
|
-
},
|
|
45
|
-
"mocha": {
|
|
46
|
-
"spec": "build/test/**/*.tests.js",
|
|
47
|
-
"require": [
|
|
48
|
-
"source-map-support/register"
|
|
49
|
-
]
|
|
50
|
-
},
|
|
51
|
-
"c8": {
|
|
52
|
-
"all": true,
|
|
53
|
-
"src": [
|
|
54
|
-
"src/"
|
|
55
|
-
],
|
|
56
|
-
"exclude-after-remap": true,
|
|
57
|
-
"exclude": [
|
|
58
|
-
"test/",
|
|
59
|
-
"src/main.ts"
|
|
60
|
-
]
|
|
61
|
-
},
|
|
62
|
-
"repository": {
|
|
63
|
-
"type": "git",
|
|
64
|
-
"url": "git+https://github.com/keymanapp/keyman.git"
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@keymanapp/kmc-package",
|
|
3
|
+
"description": "Keyman Developer package compiler",
|
|
4
|
+
"keywords": [
|
|
5
|
+
"keyboard",
|
|
6
|
+
"keyman",
|
|
7
|
+
"unicode"
|
|
8
|
+
],
|
|
9
|
+
"type": "module",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": "./build/src/main.js"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"/build/src/"
|
|
15
|
+
],
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build": "tsc -b",
|
|
18
|
+
"lint": "eslint .",
|
|
19
|
+
"test": "npm run lint && cd test && tsc -b && cd .. && c8 --reporter=lcov --reporter=text mocha",
|
|
20
|
+
"coverage": "npm test"
|
|
21
|
+
},
|
|
22
|
+
"author": "Marc Durdin <marc@keyman.com> (https://github.com/mcdurdin)",
|
|
23
|
+
"contributors": [
|
|
24
|
+
"Eddie Antonio Santos <Eddie.Santos@nrc-cnrc.gc.ca>",
|
|
25
|
+
"Joshua Horton"
|
|
26
|
+
],
|
|
27
|
+
"license": "MIT",
|
|
28
|
+
"bugs": {
|
|
29
|
+
"url": "https://github.com/keymanapp/keyman/issues"
|
|
30
|
+
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@keymanapp/common-types": "19.0.151-alpha",
|
|
33
|
+
"@keymanapp/developer-utils": "19.0.151-alpha",
|
|
34
|
+
"jszip": "^3.7.0",
|
|
35
|
+
"marked": "^7.0.0"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@keymanapp/developer-test-helpers": "19.0.151-alpha",
|
|
39
|
+
"@types/mocha": "^5.2.7",
|
|
40
|
+
"@types/node": "^20.4.1",
|
|
41
|
+
"c8": "^7.12.0",
|
|
42
|
+
"chalk": "^2.4.2",
|
|
43
|
+
"typescript": "^5.4.5"
|
|
44
|
+
},
|
|
45
|
+
"mocha": {
|
|
46
|
+
"spec": "build/test/**/*.tests.js",
|
|
47
|
+
"require": [
|
|
48
|
+
"source-map-support/register"
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
"c8": {
|
|
52
|
+
"all": true,
|
|
53
|
+
"src": [
|
|
54
|
+
"src/"
|
|
55
|
+
],
|
|
56
|
+
"exclude-after-remap": true,
|
|
57
|
+
"exclude": [
|
|
58
|
+
"test/",
|
|
59
|
+
"src/main.ts"
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
"repository": {
|
|
63
|
+
"type": "git",
|
|
64
|
+
"url": "git+https://github.com/keymanapp/keyman.git",
|
|
65
|
+
"directory": "developer/src/kmc-package"
|
|
66
|
+
},
|
|
67
|
+
"version": "19.0.151-alpha"
|
|
68
|
+
}
|