-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (35 loc) · 1.41 KB
/
Copy pathMakefile
File metadata and controls
38 lines (35 loc) · 1.41 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
run:
go run main.go
pushmain:
git add . && git commit -m "$(MSG)" && git push
pushv:
git tag $(TAG) && git push origin $(TAG)
cleancli:
rm -rf ~/devkitcli/ ~/.config/devkitcli/ ~/release/
buld_mac:
GOOS=darwin GOARCH=amd64 go build -o devkit-mac-amd64 && \
GOOS=darwin GOARCH=arm64 go build -o devkit-mac-arm64
build:
go build -o devkit && cp devkit ~/devkitcli/
clean:
cd example && rm -rf app api proto sup*
init:
make build && rm -rf new_fork/devkit.env && cd new_fork && ../devkit init
init_dirs:
cd example && mkdir -p app api proto/devkit/v1 supabase/queries && cp ../service.proto proto/devkit/v1/devkit_service.proto && cp ../api_template.txt api/api.go
new_api:
rm -rf new_fork && make build && ./devkit new api new_fork --org esolveeg
new_endpoint:
make build && cd new_fork && ../devkit new endpoint list -d products -f categories
new_feature:
make build && cd new_fork && ../devkit new feature categories -d products
new_domain:
make build && cd new_fork && rm -rf app/products && ../devkit new domain products
download_cli:
curl -sSL https://raw.githubusercontent.com/darwishdev/devkit-cli/refs/heads/main/install.sh | bash
seed_storage:
make build && cd new_fork && ../devkit seed storage -f assets -i icons
seed:
make build && cd new_fork && ../devkit seed accounts_schema --file-path accounts.xlsx --out-file q.sql
endpoint_test:
make build && make clean init_dirs new_domain new_feature new_endpoint