mirror of
https://github.com/keymanapp/keyman.git
synced 2026-10-30 17:57:57 +00:00
sentry-manager is used by Keyman Engine for Android and Keyman Engine for iOS, but not directly by KeymanWeb, nor does it have any dependencies on /web. So it does not make sense to keep it under /web. es-bundling is used by sentry-manager and potentially other /common/web tools in the future, so moving it under /common/tools makes it more consistent in the future. This is part of simplifying the web source tree; these changes do not make significant build performance differences at this time. Test-bot: skip
44 lines
No EOL
1.2 KiB
Bash
Executable file
44 lines
No EOL
1.2 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
#
|
|
# Compile our sourcemap-path remapping module for use by Web builds, releases, etc.
|
|
#
|
|
## START STANDARD BUILD SCRIPT INCLUDE
|
|
# adjust relative paths as necessary
|
|
THIS_SCRIPT="$(readlink -f "${BASH_SOURCE[0]}")"
|
|
. "$(dirname "$THIS_SCRIPT")/../../../../../resources/build/builder-full.inc.sh"
|
|
## END STANDARD BUILD SCRIPT INCLUDE
|
|
|
|
. "$KEYMAN_ROOT/resources/build/utils.inc.sh"
|
|
. "$KEYMAN_ROOT/resources/build/node.inc.sh"
|
|
. "$KEYMAN_ROOT/web/common.inc.sh"
|
|
|
|
################################ Main script ################################
|
|
|
|
SUBPROJECT_NAME=engine/predictive-text/templates
|
|
|
|
builder_describe "Builds the predictive-text model template implementation module" \
|
|
"@/web/src/common/web-utils" \
|
|
"@../wordbreakers" \
|
|
"clean" \
|
|
"configure" \
|
|
"build" \
|
|
"test"
|
|
|
|
builder_describe_outputs \
|
|
configure /node_modules \
|
|
build build/obj/index.js
|
|
|
|
builder_parse "$@"
|
|
|
|
|
|
function do_build() {
|
|
tsc -b
|
|
|
|
# Declaration bundling.
|
|
tsc --emitDeclarationOnly --outFile ./build/lib/index.d.ts
|
|
}
|
|
|
|
builder_run_action configure node_select_version_and_npm_ci
|
|
builder_run_action clean rm -rf build/
|
|
builder_run_action build do_build
|
|
builder_run_action test test-headless-typescript $SUBPROJECT_NAME |