mirror of
https://github.com/casjaysdevdocker/tools
synced 2025-09-18 21:57:46 -04:00
🗃️ Committing everything that changed 🗃️
applications/ configs/ lists/ wwwroot/
This commit is contained in:
20
applications/bun/scripts/commands.sh
Normal file
20
applications/bun/scripts/commands.sh
Normal file
@@ -0,0 +1,20 @@
|
||||
EXEC_CMD_BIN="bun" # command to execute
|
||||
EXEC_CMD_ARGS="dev $DATA_DIR/index.ts" # command arguments
|
||||
|
||||
# define commands
|
||||
[ -d "$DATA_DIR" ] && cd "$DATA_DIR" || exit 1
|
||||
if [ -n "$START_SCRIPT" ]; then
|
||||
RUN_SCRIPT="$START_SCRIPT"
|
||||
elif [ -f "./src/index.ts" ]; then
|
||||
RUN_SCRIPT="./index.ts"
|
||||
elif [ -f "./index.ts" ]; then
|
||||
RUN_SCRIPT="./index.ts"
|
||||
elif [ -f "./app.ts" ]; then
|
||||
RUN_SCRIPT="./app.ts"
|
||||
elif [ -f "./server.ts" ]; then
|
||||
RUN_SCRIPT="./server.ts"
|
||||
fi
|
||||
|
||||
# Run bun install
|
||||
__exec_command $EXEC_CMD_BIN install
|
||||
EXEC_CMD_ARGS="dev $RUN_SCRIPT"
|
7
applications/bun/scripts/install.sh
Normal file
7
applications/bun/scripts/install.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
curl -q -fsSL "https://bun.sh/install" | bash &&
|
||||
ln -sf /usr/local/share/bun/bin/bun /usr/local/bin &&
|
||||
mkdir -p "${DEFAULT_DATA_DIR}/htdocs/www" &&
|
||||
git clone "https://github.com/casjay-templates/bunjs" "${DEFAULT_DATA_DIR}/htdocs/www/" &&
|
||||
rm -Rf ${DEFAULT_DATA_DIR}/htdocs/www/.git &&
|
||||
cd "${DEFAULT_DATA_DIR}/htdocs/www" &&
|
||||
/usr/local/bin/bun install
|
0
applications/bun/scripts/packages.sh
Normal file
0
applications/bun/scripts/packages.sh
Normal file
Reference in New Issue
Block a user