diff options
Diffstat (limited to 'justfile')
| -rw-r--r-- | justfile | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/justfile b/justfile new file mode 100644 index 0000000..7047e40 --- /dev/null +++ b/justfile @@ -0,0 +1,27 @@ +# runs when called without arguments +default: + @just --list + +# deploy to server +deploy: + just version + just feed + ./deploy.sh + +# run blog for local development +dev: + deno run --allow-env --allow-net --allow-read main.ts development + +# generate feeds +feed: + deno run --allow-env --allow-read --allow-write feed.ts + +# run blog for production +start: + deno run --allow-env --allow-net --allow-read main.ts + +# generate version.txt +version: + @echo "Updating version.txt with ChronVer" + @deno eval "const now = new Date(); const version = \`\${now.getFullYear()}.\${String(now.getMonth() + 1).padStart(2, '0')}.\${String(now.getDate()).padStart(2, '0')}\`; await Deno.writeTextFile('version.txt', version);" + @echo "Version updated: $(cat version.txt)" |
