forked from mapbox/togeojson
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Generator methods, removed CLI
BREAKING CHANGE: the cli that was previously installed along with togeojson has been removed, and will be installable as @tmcw/togeojson-cli Other changes in this pass: - Switch from microbundle to rollup to build - Remove dependencies - Remove reliance on XMLSerializer. This will make togeojson work in worker contexts.
- Loading branch information
Showing
9 changed files
with
277 additions
and
2,256 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export { gpx } from "./lib/gpx"; | ||
export { kml } from "./lib/kml"; | ||
export { gpx, gpxGen } from "./lib/gpx"; | ||
export { kml, kmlGen } from "./lib/kml"; |
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
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,33 @@ | ||
import { terser } from "rollup-plugin-terser"; | ||
|
||
const input = "index.js"; | ||
const sourcemap = true; | ||
|
||
export default [ | ||
{ | ||
input, | ||
output: { | ||
file: "dist/togeojson.es.js", | ||
format: "es", | ||
sourcemap | ||
} | ||
}, | ||
{ | ||
input, | ||
output: { | ||
file: "dist/togeojson.js", | ||
format: "cjs", | ||
sourcemap | ||
} | ||
}, | ||
{ | ||
input, | ||
output: { | ||
file: "dist/togeojsons.min.js", | ||
format: "umd", | ||
name: "toGeoJSON", | ||
sourcemap | ||
}, | ||
plugins: [terser()] | ||
} | ||
]; |
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
Oops, something went wrong.