1
0
mirror of https://github.com/go-task/task.git synced 2025-01-24 05:17:21 +02:00
task/docs/Taskfile.yml

43 lines
877 B
YAML
Raw Normal View History

2019-07-07 14:18:02 -03:00
version: '3'
tasks:
2022-11-12 09:26:35 -03:00
yarn:install:
desc: Setup Docusaurus locally
cmds:
- yarn install
2022-11-12 09:26:35 -03:00
sources:
- package.json
- yarn.lock
2022-11-02 11:39:05 -03:00
default:
desc: Start website
2022-11-12 09:26:35 -03:00
deps: [yarn:install]
2022-11-02 11:39:05 -03:00
aliases: [s, start]
vars:
HOST: '{{default "localhost" .HOST}}'
PORT: '{{default "3001" .PORT}}'
cmds:
- npx docusaurus start --no-open --host={{.HOST}} --port={{.PORT}}
2020-12-27 18:55:55 -03:00
build:
desc: Build website
2022-11-12 09:26:35 -03:00
deps: [yarn:install]
2020-12-27 18:55:55 -03:00
cmds:
- npx docusaurus build
clean:
desc: Clean temp directories
cmds:
- rm -rf ./build
deploy:
2022-10-14 19:28:27 -03:00
desc: Build and deploy Docusaurus
summary: Requires GIT_USER and GIT_PASS envs to be previous set
cmds:
- npx docusaurus deploy
2022-12-17 11:43:43 -03:00
upgrade:
desc: Upgrade Docusaurus
cmds:
- yarn upgrade @docusaurus/core@latest @docusaurus/preset-classic@latest