quaso 0.57.7

Toolset for making Micro Games quickly
Documentation
# List the just recipe list
list:
    just --list

format:
    cargo fmt

build:
    cargo build
    cargo build --examples

build-wasm:
    RUSTFLAGS='--cfg getrandom_backend="wasm_js"' cargo build --target wasm32-unknown-unknown

run NAME="top-down" PLATFORM="desktop":
    cd ./templates/{{NAME}} && just run {{PLATFORM}}

build-examples:
    cargo build --examples

run-example NAME:
  #!/usr/bin/env bash
  BINARY=$(find ./target/debug/examples -type f -executable -name "{{NAME}}*" | head -n 1)
  if [ -z "$BINARY" ]; then
    echo "No binary found matching: {{NAME}}*"
    exit 1
  fi
  echo "Running binary: $BINARY"
  "$BINARY"

clippy:
    cargo clippy

test:
    cargo test
    cargo test --examples

checks:
    just format
    just build
    just build-wasm
    just clippy
    just test
    cd ./templates/fresh-start && just checks
    cd ./templates/slot-machine && just checks
    cd ./templates/top-down && just checks

clean:
    find . -name target -type d -exec rm -r {} +
    just remove-lockfiles

remove-lockfiles:
    find . -name Cargo.lock -type f -exec rm {} +

list-outdated:
    cargo outdated -R -w

update:
    cargo update --aggressive

example NAME="hello_world":
    cargo run --all-features --example {{NAME}}

publish:
    cargo publish --no-verify

package-template NAME:
    rm -rf ./templates/{{NAME}}/dist/
    rm -rf ./templates/{{NAME}}/pkg/
    rm -f ./templates/{{NAME}}/assets.pack
    powershell Compress-Archive -Force "./templates/{{NAME}}/*" ./target/{{NAME}}-template.zip

package-templates:
    just package-template "fresh-start"
    just package-template "slot-machine"
    just package-template "top-down"