Commit graph

121 commits

Author SHA1 Message Date
Marc Durdin
ab54c0ecb9 chore(common): more bin bashes 2022-07-25 16:03:22 +10:00
jahorton
7b472ca686 chore(web): Merge branch 'chore/web/merge-web-version-environment' into chore/web/better-lm-worker-bundling 2022-05-27 10:31:43 +07:00
jahorton
ea74a7f2ce chore(web): adds direct keyman-version compile to many build.sh's 2022-05-24 10:11:57 +07:00
jahorton
2aa0b4445c chore(web): lm-worker "test stub" code elimination 2022-05-23 13:56:09 +07:00
jahorton
f20759f26a chore(web): eliminates web-environment package 2022-05-23 13:40:29 +07:00
Marc Durdin
05a4c33200 chore(web): move common/core/web to common/web
Relates to #5816.

Moves folders under common/core/web to common/web:

* input-processor -> common/web/input-processor
* keyboard-processor -> common/web/keyboard-processor
* tools/recorder -> common/web/recorder
* tools/sentry-manager -> common/web/sentry-manager
* utils -> common/web/utils

Updates scripts and configuration to point to new folders.
2022-05-18 06:01:03 +10:00
Marc Durdin
af44c0687f chore(web): move web-environment to common/web 2022-05-16 08:29:46 +10:00
Marc Durdin
8efcb5d64a chore(web): embedded web cleanup 2022-05-12 07:37:10 +10:00
Marc Durdin
4f0185dd1e chore(web): cleanup unit tests
Fixes the build for unit tests (and fixes corresponding bug in KMW
build) to eliminate Lerna dependencies.
2022-05-11 12:05:44 +10:00
Marc Durdin
d2b86c90d1 chore(web): fix predictive text module concatenation 2022-05-10 10:50:33 +10:00
Marc Durdin
843cde9611 chore(web): fixup npm path ref in build.sh 2022-05-04 10:20:07 +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
8046c5304b chore(web): build order for deps 2022-04-14 10:40:36 +10:00
Marc Durdin
e0b308b983 chore(web): cleanup for ts projects 2022-04-13 15:19:55 +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
Marc Durdin
6e1e7e8e7e chore: additional scripts 2022-03-10 10:26:15 +11:00
Marc Durdin
ba93a07060 chore: remove sentry exported variables (rely on build configuration) 2021-10-05 09:26:52 +11:00
Marc Durdin
f55f3fec1e chore: additional sentry.io links 2021-10-04 15:08:28 +11:00
Marc Durdin
5fac633fb6 fix(common): build script help param
When working on a new build script, I tripped over the `-?` question
mark help parameter here, as it needs to be escaped. Opted to fix all
the instances in our scripts, although AFAICT there would not have been
current bugs arising from this, as there were no conflicting one
character options lower in the case list.
2021-05-28 09:50:40 +10:00
Joshua Horton
8b8aabee80
Merge pull request #4353 from keymanapp/change/web/script-set-eu
change(web): set -eu for web scripts
2021-01-28 12:05:30 +07:00
jahorton
ab527ad192 fix(web): set -e hangups 2021-01-27 16:02:07 +07:00
jahorton
531c6f76c8 change(web): set -eu for web scripts 2021-01-27 14:29:16 +07:00
jahorton
46da0ad36d fix(web/ui): propagates UI module build failures 2021-01-27 13:52:52 +07:00
jahorton
d9ff26daec refactor(web/engine): fixes DOM-web, recorder 2020-06-17 10:51:33 +07:00
jahorton
367f111820 change(ios): tweaks sentry uploading for local dev, fixes web upload logic 2020-06-08 11:22:44 +07:00
jahorton
3bd4a9e427 fix(web): shell script typo 2020-05-28 13:13:06 +07:00
jahorton
bd16ad54b2 change(web): slightly cleaner implementation, mild reorg 2020-05-28 13:03:31 +07:00
jahorton
b3e0399b7d change(web): Selective Sentry uploading based on VERSION_ENVIRONMENT 2020-05-25 14:19:28 +07:00
jahorton
2eec927aff feat(web): builds now upload sentry artifacts 2020-05-13 13:26:25 +07:00
jahorton
660d8bf3cd feat(web): better debug setup, includes build during KMW build 2020-05-13 10:07:14 +07:00
jahorton
e7742e462f change(web/engine): addresses most of PR review 2020-04-29 14:28:30 +07:00
jahorton
67ff4a2036 chore(web/engine): Merge branch 'change/web/engine/keyboard-processor-package' into change/web/engine/input-processor-package 2020-04-27 14:01:38 +07:00
jahorton
8a31e0b29a chore(web/engine): Merge branch 'feat/common/init-lerna' into change/web/engine/keyboard-processor-package 2020-04-27 13:52:12 +07:00
jahorton
0b12f6dabc fix(web): better build script header uniformity 2020-04-27 12:44:00 +07:00
jahorton
8ab3da6afd fix(web): proper location for testing resource dupe 2020-04-24 14:35:51 +07:00
jahorton
251257b7f3 fix(web): Fixes resource builds, polishes core builds 2020-04-24 14:35:50 +07:00
jahorton
c56ea0e8d1 fix(web): build.sh -ui now bypasses core/web module 2020-04-24 13:45:20 +07:00
jahorton
6d9c9bc510 fix(web): fixes UI modules' compilation 2020-04-24 13:45:16 +07:00
jahorton
22f1a1208d fix(web): ensures keyboard-processor build, patches tool builds 2020-04-24 13:45:15 +07:00
jahorton
b604302b76 feat(common): initial use of lerna (in-repo package links only) 2020-04-17 13:38:44 +07:00
jahorton
57b7a0b3b0 refactor(web/engine): adds build-inner-core.sh, successful compilation 2020-04-03 15:47:21 +07:00
jahorton
33dfcff993 fix(web/engine): adjusts embedded-mode to match 2020-03-18 10:33:26 +07:00
jahorton
b1206fc9b2 change(web): A bit of commented-code cleanup 2020-03-12 11:56:39 +07:00
jahorton
3726631527 feat(ios): adds tools/sourcemap-root, replacing sed approach 2020-03-12 11:02:35 +07:00
jahorton
ec4d0c19ca feat(web): enhanced minified sourcemaps 2020-03-11 12:07:23 +07:00
jahorton
0cf2606c17 feat(web): Functioning sourcemaps for minified 2020-03-11 09:47:14 +07:00
Marc Durdin
255e4f4b7a chore: Merge branch 'master' into chore/beta-to-master-p9s2-1 2020-02-17 10:11:15 +11:00
jahorton
adcea80277 fix(web): file check logic positioning 2020-02-11 10:21:18 +07:00
jahorton
93a416dbbb change(web): Tweaks build.sh help message, npm install pos 2020-02-11 10:13:10 +07:00
jahorton
5931db6547 change(web): build.sh recompiles LMLayer only when needed 2020-02-11 08:59:10 +07:00