Commit graph

43 commits

Author SHA1 Message Date
Marc Durdin
f554cabe2f chore(common): use mac /usr/bin/stat rather than homebrew version 2023-06-05 09:45:57 +07:00
Marc Durdin
1cecb87f7f feat(common): builder dependency support 2022-10-12 12:50:26 +11:00
Marc Durdin
683d8b9e68 chore(common): build-utils.sh minor tweaks
Fixing up a number of minor bits and pieces identified during demo:

* invalid action or :target would not be picked up if paired with a
  valid one (e.g.: build:foo should not have worked)
* colors defined in both shellHelperFunctions and build-utils were
  problematic; able to remove them from shellHelperFunctions because
  all references included both scripts
* builder_has_action and builder_report now allow both `action:target`
  and `action :target`
* keyman-version/build.sh did not have working test action...
2022-07-29 17:37:19 +10:00
Marc Durdin
c1118d908c
Merge branch 'master' into chore/common/builder-script-target-and-option-support 2022-07-29 10:37:18 +10:00
Marc Durdin
ba6bc677cd chore(common): tweak build help and color support 2022-07-29 10:35:18 +10:00
Eberhard Beilharz
9f7b85834a
chore(linux): Update resources/shellHelperFunctions.sh
Somehow missed this with the previous commit.

Co-authored-by: Marc Durdin <marc@durdin.net>
2022-07-28 09:20:35 +02:00
Eberhard Beilharz
420cc0814d
chore(linux): Apply suggestions from code review
Co-authored-by: Marc Durdin <marc@durdin.net>
2022-07-28 09:19:25 +02:00
Eberhard Beilharz
9232c20569
chore(linux): address review comments
This change also slightly modifies `echo_heading` and outputs a
mark. This will show to the left of the line as well as in the
scroll bar in a terminal in VSCode [[1]] and will help to find the
headings if you have a lot of output in between.

[1]:https://code.visualstudio.com/updates/v1_69#_setmark-sequence-support
2022-07-27 12:22:55 +02:00
Marc Durdin
767927bf16 chore(common): use /usr/bin/env bash
Fixes up scripts (except under /linux) to use `#!/usr/bin/env bash`
instead of `#!/bin/bash` or `#!/bin/sh` so that we don't end up with
the ancient version of bash supplied with macOS.

This became urgent with this PR, because of bash-4.xisms in
build-utils.sh, for example on line 572:

```
if [[ -v _builder_params[$e] ]]; then
```
2022-07-25 14:59:37 +10:00
Marc Durdin
4ab3c53810 chore(common): adjust scripts for core relocation 2022-05-18 07:22:11 +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
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
Marc Durdin
9f153ecc17 chore(common): cleanup sh global color variables
Some of the global color variables in shellHelperFunctions.sh were a
little dangerously named. This cleans that up and removes a couple of
redundant functions from other locations.

mac/bashHelperFunctions.sh should be removed and replaced with
references to shellHelperFunctions.sh -- but I wanted to leave that for
a separate branch.
2022-03-10 10:12:09 +11:00
Marc Durdin
2c01b19f69 chore: cleanup
1. Renamed form UfrmNGrokOptions to UfrmServerOptions
2. Renamed kmdev-server to just plain server
3. Tidied up npm versioning to use VERSION_WITH_TAG

This last point should help avoid confusion as now only CI release
builds will ever generate a package.json with a.b.c, a.b.c-alpha or
a.b.c-beta. Local and test builds will always have the corresponding
-test or -local environment appended. This also helps avoid issues if
we accidentally publish an incorrect version.
2021-12-22 06:25:22 +11:00
Eberhard Beilharz
82596465e6
fix(linux): Fix packaging on ppa
When building packages on ppa the TERM environment variable is set
to "unknown", which isn't a valid value but which we didn't account
for previously.
2021-06-09 12:22:57 +02:00
Marc Durdin
b63e543977 chore: document Linux package rules 2021-06-02 13:52:10 +10:00
jahorton
032f5e29d8 feat(common): set_npm_version check for parameter 2021-01-19 14:58:23 +07:00
jahorton
2c8c59bcc9 fix(developer/compilers): fixes dependency versioning on alpha, beta tiers 2021-01-19 11:59:03 +07:00
jahorton
1ca8ef6b2d chore(ios): Merge branch 'master' into feat/ios/i18n-start 2020-07-28 12:43:04 +07:00
jahorton
554219ece6 fix(ios): fixes lerna concurrency workaround, drops piece missed in #3186 2020-06-01 10:32:18 +07:00
jahorton
3eff3a9ad9 fix(ios): disables lerna bootstrap concurrency as potential workaround 2020-05-29 15:43:24 +07:00
jahorton
fe71729ec8 change(common): better lerna use, adds version script to base package 2020-04-27 12:05:17 +07:00
jahorton
0e32f3f020 docs(common): verify_npm_setup + lerna.json docs 2020-04-24 13:30:15 +07:00
jahorton
879a4b5e4a feat(common): lerna now npm-installed locally 2020-04-21 15:55:43 +07:00
jahorton
729a5952d5 fix(common): fixes node dependency-install skip check 2020-04-17 15:34:16 +07:00
jahorton
599e2b3d72 change(common): removes post-lerna redundancies 2020-04-17 13:55:21 +07:00
jahorton
b604302b76 feat(common): initial use of lerna (in-repo package links only) 2020-04-17 13:38:44 +07:00
jahorton
940bfa4718 feat(ios): a first-pass i18n export script, resource cleanup 2020-02-27 15:36:36 +07:00
Marc Durdin
855a80258b chore(ios): use new version infrastructure 2020-01-29 11:53:50 +11:00
Eddie Antonio Santos
6c12526afd
Factor out set_npm_version to shellHelperFunctions. 2019-09-30 09:34:41 -06:00
Marc Durdin
319605b54e [iOS] Fixup set_version call for FV build 2019-08-30 14:34:27 +10:00
Marc Durdin
a04a024b82 Merge branch 'beta' into mac-notarize-app 2019-08-12 16:21:54 +10:00
Marc Durdin
cba0a879ae Updated build script 2019-08-02 10:10:31 +10:00
jahorton
a98c5cd33a Establishes verification for lmlayer's history.md 2019-07-30 10:36:45 +07:00
Marc Durdin
763a12aadf
Merge branch 'master' into beta-merge-master-history 2019-01-04 06:15:31 +11:00
Marc Durdin
fc440e9210 [meta] Add linux validation, and script to validate all platform history files 2019-01-02 12:48:32 +11:00
Joshua A. Horton
18a19734db Gets headless tests working post-reorg, fixes Windows test bug. 2018-11-29 10:12:31 +07:00
Joshua Horton
5883d19906 Merge pull request #336 from keymanapp/ios-codesign-fix
Fixes iOS code signing settings for Xcode 9.
2017-10-03 08:09:37 +07:00
Joshua A. Horton
208a0fd27f Corrected the check for archive creation - assertFileExist doesn't work on directories. 2017-10-02 12:44:44 +07:00
Joshua Horton
1143c702ff Adapted the shell resources to properly access and facilitate access to the windows history.md files. 2017-09-28 10:21:50 +07:00
Marc Durdin
1f0add3876 Add executable bit 2017-08-21 15:00:08 +07:00
Marc Durdin
606fdb78aa Initial commit 2017-08-21 13:54:29 +07:00