diff --git a/.gitignore b/.gitignore index 97f3520..0a31a6e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ *.xdc - +node_modules* +dist/* diff --git a/README.md b/README.md index cdee2f2..3535675 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/create-xdc.sh b/create-xdc.sh index f06d683..c36e6bd 100755 --- a/create-xdc.sh +++ b/create-xdc.sh @@ -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" diff --git a/index.html b/index.html index 798787b..2e6118c 100644 --- a/index.html +++ b/index.html @@ -253,7 +253,7 @@