2019-07-07 19:18:02 +02:00
|
|
|
version: '3'
|
2019-01-02 17:42:06 +02:00
|
|
|
|
|
|
|
tasks:
|
2022-05-29 19:15:01 +02:00
|
|
|
setup:
|
|
|
|
desc: Setup Docusaurus locally
|
2019-01-02 17:42:06 +02:00
|
|
|
cmds:
|
2022-05-29 19:15:01 +02:00
|
|
|
- yarn install
|
2019-01-02 17:42:06 +02:00
|
|
|
|
2022-05-29 19:15:01 +02:00
|
|
|
start:
|
|
|
|
desc: Start website
|
2022-06-12 00:16:11 +02:00
|
|
|
vars:
|
2022-09-04 22:38:29 +02:00
|
|
|
HOST: '{{default "localhost" .HOST}}'
|
2022-06-12 00:16:11 +02:00
|
|
|
PORT: '{{default "3001" .PORT}}'
|
2019-01-02 17:42:06 +02:00
|
|
|
cmds:
|
2022-09-04 22:38:29 +02:00
|
|
|
- npx docusaurus start --no-open --host={{.HOST}} --port={{.PORT}}
|
2020-12-27 23:55:55 +02:00
|
|
|
|
2022-05-29 19:15:01 +02:00
|
|
|
build:
|
|
|
|
desc: Build website
|
2020-12-27 23:55:55 +02:00
|
|
|
cmds:
|
2022-05-29 19:15:01 +02:00
|
|
|
- npx docusaurus build
|
|
|
|
|
|
|
|
clean:
|
|
|
|
desc: Clean temp directories
|
|
|
|
cmds:
|
|
|
|
- rm -rf ./build
|
|
|
|
|
|
|
|
deploy:
|
|
|
|
desc: Build and deploy Docusaurus. Requires GIT_USER and GIT_PASS envs to be previous set
|
|
|
|
cmds:
|
|
|
|
- npx docusaurus deploy
|