Commit graph

29 commits

Author SHA1 Message Date
jahorton
75964b0077 chore(web): drops non-pred text dependence on es6-shim 2022-05-31 09:11:20 +07: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
3855a25d26 chore(web): Merge branch 'chore/web/fixup-unit-test-fixups' into chore/web/merge-web-version-environment 2022-05-27 10:30:16 +07:00
Marc Durdin
e1f3eca82d chore(web): add comment for sentry-manager 2022-05-27 13:13:00 +10:00
Marc Durdin
f1c98cf707 chore(web): add sentry-manager as project ref for embedded 2022-05-27 09:50:31 +10:00
Marc Durdin
66efed172b
Merge branch 'chore/web/no-more-lerna' into chore/web/move-common-core-web-to-common-web 2022-05-27 09:04:52 +10:00
Marc Durdin
f8a7430538
Merge pull request #6617 from keymanapp/chore/web/move-web-environment
chore(web): move web-environment to common/web 🎡
2022-05-27 08:51:36 +10:00
Marc Durdin
e60083a800
Update web/source/tsconfig.embedded.json
Co-authored-by: Joshua Horton <joshua_horton@sil.org>
2022-05-24 12:49:40 +10:00
jahorton
2d7d2c6ab1 chore(web): Wait, this worked!? Inclusion now in original project's build! 2022-05-23 13:57:06 +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
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
d9ff26daec refactor(web/engine): fixes DOM-web, recorder 2020-06-17 10:51:33 +07:00
jahorton
d2b6a1bec8 refactor(web): full KMW now uses web-utils package 2020-05-15 13:34:31 +07:00
jahorton
ac3661b2d4 chore(web/engine): Merge branch 'change/web/engine/keyboard-processor-package' into change/web/engine/input-processor-package 2020-04-29 13:11:43 +07:00
jahorton
5c709f9468 chore(web/engine): post-rebase cleanup 2020-04-24 14:35:52 +07:00
jahorton
a2146209e1 fix(web): adjusts KeymanWeb build script to use inputProcessor package 2020-04-24 14:35:49 +07:00
jahorton
1125c3ba3e refactor(web/engine): successful web-core compilation 2020-04-17 11:33:03 +07:00
Joshua A. Horton
e58aa60504 Initial reorganization of OSK code complete. Regressions exist, though. 2019-01-10 11:54:47 +07:00
Joshua A. Horton
3000e8a032 Provides type specification for OSK layout objects, mild related reorg. 2019-01-04 09:01:41 +07:00
Joshua A. Horton
4428df725e Object-orients the existing kmwkeymap infrastructure. 2018-02-02 14:14:33 +07:00
Joshua A. Horton
07d18c3ddd Merge branch 'master' into web-typescript-typed-callbacks 2018-01-22 15:27:37 +07:00
Joshua A. Horton
2502b52786 Re-did the build product directory structure again. 2018-01-22 14:07:16 +07:00
Joshua A. Horton
088de0e02d Converts the keyboard interface into its own class. 2017-12-21 16:00:30 +07:00
Joshua A. Horton
7c1af56708 Tweaked build infrastructure, made build.sh compatible with TypeScript products. 2017-12-15 12:48:18 +07:00
Joshua A. Horton
e309935700 Basic embedded path conversion. 2017-12-15 10:27:17 +07:00