Marc Durdin
6a49af43a7
fix(common): always define dry_run variable
2022-11-03 06:21:04 +11:00
Marc Durdin
c336a8052c
fix(developer): publish @keymanapp/keyman-version to npm
...
Fixes #7582 .
Because of https://github.com/npm/cli/issues/3466 , we must publish our
internal dependency @keymanapp/keyman-version. This change adds a common
builder function builder_publish_to_npm in build-utils-ci.inc.sh to help
with that task, which should be adopted by other scripts that need to
publish to npm, in the future.
For now, responsibility for publishing keyman-version is delegated to
kmlmc. In the future, we will move this to a single top-level build
action that publishes all npm modules across the entire repo for the
given version.
2022-11-02 13:33:24 +11:00
Marc Durdin
b45b759354
chore: make git pre-commit hook executable
2022-10-31 16:13:58 +11:00
Marc Durdin
5e55ceb903
fix(common): ignore deps when formatting help
...
Fixes #7512 .
Dependencies were being added to list of parameters, which caused the
help formatting to be overly spaced out. Given deps are not parameters,
we should never have been adding them anyway.
2022-10-24 15:26:16 +11:00
Marc Durdin
0e9d850ce9
chore(common): address review comments
2022-10-21 05:35:30 +11:00
Marc Durdin
d4cb5139da
chore(common): automatically run internal dependencies on builder
...
Fixes #7455 .
If a builder script defines outputs for configure or build actions,
builder will figure out if configure and/or build need to be run for
any dependent actions for the script.
2022-10-17 15:16:35 +11:00
Marc Durdin
77bb445258
chore(common): --debug standard flag for builder
2022-10-17 10:41:16 +11:00
Marc Durdin
986544c778
feat(common): builder script dependency and legacy script report
...
Adds /resources/build/builder-report.sh, internal maintenance script for
tracking build dependency tree and remaining legacy build.sh scripts.
@keymanapp-test-bot skip
2022-10-14 07:54:00 +11:00
Marc Durdin
b7000f5b7f
chore(common): builder_start_action wildcard support
2022-10-12 13:28:37 +11:00
Marc Durdin
30121d9793
chore(common): remove space for builder_..._action param
2022-10-12 13:28:37 +11:00
Marc Durdin
d803d47d1d
chore(common): handle missing files in path expansion
2022-10-12 13:28:16 +11:00
Marc Durdin
1cecb87f7f
feat(common): builder dependency support
2022-10-12 12:50:26 +11:00
Joshua A. Horton
e347aeabfe
chore(common/models): minor tweaks per review
2022-10-05 09:04:23 +07:00
Joshua A. Horton
066eede2df
fix(common): fixes trap error passing for npm-emitted errors
2022-10-03 12:45:57 +07:00
Darcy Wong
637bd7560c
Apply suggestions from code review
...
Co-authored-by: Marc Durdin <marc@durdin.net>
2022-09-30 07:06:10 +07:00
Darcy Wong
f06578714e
chore(common): Update standard example
2022-09-29 10:34:25 +07:00
Darcy Wong
0ee5055907
chore(common): Clarify assumption that THIS_SCRIPT has been set
2022-09-29 08:45:31 +07:00
Darcy Wong
86c740e708
Apply suggestions from code review
...
Co-authored-by: Marc Durdin <marc@durdin.net>
Co-authored-by: Eberhard Beilharz <ermshiperete@users.noreply.github.com>
2022-09-28 19:48:07 +07:00
Darcy Wong
06e31e5cfc
chore(common): Update builder.inc.sh path
2022-09-28 12:57:01 +07:00
Darcy Wong
28ddfdb70a
chore(common): Move builder.inc.sh up to resources/
2022-09-28 12:56:43 +07:00
Darcy Wong
0645524022
Apply suggestions from code review
...
Co-authored-by: Marc Durdin <marc@durdin.net>
2022-09-28 12:56:16 +07:00
Darcy Wong
e021116aea
chore(common): Add newline
2022-09-28 09:22:05 +07:00
Darcy Wong
ae892c10f7
chore(common): Resolve review comments
2022-09-28 09:09:24 +07:00
Darcy Wong
fcc4fdca61
chore(common): Add _builder_init
2022-09-28 09:09:09 +07:00
Darcy Wong
17435c310b
chore(common): Add builder_die
2022-09-28 08:29:16 +07:00
Darcy Wong
824319d398
chore(common): Revert move of die to builder_die
2022-09-28 08:24:08 +07:00
Darcy Wong
dd07f1c333
refactor(common): Add _builder_findRepoRoot
2022-09-28 08:10:57 +07:00
Darcy Wong
f95e17483b
refactor(common): Revert move of KEYMAN_ROOT to REPO_ROOT
2022-09-28 07:56:08 +07:00
Darcy Wong
d5df060e76
chore(common): Move KEYMAN_ROOT to REPO_ROOT
2022-09-27 15:23:32 +07:00
Darcy Wong
a31c8931f1
chore(common): Move die to builder_die
2022-09-27 15:18:48 +07:00
Darcy Wong
22767bd6be
chore(common): Split builder portion of script
2022-09-27 14:43:14 +07:00
Marc Durdin
551e24c01c
Merge pull request #7339 from keymanapp/chore/common/builder-extra-params-cherry-pick
...
chore(common): builder extra params support 🏗 🍒
2022-09-21 14:44:09 +10:00
Marc Durdin
2a2c852fab
Merge pull request #7334 from keymanapp/feat/common/builder-feature-tests
...
feat(common): builder trap-functionality testing 🏗️
2022-09-21 14:44:00 +10:00
Marc Durdin
a9b08480e3
chore(common): builder extra params support
2022-09-21 13:52:06 +10:00
Joshua A. Horton
e23bf6b649
chore(common): trap test cleanup post-rebase
2022-09-21 09:40:37 +07:00
Joshua A. Horton
c1bd242047
chore(common): Merge branch 'refactor/common/builder_has_vs_start' into feat/common/builder-feature-tests
2022-09-21 09:35:51 +07:00
Joshua Horton
825cd3c8e9
chore(common): typo fix
2022-09-21 09:24:53 +07:00
Joshua A. Horton
5147ca9159
chore(common): Merge branch 'refactor/web/low-level-build-scripts' into refactor/common/builder_has_vs_start
2022-09-21 09:12:40 +07:00
Joshua A. Horton
82ac924070
feat(common): extra test - errors within functions
2022-09-21 08:45:13 +07:00
Joshua A. Horton
c4d924aa73
chore(common): cleanup, review adjustments
2022-09-21 08:39:21 +07:00
Joshua A. Horton
f6a480c6e6
chore(common): Merge branch 'refactor/web/low-level-build-scripts' into feat/common/builder-feature-tests
2022-09-21 08:31:34 +07:00
Joshua A. Horton
f7c399aa96
change(common): more adjustments per PR review
2022-09-21 08:30:32 +07:00
Marc Durdin
a3129adedc
refactor(common): rename builder_has_action and document
...
* `builder_has_action` renamed to `builder_start_action`
* `builder_report` renamed to `builder_finish_action`
* `builder_has_action` created to be a silent test for the action
* Added reasonably comprehensive documentation.
2022-09-21 10:21:35 +10:00
Joshua A. Horton
636e69b841
feat(common): builder trap-functionality testing
2022-09-20 15:46:25 +07:00
Joshua A. Horton
6aaad72d11
docs(common): tweak to new func doc-comments
2022-09-20 13:52:24 +07:00
Joshua A. Horton
5c51597a04
feat(common): _builder_match_action
2022-09-20 13:47:02 +07:00
Joshua A. Horton
7bc5220495
change(common): minor tweak to msg
2022-09-20 13:31:30 +07:00
Joshua A. Horton
675bd60d83
fix(common): trap with set -e + func use, feat: report on uncompleted actions
2022-09-20 13:13:36 +07:00
Joshua A. Horton
12ac0df573
chore(common): low-hanging requested changes
2022-09-20 12:07:14 +07:00
Joshua A. Horton
ccf2919bb4
feat(web): report-scoping no longer option; is perma-on
2022-09-20 10:56:01 +07:00