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

Separate command line script for making custom bundles and rename it to "custom-bundle" #5712

Merged
merged 1 commit into from
Jun 4, 2021

Conversation

archmoj
Copy link
Contributor

@archmoj archmoj commented Jun 4, 2021

Adds command line option to extra_bundles script to specify which dist bundles to generate/update.

npm run extra-bundles -- strict gl3d

Also makes custom-bundle script a separate script which would allow adding command line options to extra_bundles script e.g. to rebuild strict and/or gl3d (as added by this PR).

Also it is important to note that custom-bundle may be used to include features (e.g. traces, transforms) that are not in the main bundle in future.
So it is better to name it this way instead of partial_bundle which is now an internal module.

@plotly/plotly_js

 - that way custom-bundle may include extra things that are not in the main
 - also avoids problem when adding command line options to extra_bundle
 - add command line option to help rebuild specific extra_bundles e.g. gl3d
Copy link
Collaborator

@alexcjohnson alexcjohnson left a comment

Choose a reason for hiding this comment

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

Yes, this is much better 💃

@archmoj archmoj merged commit f6932a7 into master Jun 4, 2021
@archmoj archmoj deleted the separate-custom-bundle-script branch June 4, 2021 19:31
@archmoj
Copy link
Contributor Author

archmoj commented Jun 4, 2021

Yes, this is much better

It would also unlock better testing of those partial bundles (in future) on the CI.

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

Successfully merging this pull request may close these issues.

None yet

2 participants