-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
55 lines (40 loc) · 1.27 KB
/
Makefile
File metadata and controls
55 lines (40 loc) · 1.27 KB
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
.PHONY: run this clean all weekly six test export-json spin-up spin-build spin-watch
all:
-make clean
make this
today:
./hack/today.sh
weekly:
./hack/weekly.sh
six:
./hack/six.sh
run:
./hack/runme.sh
this: this_month.csv
this_month.csv:
./hack/this-month.sh
export-json:
set -a && . ./.env.local && set +a && INCLUDE_NONBILLABLE=true OUTPUT_FILE=web/public/data.json ruby export.rb ^
export-six:
set -a && . ./.env.local && set +a && INCLUDE_NONBILLABLE=true OUTPUT_FILE=web/public/six.json ruby export.rb 6
summary-json:
set -a && . ./.env.local && set +a && ruby generate_summary.rb
spin-build:
cd web && npm run build
cd spin-app/time-tracker-service && spin build
spin-up: export-json export-six summary-json spin-build
set -a && . ./.env.local && set +a && \
cd spin-app/time-tracker-service && \
spin up --variable early_api_key=$$EARLY_API_KEY --variable early_api_secret=$$EARLY_API_SECRET
spin-watch: export-json export-six summary-json
cd web && npm run build
set -a && . ./.env.local && set +a && \
cd spin-app/time-tracker-service && \
spin watch --variable early_api_key=$$EARLY_API_KEY --variable early_api_secret=$$EARLY_API_SECRET
clean:
rm this_month.csv
rm output.csv
rm -f web/public/data.json
rm -rf web/dist
test:
cd test && ruby run_tests.rb