mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-16 04:37:41 +00:00
Merge pull request #7112 from keymanapp/revert-7110-feat/developer/ldml-constants-ts-module
Revert "feat(core): turn @keymanapp/ldml-keyboard-constants into a module 🙀"
This commit is contained in:
commit
b20bf55fee
9 changed files with 5 additions and 65 deletions
1
core/include/ldml/.gitignore
vendored
1
core/include/ldml/.gitignore
vendored
|
|
@ -1 +0,0 @@
|
|||
ldml-const-builder/
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
{
|
||||
"name": "@keymanapp/ldml-keyboard-constants",
|
||||
"description": "Keyman LDML keyboard constants",
|
||||
"keywords": [
|
||||
"keyboard",
|
||||
"keyman",
|
||||
"ldml",
|
||||
"unicode"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "build/keyboardprocessor_ldml.js",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/keymanapp/keyman.git"
|
||||
}
|
||||
}
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
{
|
||||
"extends": "../../../tsconfig-base.json",
|
||||
"compilerOptions": {
|
||||
"composite": true,
|
||||
"declaration": true,
|
||||
"module": "CommonJS",
|
||||
"moduleResolution": "node",
|
||||
"rootDir": ".",
|
||||
"outDir": "ldml-const-builder/",
|
||||
},
|
||||
"exclude": [
|
||||
"node_modules"
|
||||
],
|
||||
"files": [
|
||||
"keyboardprocessor_ldml.ts",
|
||||
"ldml-const-builder.ts"
|
||||
]
|
||||
}
|
||||
|
|
@ -5,13 +5,13 @@
|
|||
"declaration": true,
|
||||
"module": "CommonJS",
|
||||
"moduleResolution": "node",
|
||||
"rootDir": ".",
|
||||
"outDir": "build/",
|
||||
},
|
||||
"exclude": [
|
||||
"node_modules"
|
||||
],
|
||||
"files": [
|
||||
"keyboardprocessor_ldml.ts"
|
||||
"keyboardprocessor_ldml.ts",
|
||||
"ldml-const-builder.ts"
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -36,13 +36,13 @@ fi
|
|||
|
||||
if builder_has_action build; then
|
||||
# Generate index.ts
|
||||
npx tsc -b ../../include/ldml/tsconfig.build.json
|
||||
npx tsc -b ../../include/ldml/
|
||||
|
||||
builder_report success build
|
||||
fi
|
||||
|
||||
if builder_has_action run; then
|
||||
node ../../include/ldml/ldml-const-builder/ldml-const-builder.js > ${KBP_LDML_H_FILE}
|
||||
node ../../include/ldml/build/core/include/ldml/ldml-const-builder.js > ${KBP_LDML_H_FILE}
|
||||
echo "Updated ${KBP_LDML_H_FILE}"
|
||||
|
||||
builder_report success run
|
||||
|
|
|
|||
|
|
@ -1,11 +0,0 @@
|
|||
// import * as r from 'restructure';
|
||||
|
||||
import { constants } from '@keymanapp/ldml-keyboard-constants';
|
||||
|
||||
// Uses defns from ...
|
||||
|
||||
export default class KMXPlusFile {
|
||||
constructor() {
|
||||
console.log(constants);
|
||||
}
|
||||
}
|
||||
|
|
@ -22,6 +22,5 @@
|
|||
],
|
||||
"references": [
|
||||
{ "path": "../../../common/web/keyman-version" },
|
||||
{ "path": "../../../core/include/ldml/"}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
14
package-lock.json
generated
14
package-lock.json
generated
|
|
@ -8,7 +8,6 @@
|
|||
"workspaces": [
|
||||
"resources/gosh",
|
||||
"resources/build/version",
|
||||
"core/include/ldml",
|
||||
"developer/src/kmlmc",
|
||||
"developer/src/kmldmlc",
|
||||
"developer/src/server",
|
||||
|
|
@ -377,10 +376,6 @@
|
|||
"integrity": "sha512-B9EoJFjhqcQ9OmQrNorItO+OwEOORNn3S31WuiHvZY/dm9ajkB7AKD/8toessEtHHNL+58jofbq7hMMY9v4yig==",
|
||||
"dev": true
|
||||
},
|
||||
"core/include/ldml": {
|
||||
"name": "@keymanapp/ldml-keyboard-constants",
|
||||
"license": "MIT"
|
||||
},
|
||||
"developer/js": {
|
||||
"name": "@keymanapp/lexical-model-compiler",
|
||||
"extraneous": true,
|
||||
|
|
@ -1062,10 +1057,6 @@
|
|||
"resolved": "developer/src/kmldmlc",
|
||||
"link": true
|
||||
},
|
||||
"node_modules/@keymanapp/ldml-keyboard-constants": {
|
||||
"resolved": "core/include/ldml",
|
||||
"link": true
|
||||
},
|
||||
"node_modules/@keymanapp/lexical-model-compiler": {
|
||||
"resolved": "developer/src/kmlmc",
|
||||
"link": true
|
||||
|
|
@ -7744,7 +7735,7 @@
|
|||
"chai": "^4.3.4",
|
||||
"chalk": "^2.4.2",
|
||||
"commander": "^3.0.0",
|
||||
"crc-32": "^1.2.2",
|
||||
"crc-32": "*",
|
||||
"mocha": "^8.4.0",
|
||||
"restructure": "^3.0.0",
|
||||
"ts-node": "^9.1.1",
|
||||
|
|
@ -7816,9 +7807,6 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"@keymanapp/ldml-keyboard-constants": {
|
||||
"version": "file:core/include/ldml"
|
||||
},
|
||||
"@keymanapp/lexical-model-compiler": {
|
||||
"version": "file:developer/src/kmlmc",
|
||||
"requires": {
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@
|
|||
"workspaces": [
|
||||
"resources/gosh",
|
||||
"resources/build/version",
|
||||
"core/include/ldml",
|
||||
"developer/src/kmlmc",
|
||||
"developer/src/kmldmlc",
|
||||
"developer/src/server",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue