Marc Durdin
225877f57a
feat(common): precompile json schemas to improve performance
...
Fixes #9640 .
This ended up being somewhat more fragile than originally anticipated.
For the `ajv` cli call to get the right versions, we needed to install
ajv as a dev dependency in the top-level package.json as well as at the
common/web/types level.
Ajv does not do all that well with ESM yet, either, so we use esbuild to
transform the compiled validators before building in typescript.
2023-10-05 13:56:53 +07:00
Joshua A. Horton
a92f915e60
chore(web): Merge branch 'chore/web/cleanup-kmw-headless-module-builds' into chore/web/esbuild-config-cleanup
2023-06-16 12:47:20 +07:00
Joshua A. Horton
569662237e
fix(web): build.sh dependency on the centralized bundling stuff
2023-06-16 11:36:03 +07:00
Joshua A. Horton
194139be03
chore(web): paren spacing cleanup
2023-06-15 15:49:38 +07:00
Joshua A. Horton
6e8432383b
chore(web): applies bulk of review suggestions
2023-06-15 15:48:53 +07:00
Joshua A. Horton
b65df8243b
chore(web): cleanup of lm-worker & related build scripts, removal of lower-level bundles
2023-06-14 15:51:09 +07:00
Joshua A. Horton
cb2029bf49
chore(web): cleanup for purely-headless KMW main-thread-module build scripts, esbuild configs
2023-06-14 15:37:30 +07:00
Joshua A. Horton
626e1855a3
chore(web): Merge branch 'change/srcmap-cleanup-and-c8-use' into chore/web/centralize-kmw-tsconfigs
2023-06-14 14:59:18 +07:00
Joshua A. Horton
3ce99b9c73
chore(web): cleanup re set_keyman_standard_build_path
2023-06-14 10:00:39 +07:00
Joshua A. Horton
095bf97626
chore(web): kmw-main tsconfig -> /web, redirect in /common/web
2023-06-14 08:22:05 +07:00
Joshua A. Horton
52d4feadd3
chore(web): centralizes common/web tsconfigs
2023-06-13 15:52:40 +07:00
Joshua A. Horton
b41b619dfd
feat(common/web): adds c8 for web/utils, web/keyboard-processor
2023-06-12 10:51:35 +07:00
Joshua A. Horton
e318c5cb9c
chore(web): build dependency links
2023-06-08 13:03:26 +07:00
Joshua A. Horton
06434953a8
chore(web): KMW use of importHelpers
2023-06-08 13:03:25 +07:00
Joshua A. Horton
351cedf25f
fix(common/web): fixes Node-worker-reliant input-processor integration tests
2023-06-05 12:19:02 +07:00
Joshua A. Horton
89dd8d13ae
fix(web): android API 21 compat issues
2023-04-17 10:25:56 +07:00
Joshua A. Horton
b85087f392
chore(web): Merge branch 'master' into chore/web/update-feature-esmodule-for-configure-fix
2023-03-23 15:15:07 +07:00
Marc Durdin
a7cba84127
chore(common): add test action to common/web/utils
2023-03-15 05:16:33 +07:00
Joshua A. Horton
208dd453c1
chore(web): Merge branch 'change/web/top-level-modularization-design' into change/web/osk-and-key-event-integration
2023-03-14 13:09:51 +07:00
Joshua A. Horton
f7d082981c
chore: Merge branch 'master' into chore/feature-esmodule-master-update
2023-03-14 11:51:57 +07:00
Joshua A. Horton
f5e64a10a5
chore: Merge branch 'chore/common/ldml-ts-and-node-updates' into chore/feature-esmodule-master-update
2023-03-14 09:23:39 +07:00
Marc Durdin
92ed99c4d6
chore(common): build script performance improvements
...
Improves build script performance by:
* using built-ins wherever possible (e.g. string splitting)
* eliminating redundant code
* using absolute (to $KEYMAN_ROOT) rather than relative paths to avoid realpath
* removing unnecessary `npm run` calls
BEFORE | AFTER
-------------------------------|----------------------
time ./core/build.sh --help |
real 0m2.116s | real 0m0.874s
user 0m0.578s | user 0m0.198s
sys 0m0.984s | sys 0m0.289s
-------------------------------|----------------------
time ./web/build.sh --help |
real 0m3.523s | real 0m0.757s
user 0m1.166s | user 0m0.320s
sys 0m2.273s | sys 0m0.455s
-------------------------------|----------------------
time ./web/build.sh -d |
real 1m34.750s | real 0m59.974s
user 0m9.721s | user 0m6.284s
sys 0m19.652s | sys 0m13.202s
@keymanapp-test-bot skip
2023-03-13 07:18:09 +07:00
Marc Durdin
06afdd262b
chore(common): cleanup build.inc.sh echo
...
Makes the output of log messages from builder scripts more consistent,
and uses color more effectively to highlight specific parts of lines.
2023-03-01 14:51:08 +07:00
Joshua A. Horton
39a807eeb1
change(web): engine key event forwarding, osk path config
2023-02-28 08:42:08 +07:00
Marc Durdin
ce864ea923
chore: update standard script prolog to use builtin instead of dirname
2023-02-22 11:04:15 +07:00
Marc Durdin
463c7ff907
chore: remove greadlink from standard script prolog
2023-02-22 10:43:06 +07:00
Joshua A. Horton
b973639a18
change(web): refactors, modularizes KMW cloud API querying code
2023-02-20 12:53:47 +07:00
Joshua A. Horton
0a91730a12
feat(common/web): 'sandboxed' keyboard loading for DOM
2023-02-17 11:23:22 +07:00
Joshua A. Horton
e6fe2b73bf
refactor(common/web): headless keyboard loading + related unit-test patchups
2023-02-17 11:23:01 +07:00
Joshua A. Horton
58d2c3ba66
chore(common/web): TS import cleanup via subpaths
2023-02-16 16:05:45 +07:00
Joshua A. Horton
8fb5b42818
chore(common/web): Merge branch 'feature-esmodule-web-engine' into change/common/web/early-import-path-cleanup
2023-02-16 15:52:25 +07:00
Joshua A. Horton
6af1e4890e
chore(web): Merge branch 'feature-esmodule-web-engine' into chore/web/feature-esmodule-update
2023-02-16 15:18:50 +07:00
Joshua A. Horton
878e0f0ea2
chore(common): updates typescript to 4.9.5
2023-02-09 08:40:52 +07:00
Joshua A. Horton
0b642561ac
chore(common/web): Merge branch 'feature-esmodule-web-engine' into change/common/web/early-import-path-cleanup
2023-02-06 09:35:56 +07:00
Joshua Horton
e6caff993a
Merge pull request #8100 from keymanapp/feat/web/osk-modularization-testing
...
feat(web): unit tests for the OSK module & spun-off formerly-OSK components 🧩
2023-02-06 09:28:56 +07:00
Joshua A. Horton
7eb34cbb37
chore(common/web): keyboard-processor + recorder-core import pathing cleanup
2023-02-03 14:01:24 +07:00
Joshua A. Horton
b7e66406c7
chore(common/web): Merge branch 'feature-esmodule-web-engine' into change/common/web/early-import-path-cleanup
2023-02-03 12:57:27 +07:00
Joshua A. Horton
dc6a2b909d
change(common/web): cleaner import paths between in-repo packages
2023-02-02 12:41:51 +07:00
Joshua A. Horton
07f43cb4ba
fix(common/web): weird path in utils' package.json
2023-02-02 11:56:39 +07:00
Joshua A. Horton
4bc1345f68
change(common/web): rely on tsc for declaration bundling
2023-01-31 10:31:25 +07:00
Joshua A. Horton
4f4842d67f
feat(web): more OSK unit tests, makes ManagedPromise a web-util
2023-01-31 10:10:08 +07:00
Joshua A. Horton
1966468525
fix(common/web): util d.ts bundler error passthrough
2023-01-20 13:02:02 +07:00
Joshua A. Horton
7d24a9e1cb
feat(common/web): bundled d.ts for bundled-module outputs
2023-01-20 13:02:01 +07:00
Joshua A. Horton
af9f74fe3d
feat(common/web): util bundling now makes cjs, mjs single-file modules
2023-01-20 13:02:01 +07:00
Joshua A. Horton
2f940935e8
fix(common/web): import path compat with node exec
2023-01-20 13:02:00 +07:00
Joshua A. Horton
32ac60396c
fix(common/web): require -> import b/c esmodule
2023-01-20 13:01:59 +07:00
Joshua A. Horton
35f5fbc2e2
chore(web): updates utils' package.json module type setting
2023-01-20 13:01:59 +07:00
Joshua A. Horton
588ccd49f5
change(web): util package modularization, bundling
2023-01-20 13:01:58 +07:00
Marc Durdin
1cecb87f7f
feat(common): builder dependency support
2022-10-12 12:50:26 +11:00
Marc Durdin
a3129adedc
refactor(common): rename builder_has_action and document
...
* `builder_has_action` renamed to `builder_start_action`
* `builder_report` renamed to `builder_finish_action`
* `builder_has_action` created to be a silent test for the action
* Added reasonably comprehensive documentation.
2022-09-21 10:21:35 +10:00