mirror of
https://github.com/hay-kot/homebox.git
synced 2025-07-30 14:20:27 +00:00
Initial commit
This commit is contained in:
commit
29f583e936
135 changed files with 18463 additions and 0 deletions
59
Taskfile.yml
Normal file
59
Taskfile.yml
Normal file
|
@ -0,0 +1,59 @@
|
|||
version: "3"
|
||||
|
||||
tasks:
|
||||
cli:
|
||||
cmds:
|
||||
- cd backend && go run ./app/cli/ {{.CLI_ARGS}}
|
||||
silent: false
|
||||
|
||||
cli:build:
|
||||
cmds:
|
||||
- cd backend && go build ./app/cli/
|
||||
silent: false
|
||||
|
||||
api:
|
||||
cmds:
|
||||
- cd backend/app/api/ && swag fmt
|
||||
- cd backend/app/api/ && swag init --dir=./,../../internal,../../pkgs
|
||||
# - |
|
||||
# npx swagger-typescript-api \
|
||||
# --path ./backend/app/api/docs/swagger.json \
|
||||
# --output ./client/auto-client \
|
||||
# --module-name-first-tag \
|
||||
# --modular
|
||||
- cd backend && go run ./app/api/ {{.CLI_ARGS}}
|
||||
silent: false
|
||||
sources:
|
||||
- ./backend/**/*.go
|
||||
|
||||
api:build:
|
||||
cmds:
|
||||
- cd backend && go build ./app/api/
|
||||
silent: true
|
||||
|
||||
api:test:
|
||||
cmds:
|
||||
- cd backend && go test ./app/api/
|
||||
silent: true
|
||||
|
||||
api:coverage:
|
||||
cmds:
|
||||
- cd backend && go test -race -coverprofile=coverage.out -covermode=atomic ./app/... ./internal/... ./pkgs/... -v -cover
|
||||
silent: true
|
||||
|
||||
client:test:
|
||||
cmds:
|
||||
- cd backend && go run ./app/api/ &
|
||||
- sleep 5
|
||||
- cd client && npm run test:ci
|
||||
silent: true
|
||||
|
||||
docker:build:
|
||||
cmds:
|
||||
- cd backend && docker-compose up --build
|
||||
silent: true
|
||||
|
||||
generate:types:
|
||||
cmds:
|
||||
- cd backend && go run ./app/generator
|
||||
silent: true
|
Loading…
Add table
Add a link
Reference in a new issue