Skip to content

Commit

Permalink
change bundler (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanlurie authored Aug 12, 2024
1 parent aff31e1 commit 82d6e68
Show file tree
Hide file tree
Showing 18 changed files with 1,120 additions and 2,271 deletions.
1 change: 1 addition & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
node-version: 18
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run make
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -109,5 +109,4 @@ demos/tmp_*
dist
docs
docsmd


build
10 changes: 7 additions & 3 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ images
scripts
test
demos
src
dist/*umd*
CHANGELOG.md
colorramp.md
colorramp.md
src
!dist/src
*.tgz
.github
.vscode
build
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# MapTiler SDK Changelog

## 2.2.2
### Bug Fixes
- No longer using named imports from Maplibre (https://github.com/maptiler/maptiler-sdk-js/issues/99)
- Exporting types with classes for Maplibre types (https://github.com/maptiler/maptiler-sdk-js/issues/99)
### Others
- Bundling now made with ViteJS (no longer Rollup)

## 2.2.1
### Bug Fixes
- The types from classes defined in Maplibre are now exposed more reliably (https://github.com/maptiler/maptiler-sdk-js/pull/98)
Expand Down
3 changes: 2 additions & 1 deletion biome.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"files": {
"include": ["src/**/*.js", "src/**/*.ts"]
"include": ["./src/**/*.js", "./src/**/*.ts"],
"ignore": ["dist", "build"]
},
"organizeImports": {
"enabled": false
Expand Down
2 changes: 1 addition & 1 deletion demos/colorramps.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

<div id="colorramp-contain"></div>

<script src="../dist/maptiler-sdk.umd.js"></script>
<script src="../build/maptiler-sdk.umd.js"></script>
<script>
const colorrampContainer = document.getElementById("colorramp-contain");

Expand Down
4 changes: 2 additions & 2 deletions demos/mountain.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

</style>

<link rel="stylesheet" href="../dist/maptiler-sdk.css">
<link rel="stylesheet" href="../build/maptiler-sdk.css">
</head>

<body>
Expand All @@ -33,7 +33,7 @@

</div>

<script src ="../dist/maptiler-sdk.umd.js"></script>
<script src ="../build/maptiler-sdk.umd.js"></script>

<script>
maptilersdk.config.apiKey = "YOUR_API_KEY";
Expand Down
4 changes: 2 additions & 2 deletions demos/readyevent.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@

</style>

<link rel="stylesheet" href="../dist/maptiler-sdk.css">
<link rel="stylesheet" href="../build/maptiler-sdk.css">
</head>

<body>
<div id="map-container"></div>
<script src ="../dist/maptiler-sdk.umd.js"></script>
<script src ="../build/maptiler-sdk.umd.js"></script>

<script>
maptilersdk.config.apiKey = "YOUR_API_KEY";
Expand Down
4 changes: 2 additions & 2 deletions demos/simple.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

</style>

<link rel="stylesheet" href="../dist/maptiler-sdk.css">
<link rel="stylesheet" href="../build/maptiler-sdk.css">
</head>

<body>
Expand All @@ -34,7 +34,7 @@

</div>

<script src ="../dist/maptiler-sdk.umd.js"></script>
<script src ="../build/maptiler-sdk.umd.js"></script>

<script>
maptilersdk.config.apiKey = "YOUR_API_KEY";
Expand Down
Loading

0 comments on commit 82d6e68

Please sign in to comment.