Skip to content

Commit 8141c0d

Browse files
committed
chore: set quickcheck to run on frontend deploy (lint & typecheck)
Also added workaround for vuejs/language-tools#5419
1 parent a74b1fa commit 8141c0d

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

apps/frontend/app/components/ConvexIntegrationTest.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<script setup lang="ts">
2+
import type { Doc } from 'backend-convex/convex/_generated/dataModel'
23
import { api } from 'backend-convex/convex/_generated/api'
34
import { useToast } from '~/lib/shadcn/components/ui/toast'
45
@@ -27,7 +28,10 @@ async function testConvexViaBackendTasksCTA() {
2728
isFetchingTasks.value = true
2829
2930
await hcParse($apiClient.api.dummy.convexTasks.$get())
30-
.then(r => toast({ description: r.map(t => t.text).join('\n') }))
31+
// Explicit type cast is needed here because `vue-tsc` does not yet work with
32+
// deep-nested TS reference (`frontend` => `backend` => `backend-convex`)
33+
// https://github.com/vuejs/language-tools/issues/5419
34+
.then((r: Doc<'tasks'>[]) => toast({ description: r.map(t => t.text).join('\n') }))
3135
.catch(e => toast({ variant: 'destructive', description: e.message }))
3236
3337
isFetchingTasks.value = false

apps/frontend/turbo.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"tasks": {
44
"deploy": {
55
"dependsOn": [
6+
"quickcheck",
67
// Set frontend deploy script to only run after backends are deployed, this make sure we have the (new) backend server for SSG.
78
"^build",
89
"backend#deploy",

0 commit comments

Comments
 (0)