Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: include pre-built JS files that are browser-loadable and CDN-ready #2259

Open
bguiz opened this issue Apr 11, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@bguiz
Copy link
Contributor

bguiz commented Apr 11, 2024

Problem

  • when I would like to use the Hedera SDK in a browser application
  • but I'm required to use a Javascript build tool/ bundler before being able to use it in my application
  • when I'm simply trialling the SDK, or building a POC, I would prefer to simply import the entire SDK from a CDN URL

Solution

  • add an npm run script within this repo that builds/ bundles the SDK
  • its output should functional within a browser application
    • e.g. in UMD format, compiled into a single file, and comes in "full" format as well as minified+source mapped format
  • place the output in a dist directory within the repo
  • add a CI/CD step that performs
    • the npm run script which performs such a build upon each release
    • syncs the built file onto CDNs such as jsdeliver

Alternatives

Refs

@bguiz bguiz added the enhancement New feature or request label Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant