Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cto
g1
Commits
6798f99f
Commit
6798f99f
authored
Jan 25, 2019
by
S Anand
Browse files
ENH: add types.min.js, remove redundant mapviewer requires
@tejesh.p
parent
00406a5a
Pipeline
#74346
passed with stage
in 2 minutes and 15 seconds
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
index-mapviewer.js
View file @
6798f99f
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
'
index-types.js
0 → 100644
View file @
6798f99f
export
{
version
}
from
'
./src/package.js
'
export
{
types
}
from
'
./src/types.js
'
index.js
View file @
6798f99f
// 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
'
...
...
rollup.config.js
View file @
6798f99f
...
...
@@ -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
()]
}
]
test/test-mapviewer-tooltip.html
View file @
6798f99f
...
...
@@ -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>
...
...
test/test-types.js
View file @
6798f99f
const
test
=
require
(
'
tape
'
)
const
g1
=
require
(
'
../dist/
g1
'
)
const
g1
=
require
(
'
../dist/
types.min
'
)
test
(
'
types test
'
,
function
(
t
)
{
...
...
S Anand
@s.anand
mentioned in merge request
!44 (closed)
·
Jan 25, 2019
mentioned in merge request
!44 (closed)
mentioned in merge request !44
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment