build-global-stats

npm run build && sam local invoke -t template.yaml -e event.json BuildGlobalStatsFunction

Usage no npm install needed!

<script type="module">
  import buildGlobalStats from 'https://cdn.skypack.dev/build-global-stats';
</script>

README

Test it

npm run build && sam local invoke -t template.yaml -e event.json BuildGlobalStatsFunction

Deploy

npm run build && npm run package && npm run deploy

rm -rf dist && tsc && rm -rf dist/node_modules && 'cp' -rf dist/ /g/Source/zerotoheroes/firestone/core/node_modules/\@firestone-hs/build-global-stats/
rm -rf dist && tsc && rm -rf dist/node_modules && npm publish

Reference

Used this project as template: https://github.com/alukach/aws-sam-typescript-boilerplate