From f8b5076e2e573545c5d44408981d70ff7e51b42b Mon Sep 17 00:00:00 2001 From: Marc Cataford Date: Mon, 18 Dec 2023 00:07:02 -0500 Subject: [PATCH] refactor(taskfiles): remove redundant path to frontend --- Taskfile.frontend.yml | 14 ++------------ Taskfile.yml | 4 +++- 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/Taskfile.frontend.yml b/Taskfile.frontend.yml index f1ded59..d598780 100644 --- a/Taskfile.frontend.yml +++ b/Taskfile.frontend.yml @@ -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 diff --git a/Taskfile.yml b/Taskfile.yml index ebdd8c6..997dc0d 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -6,4 +6,6 @@ includes: be: taskfile: ./Taskfile.backend.yml dir: backend - fe: ./Taskfile.frontend.yml + fe: + taskfile: ./Taskfile.frontend.yml + dir: frontend