-
Notifications
You must be signed in to change notification settings - Fork 212
/
.ocularrc.js
49 lines (39 loc) · 1.02 KB
/
.ocularrc.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/** @typedef {import('ocular-dev-tools').OcularConfig} OcularConfig */
import {dirname, join} from 'path';
import {fileURLToPath} from 'url';
const packageRoot = dirname(fileURLToPath(import.meta.url));
const devModules = join(packageRoot, 'dev-modules');
const testDir = join(packageRoot, 'test');
/** @type {OcularConfig} */
const config = {
lint: {
paths: ['modules', 'test'], // 'docs', 'examples'], module resolution errors
extensions: ['js', 'ts', 'jsx', 'tsx']
},
aliases: {
// DEV MODULES
'dev-modules': devModules,
// TEST
test: testDir
},
coverage: {
test: 'browser'
},
bundle: {
globalName: 'luma',
externals: [],
target: ['chrome110', 'firefox110', 'safari15'],
format: 'umd',
globals: {
'@luma.gl/*': 'globalThis.luma'
}
},
entry: {
test: 'test/index.ts',
'test-browser': 'test/index.html',
bench: 'test/bench/index.js',
'bench-browser': 'test/bench/index.html',
size: 'test/size/import-nothing.js'
}
};
export default config;