1
0
mirror of https://github.com/go-task/task.git synced 2024-12-12 10:45:49 +02:00
task/website/Taskfile.yml

65 lines
1.5 KiB
YAML
Raw Normal View History

version: "3"
tasks:
2022-11-12 14:26:35 +02:00
yarn:install:
desc: Setup Docusaurus locally
cmds:
- yarn install
2022-11-12 14:26:35 +02:00
sources:
- package.json
- yarn.lock
2022-11-02 16:39:05 +02:00
default:
desc: Start website
2022-11-12 14:26:35 +02:00
deps: [yarn:install]
2022-11-02 16:39:05 +02:00
aliases: [s, start]
vars:
HOST: '{{default "0.0.0.0" .HOST}}'
PORT: '{{default "3001" .PORT}}'
cmds:
- npx docusaurus start --no-open --host={{.HOST}} --port={{.PORT}}
2020-12-27 23:55:55 +02:00
build:
desc: Build website
2022-11-12 14:26:35 +02:00
deps: [yarn:install]
2020-12-27 23:55:55 +02:00
cmds:
- npx docusaurus build
preview:
desc: Preview Website
deps: [build]
aliases: [serve]
vars:
HOST: '{{default "localhost" .HOST}}'
PORT: '{{default "3001" .PORT}}'
cmds:
- npx docusaurus serve --no-open --host={{.HOST}} --port={{.PORT}}
clean:
desc: Clean temp directories
cmds:
- rm -rf ./build
deploy:
2022-10-15 00:28:27 +02: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 16:43:43 +02:00
upgrade:
desc: Upgrade Docusaurus
cmds:
- yarn upgrade @docusaurus/core@latest @docusaurus/preset-classic@latest @docusaurus/module-type-aliases@latest @docusaurus/tsconfig@latest @docusaurus/types@latest
crowdin:push:
desc: Upload source files to a Crowdin project
deps: [yarn:install]
cmds:
- npx crowdin push
crowdin:pull:
desc: Download latest translations from Crowdin to the specified place
deps: [yarn:install]
cmds:
- npx crowdin pull --export-only-approved