Commit graph

14 commits

Author SHA1 Message Date
Joshua A. Horton
6a30efe60f chore(web): kmw-worker tsconfig -> common/models 2023-06-14 08:16:15 +07:00
Joshua A. Horton
e876229312 chore(common/models): centralizes the worker tsconfig settings 2023-06-13 15:22:39 +07:00
Joshua A. Horton
c14240de74 feat(common/models): c8 for models/templates 2023-06-12 13:10:59 +07:00
Joshua A. Horton
fed4618d02 feat(common/models): tslib use, treeshaking in lm-worker 2023-06-08 14:39:55 +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
66f6381f87 feat(common/models): functional lm-worker sourcemaps 2023-01-20 14:01:11 +07:00
Joshua A. Horton
5f9aa60019 fix(common/models): lm-layer module objs build 2023-01-20 13:43:28 +07:00
Joshua A. Horton
679652d7f3 change(common/models): templates submodule conversion 2023-01-20 13:37:42 +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
bb07ab7eee chore(web): make build paths consistent 2022-05-04 10:13:44 +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
Eddie Antonio Santos
417173fb69
change(common/models/templates): load @keymanapp/web-utils correctly 2020-05-20 14:16:50 -06:00
Eddie Antonio Santos
48764b8e9e
chore(common/models/templates): get build and deps correct 2020-05-20 09:50:16 -06:00
Eddie Antonio Santos
81577e6619
refactor(common/models/templates): move to correct folder 2020-05-20 09:39:07 -06:00
Renamed from common/lm/models/tsconfig.json (Browse further)