
* A lots of translation changes (Generate translation files) * Removed auto generated package lock file * Implementation of the translation system, inc generators. * improved loader error handling * Finalizing the translation system. Needs some tests and a final translation generation. As well a handy translation mapper or editor would be likely. May source this out into another project? * Finalizing the translation system * Finalized translation system and added polish and turkish google translation * Finally done :) * Fixed defautl repositories dosnt show up * fixed settings not initialized
34 lines
No EOL
794 B
Bash
Executable file
34 lines
No EOL
794 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
BASEDIR=$(dirname "$0")
|
|
cd "$BASEDIR"
|
|
source ../scripts/resolve_commands.sh
|
|
|
|
#Generate the loader definitions first
|
|
LOADER_FILE="declarations/exports_loader.d.ts"
|
|
if [ -e ${LOADER_FILE} ]; then
|
|
rm ${LOADER_FILE}
|
|
if [ $? -ne 0 ]; then
|
|
echo "Failed to remove loader file!\nThis could be critical later!"
|
|
fi
|
|
fi
|
|
npm run dtsgen -- --config $(pwd)/tsconfig/dtsconfig_loader.json -v
|
|
if [ ! -e ${LOADER_FILE} ]; then
|
|
echo "Failed to generate definitions"
|
|
echo "$result"
|
|
exit 1
|
|
fi
|
|
|
|
execute_ttsc -p tsconfig/tsconfig_packed.json
|
|
if [ $? -ne 0 ]; then
|
|
echo "Failed to generate packed file!"
|
|
exit 1
|
|
fi
|
|
|
|
#Now link the loader file
|
|
if [ ! -L generated/load.js ]; then
|
|
ln -rs js/load.js generated/load.js
|
|
fi
|
|
|
|
echo "Packed file generated!"
|
|
exit 0 |