Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update build command #7

Merged
merged 2 commits into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci --force
- run: npm run build --if-present -- --isNpmBuild
- run: npm run build --if-present
- run: python -m pip install linkcheckmd
- run: python -m linkcheckmd README.md
2 changes: 1 addition & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm ci --force
- run: npm run build --if-present --isNpmBuild
- run: npm run build --if-present -- --isNpmBuild
- run: npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
36 changes: 26 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,29 @@
---
page_type: sample
description: A module for the Azure Maps Web SDK that provides a data source that clusters data points into cells of a grid area.
languages:
- javascript
- typescript
products:
- azure
- azure-maps
---
<table style="width: 100%; border-collapse: collapse; border: 1px solid #333;">
<thead>
<tr>
<th style="padding: 10px; border: 1px solid #333;">page_type</th>
<th style="padding: 10px; border: 1px solid #333;">description</th>
<th style="padding: 10px; border: 1px solid #333;">languages</th>
<th style="padding: 10px; border: 1px solid #333;">products</th>
</tr>
</thead>
<tbody>
<tr>
<td style="padding: 10px; border: 1px solid #333;">sample</td>
<td style="padding: 10px; border: 1px solid #333;">A module for the Azure Maps Web SDK that provides a data source that clusters data points into cells of a grid area.</td>
<td style="padding: 10px; border: 1px solid #333;">
<code>javascript</code>
<br>
<code>typescript</code>
</td>
<td style="padding: 10px; border: 1px solid #333;">
<code>azure</code>
<br>
<code>azure-maps</code>
</td>
</tr>
</tbody>
</table>

# Azure Maps Gridded Data Source module

Expand Down
2 changes: 2 additions & 0 deletions build/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ let rollupError = false;
let rollupInputOps, rollupOutputOps;
if (!args.isNpmBuild) {
// Set rollup options for browser builds.
console.log("Building IIFE version");
rollupInputOps = {
external: ["azure-maps-control"],
onwarn: rollupWarn,
Expand All @@ -121,6 +122,7 @@ let rollupError = false;
}
};
} else {
console.log("Building CommonJS version");
rollupInputOps = {
external: ["azure-maps-control"],
onwarn: rollupWarn,
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@azure-maps/gridded-data-source",
"version": "0.0.3",
"version": "0.0.4",
"description": "A module for the Azure Maps Web SDK that provides a data source that clusters data points into cells of a grid area.",
"keywords": [
"azure",
Expand Down