diff options
author | ᴜɴᴋɴᴡᴏɴ <u@gogs.io> | 2020-09-04 04:05:36 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-04 04:05:36 +0800 |
commit | a533e8fb525d869ccb9fefc1294899913e4c8f6c (patch) | |
tree | 3dec1c7154094d0025e841745616c4f3ba65b9f2 /Taskfile.yml | |
parent | bb93cabd39f53f5a3d7a34545a24ac0fa4155f42 (diff) |
Taskfile: add desc to each task (#6304)
Diffstat (limited to 'Taskfile.yml')
-rw-r--r-- | Taskfile.yml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Taskfile.yml b/Taskfile.yml index 160c48f1..f4fafa02 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -2,6 +2,7 @@ version: '3' tasks: web: + desc: Build the binary and start the web server. deps: [build] cmds: - ./gogs web @@ -10,6 +11,7 @@ tasks: - internal/**/*.go build: + desc: Build the binary. cmds: - go build -v -ldflags ' @@ -26,6 +28,7 @@ tasks: sh: git rev-parse HEAD generate: + desc: Generate bindata for all assets. deps: [clean] cmds: - go generate internal/assets/conf/conf.go @@ -33,14 +36,17 @@ tasks: - go generate internal/assets/public/public.go test: + desc: Run all tests. cmds: - go test -cover -race ./... clean: + desc: Cleans up system meta files for code generation. cmds: - find . -name "*.DS_Store" -type f -delete release: + desc: Build the binary and pack resources to a ZIP file. deps: [build] cmds: - rm -rf {{.RELEASE_GOGS}} @@ -52,17 +58,21 @@ tasks: RELEASE_GOGS: release/gogs less: + desc: Generate CSS from LESS files. cmds: - lessc --clean-css --source-map "public/less/gogs.less" public/css/gogs.min.css fixme: + desc: Show all occurrences of "FIXME". cmds: - grep -rnw "FIXME" internal todo: + desc: Show all occurrences of "TODO". cmds: - grep -rnw "TODO" internal legacy: + desc: Identify legacy and deprecated lines. cmds: - grep -rnw "\(LEGACY\|Deprecated\)" internal |