diff --git a/.gitignore b/.gitignore index 2d2b47d..a84141f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .idea -node_modules \ No newline at end of file +node_modules +*.tgz \ No newline at end of file diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..85cdc43 --- /dev/null +++ b/.npmignore @@ -0,0 +1,4 @@ +node_modules/ +*.log +*.ts +src/ diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..4ee22a5 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2024 Mohammad ikrom + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.MD b/README.MD index 9eabbfb..37b45cb 100644 --- a/README.MD +++ b/README.MD @@ -1,7 +1,7 @@ 📦🤗 npm-friendly fork of [jawj/OverlappingMarkerSpiderfier](https://github.com/jawj/OverlappingMarkerSpiderfier). -Overlapping Marker Spiderfier for Leaflet +Overlapping Marker Spiderfier for Leaflet support ES6 Module ========================================= **Ever noticed how, in [Google Earth](http://earth.google.com), marker @@ -18,9 +18,7 @@ spiral. The compiled code has no dependencies beyond Leaflet. And it's under 3K when compiled out of -[CoffeeScript](http://jashkenas.github.com/coffee-script/), minified -with Google's [Closure -Compiler](http://code.google.com/closure/compiler/) and gzipped. +[TypeScript](https://www.typescriptlang.org) It's a port of my [original library for the Google Maps API](https://github.com/jawj/OverlappingMarkerSpiderfier). (Since the @@ -54,7 +52,7 @@ Download [the compiled, minified JS source](https://unpkg.com/overlapping-marker-spiderfier-leaflet@latest). Or download it from npm: -`npm isntall -S @krozamdev/overlapping-marker-spiderfier` or +`npm install -S @krozamdev/overlapping-marker-spiderfier` or `yarn add @krozamdev/overlapping-marker-spiderfier` How to use diff --git a/package.json b/package.json index f5c7b8f..c3dc871 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@krozamdev/overlapping-marker-spiderfier", - "version": "0.2.7", + "version": "0.2.8", "description": "Deals with overlapping markers in the Leaflet maps API, Google Earth-style", "keywords": [ "overlapping marker", @@ -20,12 +20,20 @@ "leaflet": "^1.7.1" }, "devDependencies": { - "typescript": "^4.5.4", - "@types/leaflet": "^1.7.6" + "@types/leaflet": "^1.7.6", + "typescript": "^4.5.4" }, "scripts": { "build": "tsc" }, + "files": [ + "dist/", + "README.md", + "LICENSE" + ], "author": "George MacKerron (http://mackerron.com)", - "license": "MIT" + "license": "MIT", + "publishConfig": { + "registry": "https://registry.npmjs.org/" + } }