-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (33 loc) · 1.38 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
-include .env
export
.PHONY: smol-rewrite
smol-rewrite:
# https://platform.openai.com/docs/models/gpt-4
USE_FULL_PROJECT_PROMPT= OPENAI_DEFAULT_MODEL=gpt-4 OPENAI_DEFAULT_MAX_TOKENS=0 python3 ../developer/main_no_modal.py ./SPEC.md ./versions/latest
smol-debug:
# https://platform.openai.com/docs/models/gpt-4
USE_FULL_PROJECT_PROMPT=True OPENAI_DEFAULT_MODEL=gpt-3.5-turbo-16k-0613 OPENAI_DEFAULT_MAX_TOKENS=9000 python3 ../developer/debugger_no_modal.py --directory ./versions/latest 'REPLACEME'
.PHONY: sync-hacks
sync-hacks:
rsync -av ~/Library/Mobile\ Documents/iCloud~md~obsidian/Documents/goooseman-secrets/project-dev-sparks/hacks/ ./content/hacks --delete
.PHONY: serve
serve:
cd versions/latest && make serve
.PHONY: build
build:
curl https://gc.zgo.at/count.js > ./static/c.js
cd versions/v0.0.0 && hugo
mkdir public || echo 'Public already exists'
cp -r ./versions/v0.0.0/public ./public/v0.0.0
cd versions/v0.1.0 && hugo
mkdir public || echo 'Public already exists'
cp -r ./versions/v0.1.0/public ./public/v0.1.0
cd versions/v1.0.0 && hugo
mkdir public || echo 'Public already exists'
cp -r ./versions/v1.0.0/public ./public/v1.0.0
cd versions/v1.1.0 && hugo
mkdir public || echo 'Public already exists'
cp -r ./versions/v1.1.0/public ./public/v1.1.0
cd versions/latest && hugo
mkdir public || echo 'Public already exists'
cp -r ./versions/latest/public ./public/latest