Skip to content

Commit

Permalink
update with main
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspreetishar committed Jan 16, 2025
2 parents af66df4 + cca5181 commit c4f6b91
Show file tree
Hide file tree
Showing 20 changed files with 625,418 additions and 319 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@ static
node_modules
*.h5
*egg-info

EsbuildAnalyzer.html
meta.json
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,3 @@ Increment version in `package.json` and
$ npm run build
$ npm publish
```

#### Development Notes
May use older version of deck.gl 8.9.1 until bug with instanced layer is resolved using newer versions "^9.0.5".;
6 changes: 6 additions & 0 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ async function main() {
define: {
'define.amd': 'false',
},
metafile: true,
});

if (isWatchMode) {
Expand All @@ -40,6 +41,11 @@ async function main() {
await fs.copyFile(srcPath, destPath);
console.log('File copied successfully.');

// Write the metadata to a JSON file
const metadataPath = path.resolve('meta.json');
await fs.writeFile(metadataPath, JSON.stringify(result.metafile, null, 2));
console.log(`Metadata written to ${metadataPath}`);

// Dispose of the context after a successful build to ensure the process exits
await context.dispose();
process.exit(0); // Exit successfully
Expand Down
174 changes: 87 additions & 87 deletions docs/assets/js/widget.js

Large diffs are not rendered by default.

Loading

0 comments on commit c4f6b91

Please sign in to comment.