initial commit

This commit is contained in:
Timur Gordon
2025-08-26 14:47:52 +02:00
commit 010ecc7c71
18 changed files with 1543 additions and 0 deletions

18
scripts/install.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/bash
# Install V & Herolib
curl 'https://raw.githubusercontent.com/freeflowuniverse/herolib/refs/heads/development/install_v.sh' > /tmp/install_v.sh
bash /tmp/install_v.sh --herolib
pushd ${HOME}/code/github/freeflowuniverse/herolib
./install_herolib.vsh
popd
# Install runner
SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
MODULE_DIR="${SCRIPT_DIR}/../"
# Link module to vmodules
mkdir -p "${HOME}/.vmodules/herocode"
unlink ${HOME}/.vmodules/herocode/runner
ln -s ${MODULE_DIR}/src ${HOME}/.vmodules/herocode/runner

6
scripts/run.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/bash
SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
MODULE_DIR="${SCRIPT_DIR}/../"
${MODULE_DIR}/cmd/runner.vsh

10
scripts/test.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
# serve.sh - Build optimized WASM and serve with Caddy + Brotli compression
set -e
SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
SOURCE_DIR="${SCRIPT_DIR}/../src"
pushd ${SOURCE_DIR}
vtest
popd