-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
71 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
<script type="module"> | ||
import './dist/bundle.js'; | ||
</script> | ||
|
||
<body>Open browser console to see results</body> |
26 changes: 16 additions & 10 deletions
26
test/apps/rollup-test/package.json → examples/get-started-rollup/package.json
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,17 +1,23 @@ | ||
{ | ||
"devDependencies": { | ||
"rollup": "^1.16.2", | ||
"rollup-plugin-commonjs": "^10.0.0", | ||
"rollup-plugin-node-resolve": "^5.1.0", | ||
"serve": "^11.0.2" | ||
"license": "MIT", | ||
"description": "Minimal working example of using loaders.gl with rollup.", | ||
"contributors": [ | ||
"@nshen" | ||
], | ||
"scripts": { | ||
"start": "yarn build; serve", | ||
"build": "rollup -c", | ||
"watch": "rollup -c -w", | ||
"serve": "serve public" | ||
}, | ||
"dependencies": { | ||
"@loaders.gl/core": "^1.2.2", | ||
"@loaders.gl/obj": "^1.2.2" | ||
}, | ||
"scripts": { | ||
"build": "rollup -c", | ||
"watch": "rollup -c -w", | ||
"start": "serve public" | ||
"devDependencies": { | ||
"rollup": "^1.16.2", | ||
"rollup-plugin-commonjs": "^10.0.0", | ||
"rollup-plugin-node-resolve": "^5.1.0", | ||
"serve": "^11.0.2" | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* global fetch */ | ||
import {parse} from '@loaders.gl/core'; | ||
import {OBJLoader} from '@loaders.gl/obj'; | ||
|
||
const OBJ_URL = | ||
'https://raw.githubusercontent.com/uber-web/loaders.gl/master/modules/obj/test/data/cube.obj'; | ||
|
||
async function main() { | ||
const data = await parse(fetch(OBJ_URL), OBJLoader); | ||
console.log(JSON.stringify(data, null, 2)); // eslint-disable-line | ||
} | ||
|
||
main(); |
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,5 @@ | ||
<!doctype html> | ||
<script type="module"> | ||
import './dist/bundle.js'; | ||
</script> | ||
<body>Open browser console to see results</body> |
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,16 @@ | ||
{ | ||
"license": "MIT", | ||
"description": "Minimal example of using loaders.gl with webpack.", | ||
"scripts": { | ||
"start": "webpack-dev-server --progress --hot --open -d" | ||
}, | ||
"dependencies": { | ||
"@loaders.gl/core": "^1.2.2", | ||
"@loaders.gl/obj": "^1.2.2" | ||
}, | ||
"devDependencies": { | ||
"html-webpack-plugin": "^3.2.0", | ||
"webpack": "^4.3.0", | ||
"webpack-dev-server": "^3.1.1" | ||
} | ||
} |
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,13 @@ | ||
const {resolve} = require('path'); | ||
|
||
module.exports = { | ||
mode: 'development', | ||
|
||
entry: { | ||
app: resolve('./app.js') | ||
}, | ||
|
||
node: { | ||
fs: 'empty' | ||
} | ||
}; |