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

Build two bundles: full and lean #890

Merged
merged 8 commits into from
Aug 10, 2018
Merged

Build two bundles: full and lean #890

merged 8 commits into from
Aug 10, 2018

Conversation

zachmullen
Copy link
Contributor

@manthey @aashish24 this first commit represents the build configuration changes we discussed yesterday. If you approve of these changes, I'll go through and change the website and examples code.

The lean bundle does not include any of the runtime packages
(currently just hammerjs and d3) and assumes they'll be available
at runtime in the global namespace.
@manthey
Copy link
Contributor

manthey commented Aug 7, 2018

@zachmullen This looks like a fine start.

@jbeezley Do you know what determines which files go to the CloudFlare CDN?

@jbeezley
Copy link
Contributor

jbeezley commented Aug 7, 2018

https://github.com/cdnjs/cdnjs/blob/master/ajax/libs/geojs/package.json

I don't remember exactly how it works, but any changes would have to be made as a PR to this file.

@zachmullen zachmullen changed the title [WIP] Build two bundles: full and lean Build two bundles: full and lean Aug 9, 2018
@zachmullen
Copy link
Contributor Author

@manthey PTAL, I think this is ready for final review.

CHANGELOG.md Outdated
@@ -43,6 +43,7 @@
- Remove bower support (#856)
- Switch to webpack v3 (#854)
- Removed needless function wrappers (#870)
- Changed build process: optional dependencies are now included in the bundle by default (#890)
Copy link
Contributor

Choose a reason for hiding this comment

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

This will be released in the next version, so can you add an ## Unreleased section to the change log and move it to within that?

<script type="text/javascript" src="../../built/geo.min.js"></script>
<!-- Use a specific version of GeoJS by requesting it from a CDN.
For instance, remove the local references, above, and
uncomment the following:
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/geojs/0.15.1/geo.ext.min.js"></script>
Copy link
Contributor

Choose a reason for hiding this comment

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

We'll release the changed build as next next version (0.18.0). Since older version on the CDN would still need the geo.ext.js script from older versions, lets change the version for geo.min.js.

@zachmullen zachmullen merged commit 88bd6ca into master Aug 10, 2018
@zachmullen zachmullen deleted the dual-builds branch August 10, 2018 15:46
@aashish24
Copy link
Member

@zachmullen this is super nice improvement.. 👍

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

Successfully merging this pull request may close these issues.

4 participants