2019-07-07 14:18:02 -03:00
|
|
|
version: '3'
|
2019-01-02 13:42:06 -02:00
|
|
|
|
|
|
|
tasks:
|
2022-11-12 09:26:35 -03:00
|
|
|
yarn:install:
|
2022-05-29 14:15:01 -03:00
|
|
|
desc: Setup Docusaurus locally
|
2019-01-02 13:42:06 -02:00
|
|
|
cmds:
|
2022-05-29 14:15:01 -03:00
|
|
|
- yarn install
|
2022-11-12 09:26:35 -03:00
|
|
|
sources:
|
|
|
|
- package.json
|
|
|
|
- yarn.lock
|
2019-01-02 13:42:06 -02:00
|
|
|
|
2022-11-02 11:39:05 -03:00
|
|
|
default:
|
2022-05-29 14:15:01 -03:00
|
|
|
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]
|
2022-06-11 19:16:11 -03:00
|
|
|
vars:
|
2022-09-04 17:38:29 -03:00
|
|
|
HOST: '{{default "localhost" .HOST}}'
|
2022-06-11 19:16:11 -03:00
|
|
|
PORT: '{{default "3001" .PORT}}'
|
2019-01-02 13:42:06 -02:00
|
|
|
cmds:
|
2022-09-04 17:38:29 -03:00
|
|
|
- npx docusaurus start --no-open --host={{.HOST}} --port={{.PORT}}
|
2020-12-27 18:55:55 -03:00
|
|
|
|
2022-05-29 14:15:01 -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:
|
2022-05-29 14:15:01 -03:00
|
|
|
- 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
|
2022-05-29 14:15:01 -03:00
|
|
|
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
|