mirror of
https://github.com/keymanapp/keyman.git
synced 2026-10-08 06:57:29 +00:00
Alphebetize function names in build.sh.
This commit is contained in:
parent
fc69a08977
commit
dcd169dd4e
1 changed files with 7 additions and 7 deletions
|
|
@ -24,13 +24,6 @@ build-worker () {
|
|||
npm run tsc -- -p ./worker/tsconfig.json || fail "Could not build worker."
|
||||
}
|
||||
|
||||
# Creates embedded_worker.js. Must be run after the worker is built for the
|
||||
# first time
|
||||
wrap-worker ( ) {
|
||||
echo "> wrap-worker-code LMLayerWorkerCode ./worker/index.js > ${EMBEDDED_WORKER}"
|
||||
wrap-worker-code LMLayerWorkerCode ./worker/index.js > "${EMBEDDED_WORKER}"
|
||||
}
|
||||
|
||||
# A nice, extensible method for -clean operations. Add to this as necessary.
|
||||
clean ( ) {
|
||||
rm -f "${EMBEDDED_WORKER}"
|
||||
|
|
@ -68,6 +61,13 @@ unit-test ( ) {
|
|||
npm run mocha -- --recursive ./unit_tests/headless/*.js
|
||||
}
|
||||
|
||||
# Creates embedded_worker.js. Must be run after the worker is built for the
|
||||
# first time
|
||||
wrap-worker ( ) {
|
||||
echo "> wrap-worker-code LMLayerWorkerCode ./worker/index.js > ${EMBEDDED_WORKER}"
|
||||
wrap-worker-code LMLayerWorkerCode ./worker/index.js > "${EMBEDDED_WORKER}"
|
||||
}
|
||||
|
||||
# Wraps JavaScript code in a way that can be embedded in a worker.
|
||||
# To get the inner source code, include the file generated by this function,
|
||||
# then use name.toString() where `name` is the name passed into this
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue