From fde482950378cf5581f58887656656b91a75d87d Mon Sep 17 00:00:00 2001 From: Hayden <64056131+hay-kot@users.noreply.github.com> Date: Fri, 17 Feb 2023 18:43:12 -0900 Subject: [PATCH] new PR tasks --- Taskfile.yml | 19 +++++++++++++++++++ frontend/package.json | 1 + 2 files changed, 20 insertions(+) diff --git a/Taskfile.yml b/Taskfile.yml index a16daa5..e619395 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -108,6 +108,16 @@ tasks: cmds: - cd frontend && pnpm dev + ui:fix: + desc: Runs prettier and eslint on the frontend + cmds: + - cd frontend && pnpm run lint:fix + + ui:check: + desc: Runs type checking + cmds: + - cd frontend && pnpm run typecheck + test:ci: desc: Runs end-to-end test on a live server (only for use in CI) cmds: @@ -116,3 +126,12 @@ tasks: - sleep 5 - cd frontend && pnpm run test:ci silent: true + + pr: + desc: Runs all tasks required for a PR + cmds: + - task: generate + - task: go:all + - task: ui:check + - task: ui:fix + - task: test:ci \ No newline at end of file diff --git a/frontend/package.json b/frontend/package.json index 69a8d34..0887c5f 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -7,6 +7,7 @@ "postinstall": "nuxt prepare", "lint": "eslint --ext \".ts,.js,.vue\" --ignore-path ../.gitignore .", "lint:fix": "eslint --ext \".ts,.js,.vue\" --ignore-path ../.gitignore . --fix", + "typecheck": "nuxi typecheck", "test:ci": "TEST_SHUTDOWN_API_SERVER=true vitest --run --config ./test/vitest.config.ts", "test:local": "TEST_SHUTDOWN_API_SERVER=false && vitest --run --config ./test/vitest.config.ts", "test:watch": " TEST_SHUTDOWN_API_SERVER=false vitest --config ./test/vitest.config.ts"