-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add main.js exporting the API functions for bundle
Adding a new main JS-file, which only exports the API-functions from the different source files, so that they can be bundled as a standalone build.
- Loading branch information
1 parent
eed492b
commit 777c707
Showing
2 changed files
with
20 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
here-json2geojson - Convert HERE JSON to GeoJSON object | ||
Copyright 2017-present meggsimum | ||
License: https://github.com/meggsimum/here-json2geojson/blob/master/LICENSE | ||
*/ | ||
// This only exports the API functions for the standalone build | ||
import {readIsolines, readRoute} from './routing.js'; | ||
import {readTrafficIncidents} from './traffic.js'; | ||
import {readWeatherConditions} from './weather.js'; | ||
import {readPlaces} from './places.js'; | ||
|
||
// comment out single unwanted functions for a smaller build | ||
export { | ||
readIsolines, | ||
readRoute, | ||
readTrafficIncidents, | ||
readWeatherConditions, | ||
readPlaces | ||
}; |