-
Notifications
You must be signed in to change notification settings - Fork 92
Expand file tree
/
Copy pathlage.config.js
More file actions
54 lines (49 loc) · 1.56 KB
/
lage.config.js
File metadata and controls
54 lines (49 loc) · 1.56 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
// @ts-check
/** @typedef {import('lage').ConfigOptions} ConfigOptions */
/** @typedef {import('lage').CacheOptions} CacheOptions */
/**
* Lage config (the types are slightly incorrect about what's required/optional)
* @type {Partial<Omit<ConfigOptions, 'cacheOptions'>> & { cacheOptions?: Partial<CacheOptions> }}
*/
const config = {
npmClient: 'yarn',
pipeline: {
build: {
dependsOn: ['^build'],
outputs: ['lib/**/*'],
},
lint: ['build'],
depcheck: [],
test: ['build'],
'update-snapshots': ['build'],
// For the beachball package, run the tests in order during the main test run
'beachball#test': {
type: 'noop',
dependsOn: ['test:unit', 'test:func', 'test:e2e'],
},
// These are not typically run directly, but the dependencies enforce ordering for beachball#test
'test:unit': ['build'],
'test:func': ['build', 'test:unit'],
'test:e2e': ['build', 'test:unit', 'test:func'],
},
cacheOptions: {
// These are relative to the git root, and affects the hash of the cache
// Any of these file changes will invalidate cache
environmentGlob: [
// Folder globs MUST end with **/* to include all files!
'!.yarn/**/*',
'!node_modules/**/*',
'!**/node_modules/**/*',
'.github/workflows/*',
'*.js',
'*.json',
'*.yml',
'yarn.lock',
],
// Subset of files in package directories that will be saved into the cache.
// (set per target instead)
outputGlob: [],
// outputGlob: ['lib/**/*', 'temp/*.api.md'],
},
};
module.exports = config;