-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
38 lines (28 loc) · 816 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
34
35
36
37
38
.DEFAULT_GOAL := run
run:
@dagster asset materialize --select \* -m ggdp
tables:
@python -c 'from ggdp import db; db.export_database_to_parquet("data/local.duckdb", "data/tables");'
dev:
@dagster dev
setup:
@command -v uv >/dev/null 2>&1 || pip install -U uv
@uv venv
@uv pip install -U -e ".[dev]"
sql:
@harlequin "./data/local.duckdb"
test:
@cd dbt && dbt test
preview:
@quarto preview portal
render:
@cd dbt && dbt docs generate
@mkdir -p dbt/target/docs
@cp dbt/target/*.json dbt/target/index.html dbt/target/graph.gpickle dbt/target/docs/
@quarto render portal
@cp -r dbt/target/docs/ portal/_site/dbt
publish:
@quarto publish gh-pages portal --no-prompt
clean:
@rm -rf portal/.quarto data/*.parquet data/*.duckdb portal/_site data/tables
@rm -rf dbt/target dbt/logs dbt/dbt_packages