forked from aweandreverence/www.aweandreverence.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (27 loc) · 762 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
## 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:
yarn install
## dev - starts the Next.js development server on port 3000
dev: install
yarn run dev
## run - run the Next.js app server
run: install
yarn run build && yarn run start
## clean - clean previous builds
clean:
rm -rf out/*
## build - build the app for release
build: clean install
yarn 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