Skip to content

Commit

Permalink
Merge pull request #7 from zhz0704/update-build-command
Browse files Browse the repository at this point in the history
Update build command
  • Loading branch information
dubiety authored Oct 22, 2024
2 parents 2b006e5 + afd37d2 commit d88d3e8
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 14 deletions.
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

0 comments on commit d88d3e8

Please sign in to comment.