Skip to content

Commit

Permalink
Split gen task to individual tasks (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgdigital committed May 18, 2024
1 parent edd27be commit a301494
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,51 @@ version: "3"

tasks:
gen:
cmds:
- task gen-go
- task gen-gorm
- task gen-torznab-categories
- task gen-gql-enums
- task gen-gql
- task gen-protoc
- task gen-mockery
- task gen-classifier-schema
- task gen-webui-graphql

gen-go:
cmds:
- go generate ./...

gen-gorm:
cmds:
- go run ./internal/dev gorm gen

gen-torznab-categories:
cmds:
- go run ./internal/torznab/gencategories/gencategories.go

gen-gql-enums:
cmds:
- go run ./internal/gql/enums/gen/genenums.go

gen-gql:
cmds:
- go run github.com/99designs/gqlgen generate --config ./internal/gql/gqlgen.yml

gen-protoc:
cmds:
- protoc --go_out=. ./internal/protobuf/bitmagnet.proto

gen-mockery:
cmds:
- go run github.com/vektra/mockery/v2

gen-classifier-schema:
cmds:
- go run . classifier schema --format json > ./bitmagnet.io/schemas/classifier-0.1.json

gen-webui-graphql:
cmds:
- cd webui && npm run graphql:codegen

lint:
Expand Down

0 comments on commit a301494

Please sign in to comment.