-
Notifications
You must be signed in to change notification settings - Fork 24
/
.ocularrc.js
54 lines (43 loc) · 1.09 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
50
51
52
53
54
/** @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 = {
babel: false,
lint: {
paths: ['modules', 'docs', 'test'], // 'examples'], module resolution errors
extensions: ['js', 'ts', 'jsx', 'tsx']
},
typescript: {
project: 'tsconfig.build.json'
},
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/node.js',
'test-browser': 'index.html',
bench: 'test/bench/index.js',
'bench-browser': 'test/bench/index.html',
size: ['test/size/graph-layers.js']
}
};
export default config;