Skip to content

Commit

Permalink
Svelte optional peer dependency (#38)
Browse files Browse the repository at this point in the history
* made svelte as optional dependnecy

* updated dependencies

* fixed dev mode
  • Loading branch information
zdila authored Jul 5, 2024
1 parent 8b0fa25 commit db533e1
Show file tree
Hide file tree
Showing 4 changed files with 180 additions and 144 deletions.
24 changes: 15 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,26 @@ <h1>MapTiler Geocoding Control Examples</h1>

<h2>Svelte</h2>
<ul>
<li><a href="/examples/maptiler-sdk/">MapTiler SDK</a></li>
<li><a href="/examples/maplibregl/">MapLibre GL JS</a></li>
<li><a href="/examples/leaflet/">Leaflet</a></li>
<li><a href="/examples/openlayers/">OpenLayers</a></li>
<li><a href="examples/maptiler-sdk/">MapTiler SDK</a></li>
<li><a href="examples/maplibregl/">MapLibre GL JS</a></li>
<li><a href="examples/leaflet/">Leaflet</a></li>
<li><a href="examples/openlayers/">OpenLayers</a></li>
</ul>

<h2>React</h2>
<ul>
<li><a href="/examples/react/">Headless (no map, just the control)</a></li>
<li><a href="examples/react/">Headless (no map, just the control)</a></li>
</ul>

<h2>Vanilla JS</h2>
<h2>Vanilla JS (UMD)</h2>

<p>
Before opening the following examples first build the library with
<code>npm run build</code>.
</p>

<ul>
<li><a href="/examples/standalone/maplibregl.html">MapLibre GL JS</a></li>
<li><a href="/examples/standalone/leaflet.html">Leaflet</a></li>
<li><a href="/examples/standalone/ol.html">OpenLayers</a></li>
<li><a href="examples/standalone/maplibregl.html">MapLibre GL JS</a></li>
<li><a href="examples/standalone/leaflet.html">Leaflet</a></li>
<li><a href="examples/standalone/ol.html">OpenLayers</a></li>
</ul>
176 changes: 100 additions & 76 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 13 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@maptiler/geocoding-control",
"version": "1.3.1",
"version": "1.3.2",
"description": "The Javascript & TypeScript Map Control component for MapTiler Geocoding service. Easy to be integrated into any JavaScript mapping application.",
"type": "module",
"author": {
Expand Down Expand Up @@ -102,7 +102,7 @@
"./types": "./types.d.ts"
},
"devDependencies": {
"@maptiler/sdk": "^2.1.0",
"@maptiler/sdk": "^2.2.0",
"@sveltejs/package": "^2.3.2",
"@sveltejs/vite-plugin-svelte": "^3.1.1",
"@tsconfig/svelte": "^5.0.4",
Expand All @@ -119,26 +119,26 @@
"eslint": "^8.57.0",
"eslint-plugin-svelte": "^2.41.0",
"esm-env": "^1.0.0",
"globals": "^15.6.0",
"globals": "^15.8.0",
"husky": "^9.0.11",
"leaflet": "^1.9.4",
"lint-staged": "^15.2.7",
"maplibre-gl": "^4.4.1",
"maplibre-gl": "^4.5.0",
"ol": "9.1",
"prettier": "^3.3.2",
"prettier-plugin-organize-imports": "^3.2.4",
"prettier-plugin-organize-imports": "^4.0.0",
"prettier-plugin-svelte": "^3.2.5",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"replace-in-file": "^8.0.1",
"replace-in-file": "^8.1.0",
"sass": "^1.77.6",
"svelte": "^4.2.18",
"svelte-check": "^3.8.4",
"svelte-preprocess": "^6.0.1",
"tslib": "^2.6.3",
"typescript": "^5.5.2",
"typescript-eslint": "^7.14.1",
"vite": "^5.3.1"
"typescript": "^5.5.3",
"typescript-eslint": "^7.15.0",
"vite": "^5.3.3"
},
"peerDependencies": {
"@maptiler/sdk": "^1 || ^2",
Expand All @@ -158,10 +158,13 @@
"maplibre-gl": {
"optional": true
},
"ol": {
"optional": true
},
"react": {
"optional": true
},
"ol": {
"svelte": {
"optional": true
}
},
Expand Down
Loading

0 comments on commit db533e1

Please sign in to comment.