Commit graph

24 commits

Author SHA1 Message Date
Marc Durdin
92ed99c4d6 chore(common): build script performance improvements
Improves build script performance by:
* using built-ins wherever possible (e.g. string splitting)
* eliminating redundant code
* using absolute (to $KEYMAN_ROOT) rather than relative paths to avoid realpath
* removing unnecessary `npm run` calls

BEFORE                         | AFTER
-------------------------------|----------------------
time ./core/build.sh --help    |
real    0m2.116s               | real    0m0.874s
user    0m0.578s               | user    0m0.198s
sys     0m0.984s               | sys     0m0.289s
-------------------------------|----------------------
time ./web/build.sh --help     |
real    0m3.523s               | real    0m0.757s
user    0m1.166s               | user    0m0.320s
sys     0m2.273s               | sys     0m0.455s
-------------------------------|----------------------
time ./web/build.sh -d         |
real    1m34.750s              | real    0m59.974s
user    0m9.721s               | user    0m6.284s
sys     0m19.652s              | sys     0m13.202s

@keymanapp-test-bot skip
2023-03-13 07:18:09 +07:00
Marc Durdin
ce864ea923 chore: update standard script prolog to use builtin instead of dirname 2023-02-22 11:04:15 +07:00
Marc Durdin
463c7ff907 chore: remove greadlink from standard script prolog 2023-02-22 10:43:06 +07:00
Marc Durdin
4d53a277f3 chore: use builder_die, remove fail 2023-02-20 09:15:38 +07:00
Joshua A. Horton
889d347c02 chore(common): Merge branch 'master' into chore/common/js-ts-dependency-updates 2023-02-16 13:51:31 +07:00
Marc Durdin
4598f13ba8 chore(common): automatically apply _builder_check_color 2023-02-09 12:12:18 +07:00
Joshua A. Horton
24d3f35cc7 fix(developer): drops implicit 'dom' library from server tsconfig 2023-02-09 10:32:02 +07:00
Joshua A. Horton
fcd381e5b8 chore(web): Merge branch 'master' into change/web/reorg-tools 2023-02-02 09:20:04 +07:00
Joshua A. Horton
ede1068d51 chore(web): Merge branch 'master' into change/web/reorg-source-src-reorg 2023-02-02 09:18:46 +07:00
Joshua A. Horton
5e961d91f0 chore(web): ye olde copy-paste cleanup 2022-12-01 10:46:06 +07:00
Joshua A. Horton
a210e5fe78 chore(web): Merge remote-tracking branch 'origin/change/web/reorg-tools' into change/web/reorg-tools 2022-12-01 10:44:39 +07:00
Joshua Horton
b91451b933
chore(web): Apply suggestions from code review
Co-authored-by: Marc Durdin <marc@durdin.net>
2022-12-01 10:44:47 +07:00
Joshua A. Horton
edcadb744b chore(web): Merge branch 'change/web/reorg-source-src-reorg' into change/web/reorg-tools 2022-12-01 10:42:47 +07:00
Joshua A. Horton
49ab4d4cef chore(web): a bit more cleanup 2022-12-01 08:28:58 +07:00
Joshua A. Horton
5fdf409f37 fix(web): engine bundle-build check path logic 2022-11-29 09:47:38 +07:00
Joshua A. Horton
72f8de256d fix(web): builder dependency spec issues 2022-11-29 09:47:36 +07:00
Joshua A. Horton
fe95bfe04c change(web): separate src/engine build.sh 2022-11-29 09:46:49 +07:00
Joshua A. Horton
6bbb946743 docs(web): tools -> engine readme.md tweaks 2022-11-29 09:46:47 +07:00
Joshua A. Horton
a57506a619 change(web): device-detect and element-wrappers as engine/ components 2022-11-29 09:45:53 +07:00
Joshua A. Horton
ba21cb06f5 change(web): src/engine -> src/engine/main 2022-11-29 09:45:44 +07:00
Joshua A. Horton
448fa44715 chore(web): Merge branch 'chore/web/top-level-build-script-rework' into change/web/reorg-source-src-reorg 2022-11-28 10:21:48 +07:00
Joshua A. Horton
b3724024a1 chore(web): Merge branch 'chore/web/top-level-build-script-rework' into change/web/reorg-source-src-reorg 2022-11-22 12:55:26 +07:00
Joshua A. Horton
db16fe5e40 refactor(web): regularizes build output pattern, DRYs build functions 2022-10-25 15:01:43 +07:00
Joshua A. Horton
241fc1f0e1 change(web): src modularization, build dir reorg 2022-10-21 15:54:38 +07:00