-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathjustfile
More file actions
27 lines (22 loc) · 756 Bytes
/
justfile
File metadata and controls
27 lines (22 loc) · 756 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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)"