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

Introduce @odk/common package #10

Merged
merged 4 commits into from
Nov 17, 2023
Merged

Conversation

eyelidlessness
Copy link
Member

Branched from #9 (diff) because that's where the need for this becomes acute. I've hesitated to address the need until now, partly because I'm not a fan of "utils" as a code organizing concept. But mostly because I didn't want to proscribe a solution until needs became more clear.

The actual need: there are cross-cutting concerns across the other packages which need to live somewhere that can be shared amongst them. As discussed in the @odk/common README, these will typically be lower-level libraries, types, testing/tooling/etc accommodations. And they will typically be intended for shared use internally but probably don't warrant release as a separate package.

The contents of the @odk/common package are pretty sparse right now. It just includes the stuff that has already been most painful to not have shared. I know there's already more which should be included (and at least one thing is already noted here in this same PR!), but this was enough scope to validate the parts most in need right now. Hopefully with this package established, it'll be less disruptive to move stuff into it as makes sense without so much ceremony.

I also threw in a few minor housekeeping things that were either tangentially related (updating GitHub URLs) or sitting in my queue being just as annoying not to have done (update .editorconfig, give CI jobs better/human-readable names).

Also, I'd be happy to bikeshed the package name if there's something better to consider (but "utils" is not better 😜). I basically don't like any name I've come up with.

Copy link
Member

@lognaturel lognaturel left a comment

Choose a reason for hiding this comment

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

I have no desire to bikeshed.

- Package setup
- Move, consolidate, fix the very most common modules/types which prompted creation of the package now
- Fix various tooling concerns which came up (most notably: building types in @odk/xpath, linting)
- Add CI step
- Also includes overdue housekeeping to update other package.json GitHub URLs
Question mark = for some reason I cannot reproduce either failure locally, which is concerning in its own right….
@eyelidlessness eyelidlessness merged commit f55eeef into main Nov 17, 2023
42 checks passed
@eyelidlessness eyelidlessness deleted the fine-we-are-doing-utils branch November 17, 2023 21:26
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.

2 participants