Skip to content

chore: add script to build all examples and improve parcel build process #223

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

Merged
merged 1 commit into from
May 16, 2025

Conversation

tbouffard
Copy link
Member

  • Add a script to build all example projects at once, simplifying the build process.
  • Ensure the "shared" package is built first, as it is required by all examples.
  • The script lists the size of the generated JavaScript files, making it easier to compare bundle sizes across different maxGraph versions.
  • Update the Parcel build to always clean the dist folder before building, as Parcel does not do this automatically. This prevents outdated files from previous builds from being included.

Notes

The script is adapted from the maxGraph repository. See maxGraph/maxGraph#822

- Add a script to build all example projects at once, simplifying the build process.
- Ensure the "shared" package is built first, as it is required by all examples.
- The script lists the size of the generated JavaScript files, making it easier to compare bundle sizes across different maxGraph versions.
- Update the Parcel build to always clean the dist folder before building, as Parcel does not do this automatically. This prevents outdated files from previous builds from being included.

[skip ci]
@tbouffard tbouffard added the chore Build, CI/CD or repository tasks (issues/PR maintenance, environments, ...) label May 16, 2025
Copy link

@tbouffard tbouffard merged commit 460d0ca into main May 16, 2025
1 check passed
@tbouffard tbouffard deleted the chore/add_scripts_to_build_all_examples branch May 16, 2025 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Build, CI/CD or repository tasks (issues/PR maintenance, environments, ...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant