diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..fd1691c --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,31 @@ +name: Lint + +on: + push: + branches: + - main + pull_request: + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install pnpm + uses: pnpm/action-setup@v4 + + - uses: actions/setup-node@v4 + with: + node-version: 22 + cache: "pnpm" + + - name: Install dependencies + run: pnpm install + + - name: Svelte check + run: pnpm run check + + - name: Lint + run: pnpm run check \ No newline at end of file diff --git a/README.md b/README.md index e5dc7eb..b8e0a8f 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # Svelte MapLibre GL ![NPM Version](https://img.shields.io/npm/v/svelte-maplibre-gl) +![NPM License](https://img.shields.io/npm/l/svelte-maplibre-gl?color=96C902) [Svelte](https://svelte.dev/) library for using [MapLibre GL JS](https://maplibre.org/maplibre-gl-js/docs/) as reactive components. @@ -36,7 +37,7 @@ Everyone is welcomed to contribute to this project! There are many ways to suppo ## Acknowledgements -This project `svelte-maplibre-gl` is inspired by the efforts and innovations of the following libraries: +This project `svelte-maplibre-gl` is built from scratch, while drawing inspiration from the work of the following libraries: - [`dimfeld/svelte-maplibre`](https://github.com/dimfeld/svelte-maplibre) — A library offering idiomatic Svelte support for the MapLibre GL mapping software -- [`visgl/react-map-gl`](https://github.com/visgl/react-map-gl) — React friendly API wrapper around Mapbox GL JS +- [`visgl/react-map-gl`](https://github.com/visgl/react-map-gl) — React friendly API wrapper around Mapbox/MapLibre GL JS diff --git a/package.json b/package.json index 0cf3b9b..7fae4ea 100644 --- a/package.json +++ b/package.json @@ -48,9 +48,8 @@ "@sveltejs/vite-plugin-svelte": "^4.0.1", "@tailwindcss/typography": "^0.5.15", "@types/eslint": "^9.6.1", - "@types/nprogress": "^0.2.3", "autoprefixer": "^10.4.20", - "bits-ui": "1.0.0-next.60", + "bits-ui": "1.0.0-next.64", "clsx": "^2.1.1", "eslint": "^9.15.0", "eslint-config-prettier": "^9.1.0", @@ -61,7 +60,6 @@ "maplibre-gl": "5.0.0-pre.7", "mdsvex": "^0.12.3", "mode-watcher": "^0.5.0", - "nprogress": "^0.2.0", "pmtiles": "^3.2.1", "prettier": "^3.3.3", "prettier-plugin-svelte": "^3.3.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2c66fa7..fea9e2c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -35,15 +35,12 @@ importers: '@types/eslint': specifier: ^9.6.1 version: 9.6.1 - '@types/nprogress': - specifier: ^0.2.3 - version: 0.2.3 autoprefixer: specifier: ^10.4.20 version: 10.4.20(postcss@8.4.49) bits-ui: - specifier: 1.0.0-next.60 - version: 1.0.0-next.60(svelte@5.2.7) + specifier: 1.0.0-next.64 + version: 1.0.0-next.64(svelte@5.2.7) clsx: specifier: ^2.1.1 version: 2.1.1 @@ -74,9 +71,6 @@ importers: mode-watcher: specifier: ^0.5.0 version: 0.5.0(svelte@5.2.7) - nprogress: - specifier: ^0.2.0 - version: 0.2.0 pmtiles: specifier: ^3.2.1 version: 3.2.1 @@ -691,9 +685,6 @@ packages: '@types/mdast@4.0.4': resolution: {integrity: sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==} - '@types/nprogress@0.2.3': - resolution: {integrity: sha512-k7kRA033QNtC+gLc4VPlfnue58CM1iQLgn1IMAU8VPHGOj7oIHPp9UlhedEnD/Gl8evoCjwkZjlBORtZ3JByUA==} - '@types/pbf@3.0.5': resolution: {integrity: sha512-j3pOPiEcWZ34R6a6mN07mUkM4o4Lwf6hPNt8eilOeZhTFbxFXmKhvXl9Y28jotFPaI1bpPDJsbCprUoNke6OrA==} @@ -877,8 +868,8 @@ packages: resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==} engines: {node: '>=8'} - bits-ui@1.0.0-next.60: - resolution: {integrity: sha512-00S8OuhtVnZxbeIMZAf5Az1wmfWTsktkLw4HImLaL7gWaagPEfG9fc3tGp28jN45vGmKhYRvRTsBNdQ31ugSfw==} + bits-ui@1.0.0-next.64: + resolution: {integrity: sha512-r1JThjUSKwTkaB1onwIs7ZQoqygSsWhjBaUElCS8m8CCbY1RxmTz0HnbN+Xp2oJgJ4YQgIfiXTG3170l80FEgg==} engines: {node: '>=18', pnpm: '>=8.7.0'} peerDependencies: svelte: ^5.0.0-next.1 @@ -910,8 +901,8 @@ packages: resolution: {integrity: sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==} engines: {node: '>= 6'} - caniuse-lite@1.0.30001683: - resolution: {integrity: sha512-iqmNnThZ0n70mNwvxpEC2nBJ037ZHZUoBI5Gorh1Mw6IlEAZujEoU1tXA628iZfzm7R9FvFzxbfdgml82a3k8Q==} + caniuse-lite@1.0.30001684: + resolution: {integrity: sha512-G1LRwLIQjBQoyq0ZJGqGIJUXzJ8irpbjHLpVRXDvBEScFJ9b17sgK6vlx0GAJFE21okD7zXl08rRRUfq6HdoEQ==} ccount@2.0.1: resolution: {integrity: sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==} @@ -1539,9 +1530,6 @@ packages: engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} hasBin: true - nprogress@0.2.0: - resolution: {integrity: sha512-I19aIingLgR1fmhftnbWWO3dXc0hSxqHQHQb3H8m+K3TnEn/iSeTZZOyvKXWqQESMwuUVnatlCnZdLBZZt2VSA==} - object-assign@4.1.1: resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==} engines: {node: '>=0.10.0'} @@ -2769,8 +2757,6 @@ snapshots: dependencies: '@types/unist': 3.0.3 - '@types/nprogress@0.2.3': {} - '@types/pbf@3.0.5': {} '@types/supercluster@7.1.3': @@ -2966,7 +2952,7 @@ snapshots: autoprefixer@10.4.20(postcss@8.4.49): dependencies: browserslist: 4.24.2 - caniuse-lite: 1.0.30001683 + caniuse-lite: 1.0.30001684 fraction.js: 4.3.7 normalize-range: 0.1.2 picocolors: 1.1.1 @@ -2979,7 +2965,7 @@ snapshots: binary-extensions@2.3.0: {} - bits-ui@1.0.0-next.60(svelte@5.2.7): + bits-ui@1.0.0-next.64(svelte@5.2.7): dependencies: '@floating-ui/core': 1.6.8 '@floating-ui/dom': 1.6.12 @@ -3004,7 +2990,7 @@ snapshots: browserslist@4.24.2: dependencies: - caniuse-lite: 1.0.30001683 + caniuse-lite: 1.0.30001684 electron-to-chromium: 1.5.64 node-releases: 2.0.18 update-browserslist-db: 1.1.1(browserslist@4.24.2) @@ -3015,7 +3001,7 @@ snapshots: camelcase-css@2.0.1: {} - caniuse-lite@1.0.30001683: {} + caniuse-lite@1.0.30001684: {} ccount@2.0.1: {} @@ -3660,8 +3646,6 @@ snapshots: npm-bundled: 2.0.1 npm-normalize-package-bin: 2.0.0 - nprogress@0.2.0: {} - object-assign@4.1.1: {} object-hash@3.0.0: {}