-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathproject.json
More file actions
80 lines (80 loc) · 2.24 KB
/
project.json
File metadata and controls
80 lines (80 loc) · 2.24 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
{
"name": "dsl",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "pkgs/dsl/src",
"projectType": "library",
"tags": [],
"// targets": "to see all targets run: nx show project @pgflow/dsl --web",
"targets": {
"build": {
"executor": "@nx/js:tsc",
"inputs": ["production", "^production"],
"options": {
"outputPath": "pkgs/dsl/dist",
"main": "pkgs/dsl/src/index.ts",
"tsConfig": "pkgs/dsl/tsconfig.lib.json",
"assets": ["pkgs/dsl/*.md"],
"rootDir": "pkgs/dsl/src"
}
},
"jsr:publish": {
"executor": "nx:run-commands",
"outputs": ["{workspaceRoot}/pkgs/dsl/"],
"options": {
"cwd": "pkgs/dsl",
"commands": ["jsr publish"],
"parallel": false
}
},
"test:unit": {
"executor": "@nx/vite:test",
"dependsOn": ["build"],
"inputs": ["default", "^production"],
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"passWithNoTests": true,
"reportsDirectory": "{workspaceRoot}/coverage/{projectRoot}"
}
},
"test:types:vitest": {
"executor": "nx:run-commands",
"cache": true,
"inputs": ["production"],
"dependsOn": ["lint"],
"options": {
"cwd": "{projectRoot}",
"command": "pnpm vitest --typecheck.only --run --config vitest.typecheck.config.ts"
}
},
"test:types:strict": {
"executor": "nx:run-commands",
"cache": true,
"inputs": ["production"],
"dependsOn": [],
"options": {
"cwd": "{projectRoot}",
"command": "bash ../../scripts/typecheck-ts2578.sh"
}
},
"test:types": {
"executor": "nx:noop",
"dependsOn": ["test:types:vitest", "test:types:strict"]
},
"test:types:health": {
"executor": "nx:run-commands",
"options": {
"cwd": "{projectRoot}",
"command": "bash ../../scripts/verify-type-test-health.sh"
}
},
"test": {
"executor": "nx:noop",
"inputs": ["default", "^production"],
"dependsOn": ["test:unit", "test:types"]
},
"prepush": {
"executor": "nx:noop",
"dependsOn": ["lint", "build", "test:unit", "test:types:vitest"]
}
}
}