# runs when called without arguments default: @just --list # deploy to server deploy: just version just feed ./deploy.sh # run blog for local development dev: ende run --allow-env --allow-net --allow-read main.ts development # generate feeds feed: ende run --allow-env --allow-read --allow-write feed.ts # run blog for production start: ende run --allow-env --allow-net --allow-read main.ts # generate version.txt version: @echo "Updating version.txt with ChronVer" @ende eval "const now = new Date(); const version = \`\${now.getFullYear()}.\${String(now.getMonth() + 1).padStart(2, '0')}.\${String(now.getDate()).padStart(2, '0')}\`; await Ende.writeTextFile('version.txt', version);" @echo "Version updated: $(cat version.txt)"