Commit graph

137 commits

Author SHA1 Message Date
Keyman Server
16a365871e
Merge branch 'epic/user-dict' into auto/A19S15-merge-master-into-user-dict 2025-11-07 14:07:15 +01:00
Marc Durdin
df212364a2 maint(resources): add repository record for all published packages
While not documented as such, it appears that the repository record is
required with trusted publishing of npm packages.

Test-bot: skip
Build-bot: skip
2025-10-29 14:35:31 +01:00
Marc Durdin
ba411774f6 maint(resources): move NPM package publishing to GitHub Actions
Due to recent changes in NPM package publishing security requirements,
we have to move from TeamCity build to a GitHub Action to publish our
NPM packages, so we can take advantage of trusted publishing. This
change also consolidates and centralizes the npm publishing into
resources/build/ci/npm-publish.sh, which removes a lot of boilerplate
from each of the build.sh scripts, and ensures consistency.

Packages will be `npm pack`ed on PR and test builds, and published in
release builds.

Ref: https://docs.npmjs.com/trusted-publishers
Ref: https://github.blog/changelog/2025-09-29-strengthening-npm-security-important-changes-to-authentication-and-token-management/
Fixes: #14963
Test-bot: skip
Build-bot: release:developer
2025-10-27 16:31:55 +01:00
Joshua Horton
3f9a39ff36 Merge branch 'epic/user-dict' into chore/merge-master-into-user-dict
Converts epic-branch JS unit tests into TS as well.
2025-08-28 08:53:00 -05:00
Marc Durdin
f3fb3ac87b maint(common): move build-utils-ci.inc.sh to ci/ci-publish.inc.sh
Removes a number of unused functions from the file, renames remaining
functions to match our builder script prefix patterns, removes unused
imports from various build scripts (e.g. Android).

Fixes: #14453
2025-08-05 12:54:56 +10:00
Marc Durdin
acefdf281a maint(common): move typescript script functions into typescript.inc.sh
Fixes: #14448
Build-bot: build
Test-bot: skip
2025-08-03 07:01:57 +10:00
Marc Durdin
2726050601 maint(common): rename and move node-related script functions into node.inc.sh
Consolidates the node-related script functions into node.inc.sh, as part
of cleaning up the build scripts and making them easier to maintain into
the future.

Fixes: #14447
2025-08-02 13:34:29 +10:00
Marc Durdin
f394245636 maint(common): consolidate builder scripts
Clarifies the confusing builder.inc.sh / build-utils.sh distinction by
giving the scripts more appropriate names. Most build scripts should use
builder-full.inc.sh; some helper scripts can use builder-basic.inc.sh.
Documented in resources/build/README.md.

Renames:
* resources/build/builder.inc.sh to resources/build/builder-full.inc.sh
* resources/build/build-utils.sh to resources/build/builder-basic.inc.sh

Other changes:
* Moves Android-specific functions out of builder-basic.inc.sh and into
  android/build.sh.
* Renames functions in builder-basic.inc.sh

More functions may be moved from builder-basic.inc.sh into utils.inc.sh
or other scripts in the future.

Fixes: #14065
Build-bot: build all
Test-bot: skip
2025-08-02 08:11:24 +10:00
Marc Durdin
65158a0526 maint(common): rename shellHelperFunctions.sh to utils.inc.sh
Adds documentation for various functions, removes unused functions (a
couple of simple, very lightly used functions were unDRYed; these could
go back the other way across all shell scripts if necessary). TODO items
noted for follow-up refactoring.

Fixes: #14275
Relates-to: #14269
Build-bot: build all
Test-bot: skip
2025-08-02 06:58:40 +10:00
Marc Durdin
d11e31d0cc
Merge branch 'epic/user-dict' into chore/merge-master-into-user-dict 2025-05-30 08:24:11 +07:00
Marc Durdin
d59756e327 chore(developer): use const instead of let 2025-05-16 08:50:24 +02:00
Joshua Horton
71a5a9bdd4 Merge branch 'epic/user-dict' into chore/merge-master-into-user-dict 2025-05-16 08:19:45 +07:00
Joshua Horton
1f907b0f52 maint: resolve merge-conflict sections 2025-05-16 08:17:44 +07:00
Joshua Horton
155c1a2b12 maint: update mocha
Some of the npm audit warnings left after #13897 require an updated `mocha` version to remedy.  As we only really use `mocha` to do unit-testing, it should be safe to update if all of our existing tests pass with the new version.

Test-bot: skip
2025-05-13 14:02:02 +07:00
Joshua Horton
87fff31212 change(developer): clean up developer/src/kmc-model linter issues
The model-defaults.ts file is excluded because that code actually lands in models and could have unwanted side-effects on the oldest Android devices we support.
2025-04-30 09:35:55 +07:00
Marc Durdin
06a8f04720
Merge branch 'epic/user-dict' into chore/merge-master-into-user-dict 2025-04-24 19:08:04 +07:00
Marc Durdin
ac6eb0b767 chore: use explicit node: prefix for node imports
This makes it easier for us to enumerate modules that have node
dependencies. There may be others I have not yet picked up.
2025-04-03 08:01:08 +07:00
Marc Durdin
c6c4fba27a
Merge branch 'epic/user-dict' into chore/merge-master-into-user-dict 2025-03-31 12:13:47 +07:00
dependabot[bot]
4abc1b3d2b
chore(deps-dev): bump esbuild from 0.18.20 to 0.25.0
Bumps [esbuild](https://github.com/evanw/esbuild) from 0.18.20 to 0.25.0.
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG-2023.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.18.20...v0.25.0)

---
updated-dependencies:
- dependency-name: esbuild
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-11 11:17:53 +00:00
Marc Durdin
194145e7f3 chore: Merge remote-tracking branch 'origin/epic/user-dict' into chore/merge-master-into-user-dict 2024-12-05 14:59:34 +07:00
Marc Durdin
cd8825d504
Merge pull request #12736 from keymanapp/refactor/developer/unify_test_action
refactor(developer): unify test action
2024-12-01 00:14:11 +01:00
Eberhard Beilharz
66404f9503
chore(developer): rename test files
This change rename the test files for Developer according to the
discussion at the Keyman conference in November 2024.
2024-11-28 14:32:09 +01:00
Eberhard Beilharz
badb23a6ab
Merge pull request #12710 from keymanapp/refactor/developer/tc_tests
refactor(developer): output number of tests when running on TC
2024-11-28 19:40:52 +07:00
Marc Durdin
70a32f00d7 refactor(developer): unify test action 2024-11-28 15:16:25 +07:00
Eberhard Beilharz
21736d8817
refactor(developer): output number of tests when running on TC
This change adds the mocha-teamcity-reporter which outputs the running
tests in a special format that TeamCity can interpret. This allows TC
to show which tests run as well as the number of tests run.

Also refactor some of the build scripts to use functions.

Note that we had to explicitly add `--check-coverage=false` (which is the
default) to get successful builds when we run on TC.
2024-11-27 11:41:06 +01:00
Marc Durdin
dc2b9b2ad9 refactor(developer): LexicalModelTypes tests 2024-11-27 10:13:09 +07:00
Marc Durdin
b10634eb97 refactor(common): move all lexical model types into LexicalModelTypes container
Many of the types had very generic names (e.g. `Configuration`), and as
the types are now exported from `@keymanapp/common-types`, this was
unhelpful.

For units with many references, I used TypeScript's import-equals to
reduce the change impact. For units with only a few references, I added
the `LexicalModelTypes.` prefix to the references in source.

(Best reference I could find for import-equals: b722fa4e49)

Fixes: #12516
2024-11-27 09:46:09 +07:00
Marc Durdin
37626b17e8
Merge branch 'epic/user-dict' into chore/merge-master-into-user-dict 2024-11-08 05:27:00 +01:00
Marc Durdin
2a0e17cab7 fix(developer): handle missing files in kmc-model
If a file is not found, loadfile returns null, which kmc-model now
handles with a clear error message rather than a generic exception.
Checks added for missing .model.ts and missing wordlist.tsv files. Added
corresponding unit tests.

Fixes: #12553
Fixes: KEYMAN-DEVELOPER-294
2024-10-31 09:29:46 +07:00
Marc Durdin
05e2c8aec1 chore: missing deps 2024-09-16 04:11:52 +07:00
Marc Durdin
5e81d6fe14 chore: Merge branch 'epic/user-dict' into chore/merge-master-into-user-dict 2024-09-13 14:00:29 +07:00
Eberhard Beilharz
1fe6a0370f
refactor(web): move common/web/eslint → common/tools/eslint
Fixes: #12386
2024-09-10 19:16:52 +02:00
Eberhard Beilharz
91bbc250a8
refactor(web): move model/templates to web/src/engine/predictive/text
Part-of: #12133
2024-09-10 17:10:12 +02:00
Eberhard Beilharz
c3e587193e
refactor(web): move model/types to web/types
Part-of: #12133
2024-09-09 19:59:01 +02:00
Marc Durdin
171b925281
Merge pull request #12321 from keymanapp/chore/merge-master-into-user-dict
chore: merge master into user-dict
2024-08-30 04:33:49 +02:00
Marc Durdin
8457f9527a chore(developer): extend timeouts for lm compiler tests to 5 secs
Fixes: #12271
2024-08-23 17:53:48 +02:00
Joshua Horton
77b9a055a5
Merge pull request #12085 from keymanapp/refactor/common/models/trie-construction-cntd
refactor(common/models): refactor migrated trie-construction code for improved encapsulation 📖
2024-08-12 09:08:14 +07:00
Joshua A. Horton
f6e87f8c74 fix(developer): sets models-templates as package.json dependency 2024-08-09 13:18:41 +07:00
Joshua A. Horton
a568ebbef0 chore(common/models): Merge branch 'epic/user-dict' into refactor/common/models/trie-construction 2024-08-09 09:26:19 +07:00
Joshua Horton
5e24276867
Merge pull request #12084 from keymanapp/refactor/developer/build-trie
refactor(developer/compilers): prepare for trie-compiler split 📖
2024-08-09 09:23:21 +07:00
Marc Durdin
32b4711659
Merge branch 'master' into refactor/common/9665-move-compiler-interfaces-to-developer 2024-08-07 15:15:45 +10:00
Joshua A. Horton
1e87e9c9b6 docs(developer): adds @param entry in doc-comment 2024-08-06 08:46:43 +07:00
Joshua A. Horton
6ce82f1a95 chore(developer): a simple let -> const 2024-08-06 08:45:42 +07:00
Joshua A. Horton
8504a96a4e chore(developer): drops redundant buildFromWordList return 2024-08-06 08:45:19 +07:00
Marc Durdin
e67aed1606 refactor(common): move compiler-interfaces to @keymanapp/developer-utils
This should be the last step in the refactoring.

Fixes: #9665
2024-08-02 13:49:59 +07:00
Joshua A. Horton
996b2aeb2e chore(common/models): Merge branch 'refactor/common/models/trie-construction' into refactor/common/models/trie-construction-cntd 2024-08-02 13:36:40 +07:00
Joshua A. Horton
32a31bc693 fix(developer): add 'build' dependency link to models/templates 2024-08-02 13:36:07 +07:00
Joshua A. Horton
768435365c refactor(common/models): refactor migrated trie-construction code for improved encapsulation 2024-08-02 12:53:04 +07:00
Joshua A. Horton
54bdf73c93 refactor(common/models): move primary trie-compilation code into common/models/templates
We'll likely want to dynamically build a Trie to represent user-specific entries made available by the active OS.  We'll then blend _that_ with the 'static' distributed model.
2024-08-02 12:48:29 +07:00
Joshua A. Horton
c16ae2724a refactor(developer/compilers): prepare for trie-compiler split 2024-08-02 12:31:24 +07:00