mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-06 00:45:32 +00:00
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 |
||
|---|---|---|
| .. | ||
| src | ||
| tests/cases | ||
| .gitignore | ||
| build.sh | ||
| package.json | ||
| README.md | ||
Keyman: Keyboard Processor Module
The Original Code is (C) 2017-2020 SIL International
The Keyboard Processor module is an internal component of KeymanWeb, seen within this repo at /web/.
Minimum Compilation Requirements
- A local installation of Node.js v8.9+.
-
Builds will call
npm installto automatically install further necessary build dependencies. -
Linux users can run the following to update to LTS version of nodejs
-
sudo apt-get install python-software-properties
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install nodejs
The build script may be found at src/build.sh.