-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
42 lines (33 loc) · 1.02 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
setup:
@if ! command -v devbox >/dev/null 2>&1; then curl -fsSL https://get.jetpack.io/devbox | bash; fi
@devbox install
@mkdir -p ./content
fetch:
@mix run -e 'Memo.UpdateGitSettings.run()'
@./git-fetch.sh
build:
@make clear-build
@mix run -e 'Memo.ExportMarkdown.run("vault", "content")'
@hugo -DEF --minify
clear-build:
@rm -rf public
@git checkout -- public
@rm -rf content
run:
@make clear-build
@mix run -e 'Memo.ExportMarkdown.run("vault", "content")'
@hugo -DEF --poll 2s --logLevel error server
watch-run:
@make clear-build
@mix run -e 'Memo.Application.watch_run("vault", "content")'
duckdb-export:
@rm -f vault.duckdb
@mix run -e 'Memo.Application.export_duckdb("vault", "parquet", "HEAD~5")'
duckdb-export-all:
@rm -f vault.duckdb
@mix run -e 'Memo.Application.export_duckdb("vault", "parquet", :all)'
duckdb-export-pattern:
@rm -f vault.duckdb
@mix run -e 'Memo.Application.export_duckdb("vault", "parquet", :all, "$(pattern)")'
sync-hashnode:
@mix run -e 'Memo.Application.sync_hashnode("vault")'