-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathturbo.json
98 lines (95 loc) · 2.89 KB
/
turbo.json
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
{
"$schema": "https://turbo.build/schema.json",
// Required, because the root is a workspace
"extends": ["//"],
// Additive to package.json and turbo.json
//
// https://turbo.build/repo/docs/core-concepts/caching/file-inputs#specifying-additional-inputs
"globalDependencies": [
"pnpm-lock.yaml",
"patches",
".github/workflows/ci.yml",
".github/workflows/release.yml",
".github/workflows/push-dish.yml",
".github/workflows/deploy-preview.yml"
],
"tasks": {
/////////////////////////////////////////////////
/////////////////////////////////////////////////
//
// Local Dev
//
/////////////////////////////////////////////////
/////////////////////////////////////////////////
"dev": {
"dependsOn": ["^dev"],
"cache": false
},
"start": {
"dependsOn": ["_syncPnpm", "^build"],
"outputs": [],
"cache": false,
"persistent": true
},
/////////////////////////////////////////////////
/////////////////////////////////////////////////
//
// C.I. / C.D.
//
/////////////////////////////////////////////////
/////////////////////////////////////////////////
"build": {
"outputs": ["dist/**", "declarations/**"],
"dependsOn": ["_syncPnpm"]
},
"build:app": {
"outputs": ["dist/**"],
"dependsOn": ["_syncPnpm"]
},
"_syncPnpm": {
"dependsOn": ["^build"],
"cache": false
},
"test:node": {
"outputs": [],
"dependsOn": ["_syncPnpm", "^build"]
},
"test:ember": {
"env": ["CI_BROWSER", "EMBER_TRY_CURRENT_SCENARIO", "EMBROIDER_TEST_SETUP_OPTIONS"],
"dependsOn": ["_syncPnpm", "^build"]
},
/////////////////////////////////////////////////
/////////////////////////////////////////////////
//
// Quality Checks
//
/////////////////////////////////////////////////
/////////////////////////////////////////////////
"_:lint": {
"outputs": [],
"dependsOn": [
"lint:js",
"lint:hbs",
"lint:prettier",
"lint:types",
"lint:package",
"lint:published-types"
]
},
"lint:js": { "outputs": [], "dependsOn": ["^build"] },
"lint:hbs": { "outputs": [] },
"lint:prettier": { "outputs": [] },
"lint:types": { "outputs": [], "dependsOn": ["_syncPnpm"] },
"lint:package": { "outputs": [], "dependsOn": ["build"] },
"lint:published-types": { "outputs": [], "dependsOn": ["build"] },
"_:lint:fix": {
"cache": false,
"dependsOn": ["lint:js:fix", "lint:prettier:fix", "lint:hbs:fix"]
},
// Prettier can alter files too, so let's prevent race conditions for multiple
// writing to the same files.
"lint:js:fix": { "cache": false },
"lint:hbs:fix": { "cache": false },
"lint:prettier:fix": { "cache": false, "dependsOn": ["lint:js:fix", "lint:hbs:fix"] }
}
}