mirror of
https://github.com/Xevion/banner.git
synced 2025-12-10 02:06:33 -06:00
feat: add taskfile
This commit is contained in:
39
Taskfile.yml
Normal file
39
Taskfile.yml
Normal file
@@ -0,0 +1,39 @@
|
||||
version: "3"
|
||||
|
||||
tasks:
|
||||
build:
|
||||
desc: Build the application
|
||||
cmds:
|
||||
- go build -o bin/banner ./cmd/banner
|
||||
sources:
|
||||
- ./cmd/banner/**/*.go
|
||||
- ./internal/**/*.go
|
||||
generates:
|
||||
- bin/banner
|
||||
|
||||
run:
|
||||
desc: Run the application
|
||||
cmds:
|
||||
- go run ./cmd/banner
|
||||
deps: [build]
|
||||
|
||||
test:
|
||||
desc: Run tests
|
||||
cmds:
|
||||
- go test ./...
|
||||
env:
|
||||
ENVIRONMENT: test
|
||||
|
||||
clean:
|
||||
desc: Clean build artifacts
|
||||
cmds:
|
||||
- rm -rf bin/
|
||||
- go clean -cache
|
||||
- go clean -modcache
|
||||
|
||||
dev:
|
||||
desc: Run in development mode
|
||||
cmds:
|
||||
- go run ./cmd/banner
|
||||
env:
|
||||
ENVIRONMENT: development
|
||||
Reference in New Issue
Block a user