Commit 6798f99f authored by S Anand's avatar S Anand

ENH: add types.min.js, remove redundant mapviewer requires @tejesh.p

parent 00406a5a
Pipeline #74346 passed with stage
in 2 minutes and 15 seconds
export { version } from './src/package.js'
export { url } from './index-urlfilter.js'
export { datafilter } from './src/datafilter.js'
import './index-highlight.js'
import './index-template.js'
// import './index-formhandler.js'
import './index-event.js'
export { MapViewer, createMapViewer as mapviewer } from './src/mapviewer.js'
export { version } from './src/package.js'
export { types } from './src/types.js'
// export item into the g1.* namespace
export { version } from './src/package.js'
export { types } from './src/types.js'
export { types } from './index-types.js'
export { url } from './index-urlfilter.js'
export { scale } from './index-scale.js'
export { datafilter } from './index-datafilter.js'
......
......@@ -143,5 +143,10 @@ export default [
format: "umd",
name: "g1"
}
},
{
input: "index-types",
output: { file: "dist/types.min.js", format: "umd", name: "g1" },
plugins: [uglify()]
}
]
......@@ -13,6 +13,7 @@
<script src="../node_modules/leaflet/dist/leaflet.js"></script>
<script src="../node_modules/d3/build/d3.js"></script>
<script src="../node_modules/d3-scale-chromatic/dist/d3-scale-chromatic.min.js"></script>
<script src="../dist/event.min.js"></script>
<script src="../dist/mapviewer.min.js"></script>
</head>
......
const test = require('tape')
const g1 = require('../dist/g1')
const g1 = require('../dist/types.min')
test('types test', function(t) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment