initial commit
This commit is contained in:
18
scripts/install.sh
Executable file
18
scripts/install.sh
Executable 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
6
scripts/run.sh
Executable 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
10
scripts/test.sh
Executable 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
|
Reference in New Issue
Block a user