Skip to content
Draft
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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*.xdc

node_modules*
dist/*
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,17 @@ it is not bound to Leaflet.

## Building

first time run:

```sh
npm install
```
After changes run

```sh
npm run build
```

to create `maps.xdc` file, execute:

```sh
Expand Down
2 changes: 1 addition & 1 deletion create-xdc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ case "$1" in
esac

rm "$PACKAGE_NAME.xdc" 2> /dev/null
zip -9 --recurse-paths "$PACKAGE_NAME.xdc" * --exclude LICENSE README.md webxdc.js webxdc.d.ts icon.png "*screenshot*" "*marker-*png" "*-src*" "*.map" "*.sh" "*.xdc" *.DS_Store
zip -9 --recurse-paths "$PACKAGE_NAME.xdc" * -x "node_modules/*" @ --exclude index.ts LICENSE README.md webxdc.js webxdc.d.ts icon.png "*screenshot*" "*marker-*png" "*-src*" "*.map" "*.sh" "*.xdc" *.DS_Store package.json package-lock.json tsconfig.json types.d.ts

echo "success, archive contents:"
unzip -l "$PACKAGE_NAME.xdc"
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ <h3>Points of Interest</h3>
<div class="no-items">No POIs yet</div>
</div>
</div>
<script src="index.js"></script>
<script src="dist/index.js" type="module"></script>
</body>

</html>
Loading