This repository has been archived by the owner on Dec 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathturbo.json
99 lines (97 loc) · 2.96 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
99
/////////////////////////////////////////////////////
/////////////////////////////////////////////////////
//
// NOTE on convention:
// script names starting with "_:" do so because
// they are not intended to be invoked by humans
// turborepo will invoke these scripts, freeing
// up the more human-readable script names for
// running by humans.
//
// This helps reduce the possibility of accidental
// cycles in script dependencies and invocation.
//
// One way to think about this is to ask a question:
//
// Is the script and endpoint command?
// as in, it's not a meta-script or script-running script?
//
// If the script is an endpoint command,
// the _: prefix is not needed.
//
// Otherwise, the _: is needed, because the local /
// package-specific script would be in conflict.
// (We want to avoid having turbo call scripts that call turbo)
//
/////////////////////////////////////////////////////
/////////////////////////////////////////////////////
{
"baseBranch": "origin/main",
"pipeline": {
/////////////////////////////////////////////////
/////////////////////////////////////////////////
//
// Local Dev
//
/////////////////////////////////////////////////
/////////////////////////////////////////////////
"dev": {
"dependsOn": ["^dev"],
"cache": false
},
/////////////////////////////////////////////////
/////////////////////////////////////////////////
//
// C.I. / C.D.
//
/////////////////////////////////////////////////
/////////////////////////////////////////////////
"build": {
"outputs": ["dist/**"],
"dependsOn": ["^build"]
},
"test": {
"outputs": [],
"dependsOn": ["^build"]
},
/////////////////////////////////////////////////
/////////////////////////////////////////////////
//
// Quality Checks
//
/////////////////////////////////////////////////
/////////////////////////////////////////////////
"_:lint": {
"outputs": [],
"dependsOn": ["lint:js", "lint:hbs", "lint:prettier", "lint:types"]
},
"lint:js": {
"outputs": []
},
"lint:hbs": {
"outputs": []
},
"lint:prettier": {
"outputs": []
},
// Type-checking in this repo operates on outputs of other packages.
// We can't trust development types to be correct across all projects,
// as all projects must be able to be used in isolation (where appropriate)
"lint:types": {
"outputs": [],
"dependsOn": ["^build"]
},
"_:lint:fix": {
"outputs": [],
"cache": false,
"dependsOn": ["lint:js:fix", "lint:hbs:fix"]
},
"lint:js:fix": {
"outputs": [],
"cache": false,
"dependsOn": ["lint:prettier:fix"]
},
"lint:hbs:fix": { "outputs": [], "cache": false },
"lint:prettier:fix": { "outputs": [], "cache": false }
}
}