forked from visgl/deck.gl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ocular-dev-tools.config.js
42 lines (34 loc) · 1.09 KB
/
ocular-dev-tools.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
35
36
37
38
39
40
41
42
const {resolve} = require('path');
const LUMA_ALIASES_LOCAL = {
'luma.gl': `${__dirname}/../luma.gl/modules/main/src`,
'@luma.gl/constants': `${__dirname}/../luma.gl/modules/constants/src`,
'@luma.gl/core': `${__dirname}/../luma.gl/modules/core/src`,
'@luma.gl/debug': `${__dirname}/../luma.gl/modules/debug/src`,
'@luma.gl/webgl': `${__dirname}/../luma.gl/modules/webgl/src`,
'@luma.gl/webgl-state-tracker': `${__dirname}/../luma.gl/modules/webgl-state-tracker/src`,
'@luma.gl/webgl2-polyfill': `${__dirname}/../luma.gl/modules/webgl2-polyfill/src`
};
const useLocalLuma = false;
const config = {
lint: {
paths: ['modules', 'examples', 'test'],
extensions: ['js']
},
aliases: {
'deck.gl-test': resolve(__dirname, './test')
},
browserTest: {
server: {wait: 5000}
},
entry: {
test: 'test/node.js',
'test-browser': 'test/browser.js',
bench: 'test/bench/node.js',
'bench-browser': 'test/bench/browser.js',
size: 'test/size/import-nothing.js'
}
};
if (useLocalLuma) {
Object.assign(config.aliases, LUMA_ALIASES_LOCAL);
}
module.exports = config;