forked from jycouet/kitql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbob.config.js
34 lines (33 loc) · 994 Bytes
/
bob.config.js
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
module.exports = {
scope: '@kitql', // Scope of organization
ignore: ['@kitql/all-in'], // ignored packages
track: [
// files in root that mark the entire workspace as dirty
'bob.config.js', // we could include it in Bob itself but we decided to turn your life into hell :)
'package.json',
'tsconfig.json',
// files in packages that mark the package as dirty
'<project>/src/**',
'<project>/package.json',
'<project>/tsconfig.json',
],
base: 'origin/main', // we need to compare against something
commands: {
test: {
track: ['<project>/tests/**'],
run(affected) {
// {
// paths: string[] <- ['packages/core', 'packages/cli']
// names: string[] <- ['@foo/core', '@foo/cli']
// }
// why such a weird syntax? We use spawn, so you have too
return [`yarn`, ['test', ...affected.paths]]
},
},
build: {
run() {
return [`yarn`, ['build']]
},
},
},
}