version: '3'
env:
FE_BASE_PATH: "/{{ .TASKFILE_DIR }}/frontend"
tasks:
bootstrap:
internal: true
cmd: . script/bootstrap
sources:
- "{{ .FE_BASE_PATH }}/yarn.lock"
generates:
- "{{ .FE_BASE_PATH }}/.yarn/*"
dir: frontend
start:
desc: "Starts the frontend application."
deps: [bootstrap]
cmd: yarn start
build:
desc: "Build the app."
cmd: yarn build
test:
desc: "Runs the frontend test suite."
cmd: yarn test {{ .CLI_ARGS }}
lint:
desc: "Checks lint and formatting."
cmd: yarn lint
lintfix:
desc: "Fixes lint and formatting."
cmd: yarn lint:fix
typecheck:
desc: "Validates types."
cmd: yarn typecheck