forked from visgl/loaders.gl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from sensat/merge-4.2.0-master
Merge 4.2.0 master
- Loading branch information
Showing
1,068 changed files
with
44,368 additions
and
35,676 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,59 @@ | ||
import {resolve} from 'path'; | ||
/** @typedef {import('ocular-dev-tools').OcularConfig} OcularConfig */ | ||
|
||
export default { | ||
aliases: { | ||
test: resolve('./test') | ||
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', 'dev-docs', 'docs'], // , 'test', 'examples'], | ||
extensions: ['js', 'ts'] | ||
// extensions: ['js', 'jsx', 'mjs', 'ts', 'tsx', 'md'] | ||
}, | ||
|
||
typescript: { | ||
project: 'tsconfig.build.json' | ||
}, | ||
|
||
aliases: { | ||
// TEST | ||
test: testDir | ||
}, | ||
|
||
coverage: { | ||
test: 'browser' | ||
}, | ||
|
||
bundle: { | ||
globalName: 'loader', | ||
globalName: 'loaders', | ||
externals: ['fs', 'path', 'util', 'events', 'stream', 'crypto', 'http', 'https'], | ||
target: ['supports async-functions', 'not dead'], | ||
target: ['chrome110', 'firefox110', 'safari15'], | ||
format: 'umd', | ||
globals: { | ||
'@loaders.gl/*': 'globalThis.loaders' | ||
} | ||
}, | ||
|
||
lint: { | ||
// TODO - comment out while getting typescript to work | ||
paths: ['dev-docs', 'docs', 'modules'] // 'examples', test', 'website', 'examples'], | ||
// extensions: ['js', 'jsx', 'mjs', 'ts', 'tsx', 'md'] | ||
}, | ||
|
||
webpack: {}, | ||
|
||
entry: { | ||
test: 'test/node.ts', | ||
'test-browser': 'test/browser.ts', | ||
bench: 'test/bench/node.js', | ||
'bench-browser': 'test/bench/browser.js', | ||
size: 'test/size/import-nothing.js' | ||
} | ||
// entry: { | ||
// test: 'test/index.ts', | ||
// 'test-browser': 'test/browser.ts', | ||
// bench: 'test/bench/index.js', | ||
// 'bench-browser': 'test/bench/browser.js', | ||
// size: 'test/size/import-nothing.js' | ||
// } | ||
}; | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
nodeLinker: node-modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.