about summary refs log tree commit diff stats
path: root/justfile
blob: 169f1d26422f807d109d3094024e1d6e2ea6d1fa (plain)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#! /usr/bin/env nix-shell
#! nix-shell -i "just --justfile"

default:
	@just --list --justfile {{ justfile() }} --unsorted

clean:
	rm -fr website

check-licenses:
	nix run nixpkgs#go-licenses check ./...

check-links:
	hyperlink website/public

update-all:
	npin update
	go get -u all
	gomod2nix --outdir nix

build:
	go run ./cmd/build

dev:
	modd

deploy-vercel-preview: clean build
	vercel pull --environment=preview
	vercel deploy

deploy-vercel: clean build check-links
	vercel pull --environment=production
	vercel deploy --prod

deploy-netlify-preview: clean build
	netlify deploy

deploy-netlify: clean build check-links
	netlify deploy --prodIfUnlocked

deploy-preview: deploy-vercel-preview deploy-netlify-preview

deploy-production: deploy-vercel deploy-netlify