Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

Commit

Permalink
generate siteInfo.json
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinr-maps committed Mar 4, 2022
1 parent 59f42ac commit e283d8f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,4 @@ dist/**/*.css
dist/**/*.gif
dist/**/*.png
dist/**/*.jpg
dist/**/*.json
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
"files": [
"src/**/*.js",
"dist/*.js",
"dist/*.js.map"
"dist/*.js.map",
"dist/*.json"
],
"homepage": "http://esri.github.io/esri-leaflet",
"jsnext:main": "src/EsriLeafletRenderers.js",
Expand Down
10 changes: 7 additions & 3 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,16 @@ NAME=$(node --eval "console.log(require('./package.json').name);")
# build and test
npm test || exit 1

# build files
npm run build

# Integrity string and save to siteData.json
JS_INTEGRITY=$(cat dist/esri-leaflet-renderers.js | openssl dgst -sha512 -binary | openssl base64 -A)
echo "{\"name\": \"esri-leaflet-renderers\",\"version\": \"$VERSION\",\"lib\": {\"path\": \"dist/esri-leaflet-renderers.js\",\"integrity\": \"sha512-$JS_INTEGRITY\"}}" > dist/siteData.json

# checkout temp branch for release
git checkout -b gh-release

# run prepublish to build files
npm run prepublish

# force add files
git add dist -f

Expand Down

0 comments on commit e283d8f

Please sign in to comment.