-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
55 lines (46 loc) · 1.05 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Makefile for GNU Make projects
#
# Usage:
# make
# Runs clean and docker up
# make clean
# Deoetes generated files
# make up
# docker up
# make down
# docker down
# make push
# Adds all unstaged changes and commits and pushes
# make fix
# Appplies code formatting
# make sync
# Pulls changes from git and pushes local commits
# Default when make is called w/o args
default:
make clean
make up
# Deletes all the generated files
clean:
make down
# In order: generated HTML, 2 caches
rm -rf _site/ .sass-cache/ .jekyll-metadata
docker-compose rm --force
# Serves the website on localhost:4000
up:
docker-compose up --force-recreate --always-recreate-deps --build
# Stop serving the website
down:
docker-compose down
# Adds all files, commits an empty
# message to git, and pushes to GitHub
push:
git add .
git commit --allow-empty-message -m "${date}"
git push
fix:
npx prettier --write --print-width 60 --trailing-comma=none --prose-wrap always '**/*.{md,html,yml,yaml}'
lint: fix
sync: pull
git push
pull:
git pull --rebase