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

[TS/JS] Add rollup and config to generate iife flatbuffers bundle #7449

Merged
merged 3 commits into from Aug 29, 2022

Conversation

bjornharrtell
Copy link
Contributor

@bjornharrtell bjornharrtell commented Aug 15, 2022

ref #7426

This addition and script allows to generate a flatbuffers.js at root level which is a bundled up single file version of the flatbuffers implementation with the same API as what was available in flatbuffers 1.x (i.e equivalent to https://unpkg.com/flatbuffers@1.12.0/js/flatbuffers.js).

@bjornharrtell bjornharrtell changed the title Add rollup and config to generate iife flatbuffers bundle [TS/JS] Add rollup and config to generate iife flatbuffers bundle Aug 15, 2022
@dbaileychess
Copy link
Collaborator

dbaileychess commented Aug 17, 2022

Looks like the TS failed because rollup wasn't found.

@github-actions github-actions bot added the CI Continuous Integration label Aug 18, 2022
@bjornharrtell
Copy link
Contributor Author

bjornharrtell commented Aug 18, 2022

Fixed in build script. Apparently it was not installing the deps from package.json. The only reason it worked without that must be that it used preinstalled tsc in the container which is no good anyway because we don't know which version it is.

@bjornharrtell bjornharrtell marked this pull request as ready for review Aug 18, 2022
@dbaileychess
Copy link
Collaborator

dbaileychess commented Aug 26, 2022

Good to go? What does this actually produce as an output? You might want to put that in the description.

@bjornharrtell
Copy link
Contributor Author

bjornharrtell commented Aug 26, 2022

@dbaileychess I believe it is good to go but yes perhaps some documentation is in order and we should ensure it is included in the npm package (which on publishing will then make it available at unpkg CDN).

@bjornharrtell
Copy link
Contributor Author

bjornharrtell commented Aug 26, 2022

@dbaileychess I've now detailed what this produces in the PR description.

@dbaileychess dbaileychess merged commit ce382d6 into google:master Aug 29, 2022
44 checks passed
@bjornharrtell bjornharrtell deleted the iife-bundle branch Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Continuous Integration javascript json
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants