21 lines
310 B
Plaintext
21 lines
310 B
Plaintext
set export
|
|
set quiet
|
|
set dotenv-load
|
|
|
|
build publish="false":
|
|
#!/usr/bin/env bash
|
|
if [ "{{publish}}" = false ]; then
|
|
export BASE_URL=""
|
|
fi
|
|
mkdir -p ./out
|
|
rm -rf ./out/*
|
|
cargo run
|
|
cp -r ./public ./out/public
|
|
|
|
test:
|
|
cargo test
|
|
|
|
format:
|
|
cargo fix --allow-dirty --allow-staged
|
|
cargo fmt -- --emit=files
|