62c53a6b4d
* Initial rough draft switch to sqlite. * Rewrote cache implemenation. * Provide typed tasks. * Task cleanup. * Use same db for tasks. * Provide task queue registration and service container injection. * Added optional delay to tasks. Pool buffers when encoding. * Added tests for the task client and runner. * Added handler examples for caching and tasks. * Cleanup and documentation. * Use make in workflow. * Updated documentation. * Updated documentation.
31 lines
541 B
Makefile
31 lines
541 B
Makefile
# Install Ent code-generation module
|
|
.PHONY: ent-install
|
|
ent-install:
|
|
go get -d entgo.io/ent/cmd/ent
|
|
|
|
# Generate Ent code
|
|
.PHONY: ent-gen
|
|
ent-gen:
|
|
go generate ./ent
|
|
|
|
# Create a new Ent entity
|
|
.PHONY: ent-new
|
|
ent-new:
|
|
go run entgo.io/ent/cmd/ent new $(name)
|
|
|
|
# Run the application
|
|
.PHONY: run
|
|
run:
|
|
clear
|
|
go run cmd/web/main.go
|
|
|
|
# Run all tests
|
|
.PHONY: test
|
|
test:
|
|
go test -count=1 -p 1 ./...
|
|
|
|
# Check for direct dependency updates
|
|
.PHONY: check-updates
|
|
check-updates:
|
|
go list -u -m -f '{{if not .Indirect}}{{.}}{{end}}' all | grep "\["
|