Alphebetize function names in build.sh.

This commit is contained in:
Eddie Antonio Santos 2018-11-27 10:42:53 -07:00
parent fc69a08977
commit dcd169dd4e
No known key found for this signature in database
GPG key ID: DD411EA4D9509D87

View file

@ -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