1
0
mirror of https://github.com/go-task/task.git synced 2024-12-04 10:24:45 +02:00

Add some alises to our own Taskfiles

This commit is contained in:
Andrey Nering 2022-10-14 19:28:27 -03:00
parent dda2004753
commit c51f04eca8
2 changed files with 7 additions and 1 deletions

View File

@ -2,6 +2,7 @@ version: '3'
includes:
docs:
aliases: [d]
taskfile: ./docs
dir: ./docs
@ -23,6 +24,7 @@ tasks:
install:
desc: Installs Task
aliases: [i]
sources:
- './**/*.go'
cmds:
@ -42,6 +44,7 @@ tasks:
lint:
desc: Runs golangci-lint
aliases: [l]
sources:
- './**/*.go'
cmds:
@ -65,6 +68,7 @@ tasks:
test:
desc: Runs test suite
aliases: [t]
deps: [install]
cmds:
- go test {{catLines .GO_PACKAGES}}

View File

@ -8,6 +8,7 @@ tasks:
start:
desc: Start website
aliases: [s]
vars:
HOST: '{{default "localhost" .HOST}}'
PORT: '{{default "3001" .PORT}}'
@ -25,6 +26,7 @@ tasks:
- rm -rf ./build
deploy:
desc: Build and deploy Docusaurus. Requires GIT_USER and GIT_PASS envs to be previous set
desc: Build and deploy Docusaurus
summary: Requires GIT_USER and GIT_PASS envs to be previous set
cmds:
- npx docusaurus deploy