Commit graph

782 commits

Author SHA1 Message Date
Marc Durdin
9a436fa5ca chore(developer): fixup kmcomp build 2022-05-19 09:52:56 +10:00
Marc Durdin
b47b8ded54 chore(developer): fixup kmcmpdll build 2022-05-19 09:46:38 +10:00
Marc Durdin
b367c40a59 chore(developer): move .mak to src 2022-05-19 09:26:00 +10:00
Marc Durdin
7ae2e97329 chore(developer): fixup kmanalyze 2022-05-18 12:03:37 +10:00
Marc Durdin
eba6c7b345 chore(developer): fixup top-level makefiles 2022-05-18 12:03:23 +10:00
Marc Durdin
a160a5c709 chore(developer): move source files to /developer/src 2022-05-18 10:34:48 +10:00
Marc Durdin
d310ad9c85 chore(developer): move developer/inst to developer/src/inst/node 2022-05-18 10:21:16 +10:00
Marc Durdin
b1252f11e6 chore(developer): move kmlmc to developer/src/kmlmc 2022-05-18 10:13:03 +10:00
Marc Durdin
a617aa72ee chore(developer): update scripts for developer/kmlmc path 2022-05-18 09:35:35 +10:00
Marc Durdin
de536bf5a9 chore(developer): rename developer/js to developer/kmlmc 2022-05-18 09:22:53 +10:00
Marc Durdin
7e5cd7a137 chore(web): chmod +x 2022-05-18 07:21:47 +10:00
Marc Durdin
75e77c4c76 chore(developer): remove package-lock ref
This is probably not needed at the bundling stage.
2022-05-16 16:12:01 +10:00
Marc Durdin
833dde0ae4 chore: remove unnecessary package-lock.json files 2022-05-16 14:47:58 +10:00
Marc Durdin
15f4aa8af2 chore(web): update npm version refs for publishing packages
Note that the version entry will be added to the local package.json
which will then be dirty. This version entry should not be committed.
2022-05-16 08:46:09 +10:00
Marc Durdin
af44c0687f chore(web): move web-environment to common/web 2022-05-16 08:29:46 +10:00
Marc Durdin
4f87aad344 chore(web): bulk renderer tsc cleanup
Changes the bulk renderer build script to the new standard build script
format and updates to use tsc -b. Cleans up final external <reference>s.
2022-05-16 05:50:11 +10:00
Marc Durdin
63ef4a30e8 chore(developer): lexical model compiler bundling cleanup 2022-05-15 12:25:22 +10:00
Marc Durdin
5e9af137b1 chore(developer): full npm install for production
We will avoid storing our local package-lock.json and do a full npm
install for production builds of Keyman Developer Server.
2022-05-15 06:56:22 +10:00
Marc Durdin
3f559e3f4e chore(developer): work around monorepo for building Developer Server 2022-05-15 06:42:48 +10:00
Marc Durdin
eef83be999 chore(developer): fixup server build without lerna 2022-05-14 19:22:34 +10:00
Marc Durdin
bd8e07bea2 chore(developer): fixup paths for tests 2022-05-14 15:35:06 +10:00
Marc Durdin
46c987bc7f chore(developer): build web-environment during js build 2022-05-13 14:46:19 +10:00
Marc Durdin
8efcb5d64a chore(web): embedded web cleanup 2022-05-12 07:37:10 +10:00
Marc Durdin
bb07ab7eee chore(web): make build paths consistent 2022-05-04 10:13:44 +10:00
Marc Durdin
22c118c4be chore(developer): fixup version refs 2022-04-17 07:00:11 +10:00
Marc Durdin
0fbf53f8d7 chore(web): move version from package.json to keyman-version package
Starts to resolve the chaos of putting version numbers into every
package.json file.

Adds a new keyman-version package which mimics the
version information in build-utils.sh. This will eventually replace
resources/web-environment.

Fixes the build for the lexical model compiler tools to remove refs to
package.json version and use keyman-version instead.

More fixes coming in a follow-up.
2022-04-17 06:47:39 +10:00
Marc Durdin
be51f97371 chore(developer): fixup kmlmc imports 2022-04-16 06:08:58 +10:00
Marc Durdin
0ac04d0530 chore(web): Merge branch 'beta' into chore/web/no-more-lerna 2022-04-12 21:17:15 +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
Keyman Build Agent
114f58ee7f auto: increment beta version to 15.0.233 2022-04-11 14:02:20 -04:00
Keyman Build Agent
cdb4680698 auto: increment beta version to 15.0.232 2022-04-09 14:02:21 -04:00
Keyman Build Agent
01c089cf35 auto: increment beta version to 15.0.231 2022-04-08 14:02:37 -04:00
Keyman Build Agent
ef9a9459d2 auto: increment beta version to 15.0.230 2022-04-07 14:02:52 -04:00
Keyman Build Agent
54884ec2ad auto: increment beta version to 15.0.229 2022-04-05 14:02:12 -04:00
Keyman Build Agent
6e8a458c3b auto: increment beta version to 15.0.228 2022-04-04 14:03:57 -04:00
Marc Durdin
348036c703
Merge pull request #6445 from keymanapp/feat/developer/194-check-filename-case
feat(developer): check filename case consistency when compiling keyboard
2022-04-04 19:29:22 +10:00
Marc Durdin
7f914c9e82
Merge pull request #6440 from keymanapp/feat/developer/355-unreachable-code
feat(developer): hint on unreachable code
2022-04-04 19:29:13 +10:00
Keyman Build Agent
852754ea40 auto: increment beta version to 15.0.227 2022-04-01 14:02:08 -04:00
Keyman Build Agent
439d00d87b auto: increment beta version to 15.0.226 2022-03-31 22:57:58 -04:00
Marc Durdin
a639eaa946 feat(developer): promote 'info' messages to 'hint'
There was confusion in the compiler between INFO and HINT type messages.
The problem is that INFO messages will be suppressed by -s/-ss in
kmcomp, but we actually still want HINT messages to be emitted. So I
have gone ahead and renamed CERR_INFO to CERR_HINT and updated all the
places.

This was necessary in order for the kmcomp e2e test 194 to pass.
2022-03-30 17:04:48 +11:00
Marc Durdin
b50ad35d72 feat(developer): hint on unreachable code
Fixes #355.
Fixes #1710.

This is structured as a feature so it is tested as such, but was part of
the set of fixes scheduled for 15.0 beta. Any rule in a group that
Keyman Developer assesses as 'unreachable' will receive a hint message.

The current rule match is fairly simplistic -- it only does an exact
comparison -- so duplication which is indirect, through `any(store)`
references in the context would still result in unreachable rules that
are not picked up.
2022-03-29 12:49:34 +11:00
Keyman Build Agent
4e1f0432cd auto: increment beta version to 15.0.225 2022-03-28 21:31:48 -04:00
Keyman Build Agent
a3d2e8a1a8 auto: increment beta version to 15.0.224 2022-03-27 14:44:10 -04:00
Keyman Build Agent
7b2cc72245 auto: increment beta version to 15.0.223 2022-03-25 14:02:20 -04:00
Keyman Build Agent
3aa0819c5b auto: increment beta version to 15.0.222 2022-03-24 14:02:12 -04:00
Keyman Build Agent
12a7e13c5f auto: increment beta version to 15.0.221 2022-03-23 14:07:31 -04:00
Keyman Build Agent
c2462f7c4c auto: increment beta version to 15.0.220 2022-03-22 14:02:35 -04:00
Keyman Build Agent
b3c8372cb9 auto: increment beta version to 15.0.219 2022-03-21 14:01:46 -04:00
Keyman Build Agent
f13c07acbf auto: increment beta version to 15.0.218 2022-03-19 14:02:39 -04:00
Keyman Build Agent
5d6bc10de9 auto: increment beta version to 15.0.217 2022-03-18 14:02:34 -04:00