refactor(taskfiles): remove redundant path to frontend

This commit is contained in:
Marc 2023-12-18 00:07:02 -05:00
parent 5874c00685
commit f8b5076e2e
Signed by: marc
GPG key ID: 048E042F22B5DC79
2 changed files with 5 additions and 13 deletions

View file

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

View file

@ -6,4 +6,6 @@ includes:
be:
taskfile: ./Taskfile.backend.yml
dir: backend
fe: ./Taskfile.frontend.yml
fe:
taskfile: ./Taskfile.frontend.yml
dir: frontend