Files
supabase/web/spec/Makefile
T
2022-08-11 15:01:22 +02:00

33 lines
1.0 KiB
Makefile

REPO_DIR=$(shell pwd)
run: download.tsdoc.v1 combine.tsdoc.v1
download.tsdoc.v1:
curl -sS https://supabase.github.io/supabase-js/spec.json \
> $(REPO_DIR)/tsdoc_v1/supabase.json
curl -sS https://supabase.github.io/gotrue-js/spec.json \
> $(REPO_DIR)/tsdoc_v1/gotrue.json
curl -sS https://supabase.github.io/postgrest-js/spec.json \
> $(REPO_DIR)/tsdoc_v1/postgrest.json
curl -sS https://supabase.github.io/realtime-js/spec.json \
> $(REPO_DIR)/tsdoc_v1/realtime.json
curl -sS https://supabase.github.io/storage-js/spec.json \
> $(REPO_DIR)/tsdoc_v1/storage.json
curl -sS https://supabase.github.io/functions-js/spec.json \
> $(REPO_DIR)/tsdoc_v1/functions.json
combine.tsdoc.v1:
jq -s '{ name: "Combined Specs", children: [.[0], .[1], .[2], .[3], .[4], .[5]] }' \
$(REPO_DIR)/tsdoc_v1/supabase.json \
$(REPO_DIR)/tsdoc_v1/gotrue.json \
$(REPO_DIR)/tsdoc_v1/postgrest.json \
$(REPO_DIR)/tsdoc_v1/realtime.json \
$(REPO_DIR)/tsdoc_v1/storage.json \
$(REPO_DIR)/tsdoc_v1/functions.json \
> $(REPO_DIR)/tsdoc_v1/combined.json