mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 10:51:07 +00:00
add js package skeleton
This commit is contained in:
12
js/package.json
Normal file
12
js/package.json
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"name": "pmtiles",
|
||||||
|
"version": "0.0.2",
|
||||||
|
"description": "PMTiles archive decoder for browsers",
|
||||||
|
"main": "pmtiles.js",
|
||||||
|
"scripts": {
|
||||||
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
|
},
|
||||||
|
"homepage": "https://github.com/protomaps/pmtiles",
|
||||||
|
"author": "Brandon Liu",
|
||||||
|
"license": "BSD-3-Clause"
|
||||||
|
}
|
||||||
11
js/pmtiles.js
Normal file
11
js/pmtiles.js
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
(function (root, factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
define([], factory);
|
||||||
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
|
module.exports = factory();
|
||||||
|
} else {
|
||||||
|
root.pmtiles = factory();
|
||||||
|
}
|
||||||
|
}(typeof self !== 'undefined' ? self : this, function () {
|
||||||
|
return {pmtiles:true};
|
||||||
|
}));
|
||||||
Reference in New Issue
Block a user