Skip to content

Commit

Permalink
Rollup config
Browse files Browse the repository at this point in the history
  • Loading branch information
tentone committed May 19, 2022
1 parent 65b86bb commit 0d15220
Show file tree
Hide file tree
Showing 8 changed files with 1,828 additions and 14 deletions.
1,805 changes: 1,805 additions & 0 deletions build/geo-three.cjs

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion build/geo-three.js
Original file line number Diff line number Diff line change
Expand Up @@ -1807,4 +1807,3 @@
Object.defineProperty(exports, '__esModule', { value: true });

}));
//# sourceMappingURL=geo-three.js.map
1 change: 0 additions & 1 deletion build/geo-three.js.map

This file was deleted.

1 change: 0 additions & 1 deletion build/geo-three.module.js
Original file line number Diff line number Diff line change
Expand Up @@ -1775,4 +1775,3 @@ class CancelablePromise {
}

export { BingMapsProvider, CancelablePromise, DebugProvider, GoogleMapsProvider, HeightDebugProvider, HereMapsProvider, LODFrustum, LODRadial, LODRaycast, MapBoxProvider, MapHeightNode, MapHeightNodeShader, MapNode, MapNodeGeometry, MapNodeHeightGeometry, MapPlaneNode, MapProvider, MapSphereNode, MapSphereNodeGeometry, MapTilerProvider, MapView, OpenMapTilesProvider, OpenStreetMapsProvider, UnitsUtils, XHRUtils };
//# sourceMappingURL=geo-three.module.js.map
1 change: 0 additions & 1 deletion build/geo-three.module.js.map

This file was deleted.

17 changes: 13 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
{
"name": "geo-three",
"version": "0.0.18",
"version": "0.1.0",
"type": "module",
"description": "geo-three is library for tile based geographic map layers in with three.js supporting selective loading/unloading of real-time generated 3D tiles",
"main": "build/geo-three.js",
"module": "build/geo-three.module.js",
"module": "build/geo-three.module.js",
"exports": {
".": {
"import": "./build/geo-three.module.js",
"require": "./build/geo-three.cjs"
},
"./source/*": "./source/*"
},
"repository": {
"type": "git",
"url": "https://github.com/tentone/geothree.git"
Expand All @@ -16,6 +24,7 @@
"lint": "eslint --ext .ts .",
"lint-fix": "eslint --ext .ts --fix ."
},
"sideEffects": false,
"keywords": [
"maps",
"tiles",
Expand All @@ -36,7 +45,7 @@
"@rollup/plugin-typescript": "~8.3.1",
"@types/offscreencanvas": "~2019.6.4",
"@types/node": "~16.9.0",
"@types/three": "^0.139.0",
"@types/three": "^0.140.0",
"@typescript-eslint/eslint-plugin": "~5.12.1",
"@typescript-eslint/parser": "~5.17.0",
"eslint": "~8.12.0",
Expand All @@ -46,7 +55,7 @@
"rollup": "~2.70.0",
"rollup-plugin-livereload": "~2.0.5",
"rollup-plugin-serve": "~1.1.0",
"three": "^0.139.0",
"three": "^0.140.2",
"typedoc": "~0.22.13",
"typescript": "~4.5.5"
},
Expand Down
14 changes: 9 additions & 5 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,27 @@ export default {
plugins: [
typescript({ tsconfig: './tsconfig.json' }),
strip({
functions: ['assert.*', 'debug', 'alert']
functions: ['assert.*', 'debug', 'alert', 'console.*']
})
],
output: [
{
format: 'es',
file: 'build/geo-three.module.js',
indent: '\t',
sourcemap: true
indent: '\t'
},
{
format: 'cjs',
name: 'Geo',
file: 'build/geo-three.cjs',
indent: '\t'
},
{
globals: {three: 'THREE'},
format: 'umd',
name: 'Geo',
file: 'build/geo-three.js',
indent: '\t',
sourcemap: true
indent: '\t'
}
]
};
2 changes: 1 addition & 1 deletion rollup.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
external: ['three'],
input: 'source/Main.ts',
plugins: [
typescript(),
typescript({ tsconfig: './tsconfig.json' }),
serve({
open: true,
contentBase: '.',
Expand Down

0 comments on commit 0d15220

Please sign in to comment.