Commit graph

75 commits

Author SHA1 Message Date
Marc Durdin
986544c778 feat(common): builder script dependency and legacy script report
Adds /resources/build/builder-report.sh, internal maintenance script for
tracking build dependency tree and remaining legacy build.sh scripts.

@keymanapp-test-bot skip
2022-10-14 07:54:00 +11:00
Marc Durdin
318058478b
Merge branch 'master' into chore/common/builder-tweaks 2022-10-13 13:30:13 +11:00
Marc Durdin
57f305666e
Update build.sh 2022-10-13 12:02:07 +11:00
Marc Durdin
d89c63aaf3
Update common/predictive-text/build.sh
Co-authored-by: Joshua Horton <joshua_horton@sil.org>
2022-10-13 06:04:14 +11:00
Marc Durdin
b7000f5b7f chore(common): builder_start_action wildcard support 2022-10-12 13:28:37 +11:00
Marc Durdin
30121d9793 chore(common): remove space for builder_..._action param 2022-10-12 13:28:37 +11:00
Marc Durdin
1cecb87f7f feat(common): builder dependency support 2022-10-12 12:50:26 +11:00
Joshua A. Horton
e347aeabfe chore(common/models): minor tweaks per review 2022-10-05 09:04:23 +07:00
Joshua A. Horton
d97b1eba3c fix(common/models): pred-text build.sh ignored --ci option 2022-10-04 09:20:42 +07:00
Joshua A. Horton
4176605c37 chore(common/models): script doc tweak 2022-10-03 14:04:48 +07:00
Joshua A. Horton
dd9d773720 chore(common/models): lmlayer build.sh now builder-based 2022-10-03 12:45:23 +07:00
Marc Durdin
767927bf16 chore(common): use /usr/bin/env bash
Fixes up scripts (except under /linux) to use `#!/usr/bin/env bash`
instead of `#!/bin/bash` or `#!/bin/sh` so that we don't end up with
the ancient version of bash supplied with macOS.

This became urgent with this PR, because of bash-4.xisms in
build-utils.sh, for example on line 572:

```
if [[ -v _builder_params[$e] ]]; then
```
2022-07-25 14:59:37 +10:00
jahorton
ea74a7f2ce chore(web): adds direct keyman-version compile to many build.sh's 2022-05-24 10:11:57 +07:00
jahorton
f20759f26a chore(web): eliminates web-environment package 2022-05-23 13:40:29 +07:00
Marc Durdin
af44c0687f chore(web): move web-environment to common/web 2022-05-16 08:29:46 +10:00
Marc Durdin
77ed80e567 chore(web): build lm-worker in predictive-text 2022-05-13 14:28:40 +10:00
Marc Durdin
78427b374f chore(web): build deps for predictive-text 2022-05-12 06:29:41 +10:00
Marc Durdin
2f2d3c72c9 chore(web): move lm-worker into its own folder
This starts the reorg required for splitting the lm worker into its own
module. Tests are still not working. But builds are going.

Some decisions to be made around the final path for wrapping of the
code. I think it may be possible to do something a whole lot more
elegant by moving the wrapping process into the KMW build and leaving
the LM Worker output as a pure tsc output -- given only KMW wants the
wrapped worker anyway (tests aside). The actual wrapping code could
still be in the lm-worker folder.
2022-04-14 15:33:23 +10:00
Marc Durdin
4d94786852 chore(web): replace lerna with npm workspaces and ts projects
Fixes #6320.

Part 1 of moving from lerna to a simpler, maintained monorepo solution,
using TypeScript Projects and NPM Workspaces.

There is more work to be done here. At this point, KeymanWeb builds and
runs without errors, but the built file is substantially different,
mostly in include order.

Using TypeScript Projects, we move away from the need to run build
scripts in various locations for almost all the Typescript modules.

TODO: Embedded versions and tests have not been verified.

TODO: developer/server is not yet verified.

TODO: developer/js (needs a rename!) is not yet verified.

TODO: Currently, the predictive-text folder needs refactoring to move
the construction of the worker wrapper out of the Predictive Text build
and into the final assembly of keymanweb.js (as it should be valid to
run it as a separate .js anyway).

TODO: Most of the `<reference>` paths need to be re-verified. Ideally
there should be no references outside the current module for any given
.ts.

TODO: The embedded vs browser vs node (headless) builds should be tidied
up for consistency so that it's obvious what depends on what. This is
currently messiest in the predictive-text folder, where the output names
diverge from the filenames and the various files are mixed in the same
folder (as evidenced by the exclusions listed in each tsconfig.json).

TODO: `npm install` should be removed from most build scripts and
instead `npm ci` (#6196) should be run only once from the top-level
folder for any given build. I've had eliminated side-effects from the
`install` action for npm, which makes it easier to reason about state.

TODO: verify_npm_setup and related functions can probably be eliminated.

TODO: most of the build scripts should be largely eliminated for web.

TODO: several ts projects use inconsistent output folders.

TODO: it may be possible to generate a .d.ts for models/types so that
we can use a consistent reference for those as well.

TODO: build.sh, tsconfig.json should always be in the module's top-level
folder, not in a subfolder such as src (e.g. see input-processor/src,
keyboard-processor/src, web/source).

TODO: resources/web-environment should be in common/web.

TODO: other js node_modules imports should be wrapped like es6-shim.

TODO: fix up the publish code for npm modules

TODO: eliminate version numbers from package.json if possible?

Whew, that's most of the stuff I noticed!
2022-04-12 21:02:33 +10:00
jahorton
22ac71540b chore(common/models): adds a naive... semi-fill?... for String.normalize for old devices 2020-12-14 09:26:36 +07:00
jahorton
c9429230c7 fix(common/models): Old Android API compat 2020-09-22 10:36:42 +07:00
Eddie Antonio Santos
986e427f2d
fix(common/models): remove unnecessary build invocation 2020-05-20 16:27:27 -06:00
Eddie Antonio Santos
8df4948e68
chore(common/lmlayer): let modeling layer depend on new models-types package 2020-05-19 19:35:09 -06:00
jahorton
f59778733f fix(common/lmlayer): adds web-utils build step to lmlayer build 2020-05-15 15:59:51 +07:00
jahorton
40b0b2005f fix(web/engine): fixes bad implementation of -S shorthand 2020-04-29 16:15:57 +07:00
jahorton
cad689dc3f chore(web/engine): Merge branch 'change/web/engine/keyboard-processor-package' into change/web/engine/input-processor-package 2020-04-29 16:08:55 +07:00
jahorton
6ce37e677e chore(common): Merge branch 'master' into feat/common/init-lerna 2020-04-29 14:43:03 +07:00
jahorton
e7742e462f change(web/engine): addresses most of PR review 2020-04-29 14:28:30 +07:00
jahorton
251257b7f3 fix(web): Fixes resource builds, polishes core builds 2020-04-24 14:35:50 +07:00
jahorton
ef17be9665 refactor(common/lmlayer): reorganizes build script 2020-04-21 08:42:20 +07:00
jahorton
29fd2f4ce4 change(common/lmlayer): addresses many PR review comments 2020-04-20 23:11:01 +07:00
jahorton
729a5952d5 fix(common): fixes node dependency-install skip check 2020-04-17 15:34:16 +07:00
jahorton
b604302b76 feat(common): initial use of lerna (in-repo package links only) 2020-04-17 13:38:44 +07:00
jahorton
eed5de0a4b refactor(common/lmlayer): basic headless compilation 2020-04-15 09:29:42 +07:00
Marc Durdin
6f5f37ae82 chore(web): use new version infrastructure 2020-01-29 09:15:21 +11:00
jahorton
d0ab35d5d9 fix(common): Fixes #2469 2020-01-08 11:53:53 +07:00
jahorton
09d7a0e826 fix(common): adds string.startswith polyfill to lmlayer 2019-12-16 08:16:55 +07:00
jahorton
89bbf44139 fix(common): Adds array.from polyfill, the next thing to break 2019-12-10 09:24:22 +07:00
jahorton
8d778b2a59 fix(common): adds polyfill for charCodeAt, fixes #2323 2019-12-10 09:24:22 +07:00
Eddie Antonio Santos
377e018ceb
Fix other build.sh. 2019-10-02 09:31:49 -06:00
Eddie Antonio Santos
556d89b11e
Fix link before install in the event of ./build.sh -clean. 2019-10-02 09:26:03 -06:00
Eddie Antonio Santos
00ccc0080f
Add set -eu and failure messages in ./build.sh(s). 2019-10-02 08:45:44 -06:00
Eddie Antonio Santos
f2f511840e
Move npm link . to dependent build.sh scripts. 2019-10-01 14:55:58 -06:00
Joshua A. Horton
810edb2fde Forgot the $ symbol in the if-condition. 2019-03-06 12:13:25 +07:00
Joshua A. Horton
9a1a21d767 Workaround for the mac sed issue, plus minor doc for one other point. 2019-03-06 11:53:49 +07:00
Joshua A. Horton
69f7319414 Right, KMW links to the actual LMLayer code, not the .d.ts file... 2019-03-06 11:35:52 +07:00
Joshua A. Horton
a873695c10 Updates and improves LMLayer definition files and their links. 2019-03-06 11:08:21 +07:00
Joshua A. Horton
71fec33c2c Establishes baseline co-compilation of KMW w/ the LMLayer 2019-02-19 10:06:27 +07:00
Joshua A. Horton
cf13caa98e Merge branch 'lmlayer-init' into lmlayer-build-reorg 2018-11-29 23:35:37 +07:00
Joshua A. Horton
18a19734db Gets headless tests working post-reorg, fixes Windows test bug. 2018-11-29 10:12:31 +07:00