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

Inline build for ParaView scene export #502

Merged
merged 2 commits into from
Aug 5, 2024

Conversation

Lgt2x
Copy link
Contributor

@Lgt2x Lgt2x commented Aug 1, 2024

Add a build:inline npm script that builds Glance with all assets inlined, so that the bundled HTML file is standalone and can be used for the ParaView scene export to VTKJS. This mimics the build behavior we had in Glance 4.17 before the Webpack 5 migration.

cc @mwestphal

@Lgt2x
Copy link
Contributor Author

Lgt2x commented Aug 2, 2024

@floryst @bourdaisj

Copy link
Collaborator

@floryst floryst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

One small note: we might as well merge the build:inline and bundle scripts to simplify things. Separating the two stages doesn't have any use-case as far as I'm concerned.

@Lgt2x
Copy link
Contributor Author

Lgt2x commented Aug 2, 2024

bundle is also used after build:release in the Github action script https://github.com/Kitware/glance/blob/master/.github/workflows/publish.yml#L29

@floryst
Copy link
Collaborator

floryst commented Aug 2, 2024

I suppose that does add a ParaViewGlance.html to the output bundle, but since it is currently it's kind of broken anyways I'm okay with removing that step in the publish workflow.

@Lgt2x
Copy link
Contributor Author

Lgt2x commented Aug 5, 2024

build:inline and bundle merged

@floryst
Copy link
Collaborator

floryst commented Aug 5, 2024

LGTM. Thanks!

@floryst floryst merged commit 469a194 into Kitware:master Aug 5, 2024
3 checks passed
Copy link

github-actions bot commented Aug 7, 2024

🎉 This PR is included in version 4.25.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants