Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Commit

Permalink
Merge pull request #61 from mcataford/build/reduce-taskfile-frontend-…
Browse files Browse the repository at this point in the history
…complexity

refactor(taskfiles): remove redundant path to frontend
  • Loading branch information
mcataford authored Dec 18, 2023
2 parents 5874c00 + f8b5076 commit 49aab23
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
14 changes: 2 additions & 12 deletions Taskfile.frontend.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 3 additions & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ includes:
be:
taskfile: ./Taskfile.backend.yml
dir: backend
fe: ./Taskfile.frontend.yml
fe:
taskfile: ./Taskfile.frontend.yml
dir: frontend

0 comments on commit 49aab23

Please sign in to comment.