Skip to content

Conversation

@erictheise
Copy link
Member

Pull eslit.config.mjs from upstream to ensure id.min.js is generated

Copy link
Member

@1ec5 1ec5 Mar 25, 2025

Choose a reason for hiding this comment

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

Should the minified build artifact be checked into staging? Upstream only does that in a release branch, not in the develop branch, equivalent to our staging branch.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes it should.

Since we are pulling it in to HOT's tasking-manager where it's consumed as an npm module where we need to look is in their fork of iD. https://github.com/hotosm/iD/tree/2.x/dist

My dev server will not load without it.

Copy link
Member

@1ec5 1ec5 Mar 25, 2025

Choose a reason for hiding this comment

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

This may make future merges with upstream iD more error-prone. Can we merge staging into https://github.com/OpenHistoricalMap/iD/tree/release, build these artifacts there, and publish them to NPM, as iD does?

Edit: Looks like we’ve already checked in some of the built artifacts but not the minified version. I see how that would be a problem, but ideally we would keep both dist/iD.js and dist/iD.min.js out of staging.

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.

3 participants