2018-10-28 22:01:09 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
BASEDIR=$(dirname "$0")
|
|
|
|
cd "$BASEDIR"
|
2018-10-28 22:59:15 +00:00
|
|
|
source ../scripts/resolve_commands.sh
|
2018-10-28 22:01:09 +00:00
|
|
|
|
|
|
|
if [ ! -e declarations/imports_shared.d.ts ]; then
|
|
|
|
echo "generate the declarations first!"
|
|
|
|
echo "Execute: /scripts/build_declarations.sh"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ ! -e ../shared/generated/shared.js ]; then
|
|
|
|
echo "generate the shared packed file first!"
|
|
|
|
echo "Execute: /shared/generate_packed.sh"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2018-10-28 22:59:15 +00:00
|
|
|
execute_tsc -p tsconfig/tsconfig_packed.json
|
2018-10-28 22:01:09 +00:00
|
|
|
if [ $? -ne 0 ]; then
|
|
|
|
echo "Failed to build file"
|
|
|
|
exit 1
|
|
|
|
fi
|