-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathproject.json
More file actions
111 lines (111 loc) · 3.23 KB
/
project.json
File metadata and controls
111 lines (111 loc) · 3.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{
"name": "cli",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "pkgs/cli/src",
"projectType": "library",
"tags": [],
"implicitDependencies": ["!edge-worker"],
"// targets": "to see all targets run: nx show project cli --web",
"targets": {
"build": {
"executor": "@nx/js:tsc",
"outputs": ["{options.outputPath}"],
"inputs": ["production", "^production"],
"options": {
"main": "{projectRoot}/src/index.ts",
"tsConfig": "{projectRoot}/tsconfig.lib.json",
"outputPath": "{projectRoot}/dist",
"rootDir": "{projectRoot}/src"
}
},
"serve": {
"executor": "nx:run-commands",
"cache": false,
"local": true,
"dependsOn": ["build"],
"options": {
"command": "node dist/index.js",
"cwd": "{projectRoot}"
}
},
"test": {
"executor": "nx:noop",
"inputs": ["default", "^production"],
"dependsOn": ["test:unit"],
"options": {
"parallel": false
}
},
"test:unit": {
"executor": "nx:run-commands",
"inputs": ["default", "^production"],
"options": {
"command": "vitest run --exclude '**/__tests__/e2e/**'",
"cwd": "{projectRoot}"
}
},
"e2e:install": {
"executor": "nx:run-commands",
"local": true,
"dependsOn": ["build"],
"inputs": ["default", "^production"],
"options": {
"commands": [
"./scripts/test-install",
"./scripts/test-install-duplicates"
],
"cwd": "{projectRoot}",
"parallel": false
}
},
"serve:functions:e2e": {
"executor": "nx:run-commands",
"continuous": true,
"dependsOn": ["^build"],
"local": true,
"cache": false,
"options": {
"cwd": "{projectRoot}",
"readyWhen": "Serving functions on http://",
"streamOutput": true,
"command": "../../scripts/supabase-start-locked.sh . && ./scripts/sync-e2e-deps.sh && supabase functions serve --no-verify-jwt --import-map supabase/functions/pgflow/deno.json"
}
},
"hang": {
"executor": "nx:run-commands",
"local": true,
"dependsOn": ["build", "serve:functions:e2e"],
"inputs": ["default", "^production"],
"options": {
"command": "sleep 360",
"cwd": "{projectRoot}"
}
},
"e2e:compile": {
"executor": "nx:run-commands",
"local": true,
"dependsOn": ["build", "serve:functions:e2e"],
"inputs": ["default", "^production"],
"options": {
"commands": [
"timeout 120 bash -c 'echo \"Waiting for functions server (port 50621)...\"; until nc -z localhost 50621 2>/dev/null; do sleep 0.5; done; echo \" Ready!\"' || (echo 'TIMEOUT: Functions server not available on port 50621 after 120s' && exit 1)",
"vitest run __tests__/e2e/compile.test.ts"
],
"cwd": "{projectRoot}",
"parallel": false
}
},
"e2e": {
"executor": "nx:noop",
"local": true,
"dependsOn": ["e2e:install", "e2e:compile"]
},
"prepush": {
"executor": "nx:noop",
"dependsOn": ["lint", "build", "typecheck"]
},
"supabase:ci-marker": {
"executor": "nx:noop"
}
}
}