Commit graph

5162 commits

Author SHA1 Message Date
Marc Durdin
88e216d017 chore(developer): work around experimental JSON modules in node
Fixes #9272.

Credit to @srl295.
2023-07-18 12:51:15 +07:00
Marc Durdin
908f5c2470 chore(developer): account for .keyboard_info in .kpj test 2023-07-18 12:34:42 +07:00
Marc Durdin
0e65d7703c feat(developer): add model_info and keyboard_info build activities to kmc
Adds ability to build .model_info and .keyboard_info files to kmc. Note
that .keyboard_info building is currently a stub as the .keyboard_info
compiler has not yet been translated to TypeScript, which will come in a
subsequent PR.

Note that .model_info and .keyboard_info builds depend on the project
loader, as they reference both keyboard and package source files when
constructing the metadata files.

Also:
* Fixed a deep reference to KeymanDeveloperProjectFile.
* Split the project loader into a utility unit.
* Marked the .kpj fileType field as deprecated, as it is easily
  extrapolated from the filename, with the aim to remove it entirely
  from version 2.0 projects.

@keymanapp-test-bot skip
2023-07-18 12:14:46 +07:00
Joshua A. Horton
321c88578f chore(web): Merge branch 'feat/web/gesture-path-matching' into chore/web/gesture-unit-test-touchup 2023-07-18 09:51:30 +07:00
Joshua A. Horton
0c7340129a fix(web): unit-test workaround for node setTimeout 1ms-early bug 2023-07-18 09:48:21 +07:00
Joshua A. Horton
938c3e21ba chore(web): Merge branch 'feat/web/gesture-path-matching' into chore/web/gesture-unit-test-touchup 2023-07-17 12:27:49 +07:00
Joshua A. Horton
b9c746b522 chore(web): changes in response to code review 2023-07-17 12:26:07 +07:00
Joshua A. Horton
330a4df740 fix(web): referenced path / file-extension for ci_config_adapter 2023-07-17 12:07:22 +07:00
Marc Durdin
7f0460172e
Merge pull request #9074 from keymanapp/chore/windows/disable-compression-for-wix-light-debug-builds
chore(windows): disable wix compression for debug builds
2023-07-17 15:01:09 +10:00
Joshua A. Horton
cd340a35da feat(web): adds stats-renormalization unit test 2023-07-17 10:42:36 +07:00
Joshua A. Horton
aa2c282dc3 chore(web): properly names GesturePath test suite; adds canary serialization tests 2023-07-17 10:42:09 +07:00
Joshua A. Horton
b69cf1d6ca change(web): TouchpathTurtle sample-emit, handling of 'item' tracking 2023-07-17 10:40:11 +07:00
Steven R. Loomis
3268be0c34 chore(common): add BUILDER_U32CHAR 🙀
- fix some other minor nits and documentation todos (no semantics)
- BUILDER_KEYS accidentally repeated 'ident' and 'size' from the parent interface

Fixes #9079
2023-07-14 12:42:35 -05:00
Steven R. Loomis
2e80d984c8 Merge remote-tracking branch 'upstream/master' into chore/common-9079-builder-str-ref-epic-ldml 2023-07-14 12:17:33 -05:00
Joshua A. Horton
dbf9ff22a0 chore(web): flick test placeholders 2023-07-14 12:42:45 +07:00
Marc Durdin
6eba701694 chore(windows): GO_FAST for 7z calls on debug builds 2023-07-14 11:53:17 +07:00
Joshua A. Horton
4d6320df2a feat(web): modipress path-model unit tests 2023-07-14 11:02:05 +07:00
Joshua A. Horton
46ef414d31 feat(web): unit tests - for simple tap paths; also adds extra longpress test detail 2023-07-14 10:44:25 +07:00
Joshua A. Horton
77137aecc3 feat(web): instant path-fulfillment unit-tests 2023-07-14 10:36:14 +07:00
Joshua A. Horton
3b0e19b505 feat(web): unit tests - longpress path modeling 2023-07-14 10:36:14 +07:00
Joshua A. Horton
3894ed0947 feat(web): base implementation of gesture single-contact-point matching 2023-07-14 10:36:13 +07:00
Marc Durdin
a9cae27e78
chore: apply review suggestion, delete comment
Co-authored-by: Joshua Horton <joshua_horton@sil.org>
2023-07-13 17:02:41 +10:00
Marc Durdin
2e7162d5a9 chore(windows): remove hardcoded compression level in wxs files 2023-07-13 12:12:02 +07:00
Marc Durdin
759d23f7e0 chore(windows): detect teamcity CI for uncompressed msi 2023-07-13 11:18:14 +07:00
Joshua A. Horton
e4cef64fdc docs(web): extra documentation b/c nomenclature shift 2023-07-13 10:37:11 +07:00
Joshua A. Horton
811648edb6 change(web): TrackedInput -> ComplexGestureSource 2023-07-13 10:29:35 +07:00
Joshua A. Horton
872a7db02e change(web): TrackedPoint -> SimpleGestureSource 2023-07-13 10:27:22 +07:00
Joshua A. Horton
fe62217414 change(web): TrackedPath -> GesturePath 2023-07-13 10:12:29 +07:00
Marc Durdin
4af61a89bd chore(windows): turn msi compression off for test builds 2023-07-13 09:48:06 +07:00
Joshua A. Horton
e8482f61b3 fix(web): bug in suggested-change typing 2023-07-13 09:25:19 +07:00
Steven R. Loomis
f3bfef0cc3 fix(common): set variables need to serialize elementstring 🙀
- populate the 'elem' field of set variables
- this will be needed for mapFrom/mapTo

For: #7375
2023-07-12 16:44:50 -05:00
Marc Durdin
4a329f9552 chore(developer): move touch layout schema load into import 2023-07-12 15:55:44 +07:00
Joshua Horton
6ac9faab72
chore(web): Apply suggestions from code review
Co-authored-by: Marc Durdin <marc@durdin.net>
2023-07-12 15:48:22 +07:00
Marc Durdin
568a8141dd chore(common): additional cleanup on schema loading 2023-07-12 13:11:06 +07:00
Marc Durdin
2d69be9104 refactor(common): bundle schemas into web/types
Removes the loadSchema function and instead resolves schema with
import statements. Next commit will do the same work for Developer
modules.
2023-07-12 12:53:56 +07:00
Steven R. Loomis
7b094f42e7 chore(common): add BUILDER_STR_REF 🙀
- and similar
- also aliases for r.uint32le on the KMXPlusFile side.

Fixes #9079
2023-07-11 18:08:46 -05:00
Eberhard Beilharz
847556b176
Merge pull request #9193 from keymanapp/chore/update-data
chore: Update standards data
2023-07-11 08:59:25 +02:00
Marc Durdin
804215145f chore(developer): handle compilerWarningsAsErrors option
Fixes #9100.

The `compilerWarningsAsErrors` option can be passed in as a command-line
option or in the project options. Command-line option, if present, takes
precedence over the project option. If neither is set, then the value is
`false`.

Handling of this is within kmc, rather than individual modules.
2023-07-11 10:16:41 +07:00
Marc Durdin
02a1c48d18 chore(developer): add --color switch to kmc
Fixes #9233.

Adds --color and --no-color switches to kmc command line, with default
being determined by console mode.

Also ensures color initialization happens just once in
NodeCompilerCallbacks and moves constants to top of file.
2023-07-11 06:25:21 +07:00
Eberhard Beilharz
fce123e942 Revert "fix(windows): Fix Delphi makefile"
This reverts commit 88c2e1a4f2.
2023-07-10 11:31:51 +02:00
Marc Durdin
de1c171f46 chore(developer): cleanup compiler messages in kmc
Fixes #8795.
Relates to #9090.

Cleans up and makes consistent compiler messages in kmc, and related
unit tests.

Adds support for colorized messages.

After installing chalk for ansi coloring in kmc, @types/node needed to
be brought in sync with the Typescript version, per the suggestion of
checking against `npm dist-tags @types/node`,found in a discussion at
https://github.com/DefinitelyTyped/DefinitelyTyped/discussions/64262#discussioncomment-4905069

Additional tidying up includes:
* Deprecating a set of functions in compiler-interfaces, bringing them
  together under a new CompilerError class.
  Separating CompilerErrorSeverity and CompilerErrorMask enums.
* Making CompilerError.formatEvent (formerly compilerEventFormat) print
  messages in the same format as NodeCompilerCallbacks (sans coloring).
* Adding a wrapper class for CompilerCallbacks that manages the filename
  reporting, used currently exclusively by kmc itself.
2023-07-10 15:13:48 +07:00
Joshua A. Horton
2523b41a9d chore(web): DRYs out timedPromise defs 2023-07-10 14:35:52 +07:00
Joshua A. Horton
1f338bae99 change(web): better adherence to official Promise terms 2023-07-10 14:35:44 +07:00
Joshua A. Horton
a32412410b feat(web): adds TimeoutPromise 2023-07-10 13:03:30 +07:00
Joshua A. Horton
42f0aeb190 chore: Merge branch 'master' into chore/feature-gestures-update-a17s16-end 2023-07-07 12:39:05 +07:00
Marc Durdin
5c0f0e87a8 chore: Merge branch 'feature-kmc-kmw' into chore/merge-master-into-feature-kmc-kmw-A17S16 2023-07-07 09:53:34 +07:00
Joshua A. Horton
e8fbafe194 feat(web): logs enhanced debug info for error reports 2023-07-07 09:40:02 +07:00
Eberhard Beilharz
f095593cd5 fix(windows): Adjust to new version of langtags.json
The new version of `langtags.json` added a new `_conformance` record
at the top of the file. This change adjusts the indexes where we expect
the `_version` record. It also introduces a const for the index of the
version record to make future updates easier.
2023-07-06 20:12:32 +02:00
Eberhard Beilharz
88c2e1a4f2 fix(windows): Fix Delphi makefile
In order to be able to build from the command line I had to change
the forward slashes to backslashes in the makefile.
2023-07-06 20:12:32 +02:00
Joshua Horton
a61d95f419
Merge pull request #9200 from keymanapp/chore/web/cleaner-sentry-sourcemapping
chore(web): normalizes sourcemap paths for cleaner Sentry reports
2023-07-06 14:26:21 +07:00