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

View file

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