Commit graph

23 commits

Author SHA1 Message Date
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
9995c9f54c fix(web): revise tablet detect strategy
This is based on research from various websites, including Google
documentation and https://screensiz.es/, as well as various older pages.
2021-12-02 15:37:56 +11:00
jahorton
6b248075d6 feat(web): partially-functional inlined OSK! 2021-09-01 15:31:01 +07:00
jahorton
6d0e9af4b8 fix(web): OS assignment fail-safe 2021-02-22 12:04:46 +07:00
jahorton
96ad4ea12d fix(web): macOS 11 agent string parsing 2021-02-22 08:43:03 +07:00
jahorton
126a15e120 refactor(web/engine): renames DeviceSpec, moves to utils 2020-05-18 08:31:32 +07:00
jahorton
5c709f9468 chore(web/engine): post-rebase cleanup 2020-04-24 14:35:52 +07:00
jahorton
1eed004296 change(web): package rename + patchup 2020-04-24 13:53:39 +07:00
jahorton
373196dded change(web/engine): splits off the core/web/keyboard-processor module 2020-04-24 13:45:04 +07:00
jahorton
067a960983 fix(web): minor embedded patch-up 2020-03-27 09:24:56 +07:00
jahorton
84339be3cc change(web/engine): headlessSpec -> coreSpec 2020-03-27 08:57:09 +07:00
jahorton
03481e017d refactor(web/engine): intro of text.EngineDeviceSpec
fix(web):  missed change
2020-03-26 13:09:25 +07:00
jahorton
b12fa22fa0 change(web): starts StyleConstants object for centralized style defs 2020-01-10 12:09:06 +07:00
jahorton
228c9ede3a fix(web): Fixes #2379. Allows '.' in macOS version strings 2019-11-27 11:49:40 +07:00
jahorton
3314125fd4 fix(web): Fixes #2328 - links reference for test resource compliation 2019-11-18 12:29:11 +07:00
jahorton
b38f618aba fix(web): Almost broke Chrome debug on macOS 2019-10-31 08:45:02 +07:00
jahorton
23689d2c70 fix(web): Fixes #2267 - iOS-Safari user agent spoof detection 2019-10-30 14:05:08 +07:00
jahorton
6706522d67 Fixes minor test bugs, calcs key dist from touches 2019-05-16 11:38:38 +07:00
Joshua A. Horton
f0812d96a7 Merge branch 'master' into web-248-iOS-landscape-display 2018-12-06 08:23:16 +07:00
Marc Durdin
ff8658edd5 Fixes #966. Platform tests are now more consistent for KeymanWeb 2018-06-08 15:47:24 +07:00
Joshua A. Horton
dd03de2a2e Fixes 'phone' vs 'tablet' for iOS. 2018-05-04 12:26:12 +07:00
Joshua A. Horton
a3038f4cde Applies namespacing to the bulk of currently-refactored KMW code. 2018-03-05 09:51:20 +07:00
Joshua A. Horton
99db1cda7f Moved Device to new file for Recorder access, + objects for auto tests. 2018-02-13 21:21:43 +07:00