-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (30 loc) · 865 Bytes
/
Makefile
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
## help - Display help about make targets for this Makefile
help:
@cat Makefile | grep '^## ' --color=never | cut -c4- | sed -e "`printf 's/ - /\t- /;'`" | column -s "`printf '\t'`" -t
## install - install dependency packages
install:
npm install
## dev - starts the Next.js development server on port 3000
dev: install
npm run dev
## run - run the Next.js app server
run: install
npm run build && npm run start
## sync_data - Download data used to power site from Airtable
sync_data:
python3 scripts/sync_data.py
## clean - clean previous builds
clean:
rm -rf out/*
## build - build the app for release
build: clean install
npm run build
cp CNAME out/
touch out/.nojekyll
## deploy - build and deploy the app
deploy: clean build
rm -rf docs/
mv out docs
git add docs
git commit -m "Deploy `git rev-parse --verify HEAD`"
git push origin master