Skip to content

Commit 8b484de

Browse files
committed
Convert to typescript
1 parent e478f3f commit 8b484de

File tree

10 files changed

+342
-120
lines changed

10 files changed

+342
-120
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
*.xdc
2-
2+
node_modules*
3+
dist/*

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,17 @@ it is not bound to Leaflet.
2828

2929
## Building
3030

31+
first time run:
32+
33+
```sh
34+
npm install
35+
```
36+
After changes run
37+
38+
```sh
39+
npm run build
40+
```
41+
3142
to create `maps.xdc` file, execute:
3243

3344
```sh

create-xdc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ case "$1" in
1414
esac
1515

1616
rm "$PACKAGE_NAME.xdc" 2> /dev/null
17-
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
17+
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
1818

1919
echo "success, archive contents:"
2020
unzip -l "$PACKAGE_NAME.xdc"

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ <h3>Points of Interest</h3>
253253
<div class="no-items">No POIs yet</div>
254254
</div>
255255
</div>
256-
<script src="index.js"></script>
256+
<script src="dist/index.js" type="module"></script>
257257
</body>
258258

259259
</html>

0 commit comments

Comments
 (0)