Skip to content

Commit

Permalink
Merge pull request #12382 from keymanapp/refactor/web/12133_modelsTem…
Browse files Browse the repository at this point in the history
…plates

refactor(web): move `model/templates` to `web/src/engine/predictive/text` 🏗️
  • Loading branch information
ermshiperete authored Sep 11, 2024
2 parents 431c151 + cc21dda commit fe63af0
Show file tree
Hide file tree
Showing 29 changed files with 35 additions and 35 deletions.
2 changes: 1 addition & 1 deletion .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ common/:
- resources/**

common/models/: common/models/**
common/models/templates/: common/models/templates/**
common/models/templates/: web/src/engine/predictive-text/templates/**
common/models/wordbreakers/: common/models/wordbreakers/**

common/resources/: resources/**
Expand Down
2 changes: 1 addition & 1 deletion developer/src/kmc-model/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ THIS_SCRIPT="$(readlink -f "${BASH_SOURCE[0]}")"
builder_describe "Keyman kmc Lexical Model Compiler module" \
"@/common/web/keyman-version" \
"@/developer/src/common/web/test-helpers" \
"@/common/models/templates test" \
"@/web/src/engine/predictive-text/templates/ test" \
"clean" \
"configure" \
"build" \
Expand Down
40 changes: 20 additions & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"paths": {
"@keymanapp/common-types": ["./common/web/types/src/main"],
"@keymanapp/keyman": ["./web" ],
"@keymanapp/models-templates": ["./common/models/templates"],
"@keymanapp/models-templates": ["./web/src/engine/predictive-text/templates/"],
"@keymanapp/models-wordbreakers": ["./common/models/wordbreakers"],
"@keymanapp/web-utils": ["./common/web/utils"],
"@keymanapp/lm-message-types": ["./web/src/engine/predictive-text/types"],
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"references": [
{ "path": "./core/include/ldml/tsconfig.json" },

{ "path": "./common/models/templates/tsconfig.json" },
{ "path": "./cweb/src/engine/predictive-text/templates/tsconfig.json" },
{ "path": "./common/models/wordbreakers/tsconfig.json" },
{ "path": "./common/tools/hextobin/" },

Expand Down
2 changes: 1 addition & 1 deletion web/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ graph TD;
WebUtils["@keymanapp/web-utils<br>(/common/web/utils)"];
KeyboardSpec---->WebUtils;
Wordbreakers["@keymanapp/models-wordbreakers<br>(/common/models/wordbreakers)"];
Models["@keymanapp/models-templates<br>(/common/models/templates)"];
Models["@keymanapp/models-templates<br>(/web/src/engine/predictive-text/templates/)"];
Models-->WebUtils;
LMWorker["@keymanapp/lm-worker<br>(/web/src/engine/predictive-text/worker-thread)"];
LMWorker-->Models;
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
## START STANDARD BUILD SCRIPT INCLUDE
# adjust relative paths as necessary
THIS_SCRIPT="$(readlink -f "${BASH_SOURCE[0]}")"
. "$(dirname "$THIS_SCRIPT")/../../../resources/build/builder.inc.sh"
. "$(dirname "$THIS_SCRIPT")/../../../../../resources/build/builder.inc.sh"
## END STANDARD BUILD SCRIPT INCLUDE

. "$KEYMAN_ROOT/resources/shellHelperFunctions.sh"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../tsconfig.kmw-worker-base.json",
"extends": "../../../../tsconfig.base.json",
"compilerOptions": {
"strict": true,
"baseUrl": "./",
Expand All @@ -8,9 +8,9 @@
"rootDir": "./src"
},
"references": [
{ "path": "../../web/types" },
{ "path": "../../web/utils" },
{ "path": "../../models/wordbreakers" }
{ "path": "../../../../../common/web/types" },
{ "path": "../../../../../common/web/utils" },
{ "path": "../../../../../common/models/wordbreakers" }
],
"include": [
"src/**/*.ts"
Expand Down
6 changes: 3 additions & 3 deletions web/src/engine/predictive-text/worker-main/unit_tests/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ if builder_start_action test:libraries; then
echo "### Running $(builder_term common/models/wordbreakers) tests"
"$KEYMAN_ROOT/common/models/wordbreakers/build.sh" test $TEST_OPTS

pushd "$KEYMAN_ROOT/common/models/templates"
pushd "$KEYMAN_ROOT/web/src/engine/predictive-text/templates/"
echo
echo "### Running $(builder_term common/models/templates) tests"
"$KEYMAN_ROOT/common/models/templates/build.sh" test $TEST_OPTS
echo "### Running $(builder_term web/src/engine/predictive-text/templates/) tests"
"$KEYMAN_ROOT/web/src/engine/predictive-text/templates/build.sh" test $TEST_OPTS
popd

pushd "$KEYMAN_ROOT/web/src/engine/predictive-text/worker-thread"
Expand Down
2 changes: 1 addition & 1 deletion web/src/engine/predictive-text/worker-thread/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ builder_describe \
"@/common/web/keyman-version" \
"@/common/web/es-bundling" \
"@/common/models/wordbreakers" \
"@/common/models/templates" \
"@/web/src/engine/predictive-text/templates" \
configure clean build test --ci

builder_describe_outputs \
Expand Down
2 changes: 1 addition & 1 deletion web/src/engine/predictive-text/worker-thread/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
// modules
{ "path": "../../../../../common/web/keyman-version" },
{ "path": "../../../../../common/web/utils" },
{ "path": "../../../../../common/models/templates" },
{ "path": "../templates" },
{ "path": "../../../../../common/models/wordbreakers" },
],
"include": [
Expand Down

0 comments on commit fe63af0

Please sign in to comment.