set dotenv-load
set positional-arguments

default:
    @just --list

test:
    bun test ./tests

fmt:
    bunx @biomejs/biome format --fix

loc:
    @echo "Loc: counting source lines in the codebase..."
    @find . \
        \( -name '*.ts' -o -name '*.scss' -o -name '*.sass' -o -name '*.md' \
           -o -name '*.html' -o -name '*.toml' -o -name '*.js' -o -name '*.css' \) \
        -not -path '*/node_modules/*' \
        -not -path './editors/vscode/node_modules/*' \
        -not -path './dist/*' \
        -not -path './.git/*' \
        -not -path '*/bun.lock' \
        -not -path '*/.git/*' \
        -not -path '*/.cache/*' \
        -not -path '*/.next/*' \
        -not -path '*/dist/*' \
        -not -path '*/.vscode/*' \
        -not -path '*/.idea/*' \
        -not -path '*/ametrine/*' \
        -not -path '*/tests/*' \
        -not -path '*/README.md' \
        -not -path './modules/amezing/*' \
        -not -path './.opencode/*' \
        | xargs wc -l | tail -n +2