
* 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
31 lines
No EOL
722 B
Bash
Executable file
31 lines
No EOL
722 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
function execute_tsc() {
|
|
execute_npm_command tsc $@
|
|
}
|
|
|
|
function execute_ttsc() {
|
|
execute_npm_command ttsc $@
|
|
}
|
|
|
|
function execute_npm_command() {
|
|
command_name=$1
|
|
command_variable="command_$command_name"
|
|
#echo "Variable names $command_variable"
|
|
|
|
if [ "${!command_variable}" == "" ]; then
|
|
node_bin=$(npm bin)
|
|
#echo "Node root ${node_bin}"
|
|
|
|
if [ ! -e "${node_bin}/${command_name}" ]; then
|
|
echo "Could not find \"$command_name\" command"
|
|
echo "May type npm install"
|
|
exit 1
|
|
fi
|
|
|
|
eval "${command_variable}=\"${node_bin}/${command_name}\""
|
|
fi
|
|
|
|
echo "Arguments: ${@:2}"
|
|
${!command_variable} ${@:2}
|
|
} |