Skip to content

refactor: undo monorepo#260

Open
jderochervlk wants to merge 7 commits intomainfrom
unmonorepo-webapi-redo
Open

refactor: undo monorepo#260
jderochervlk wants to merge 7 commits intomainfrom
unmonorepo-webapi-redo

Conversation

@jderochervlk
Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread docs/content/docs/index.mdx Outdated
Comment thread docs/content/docs/index.mdx Outdated
Comment thread docs/content/docs/philosophy.mdx Outdated
Comment thread docs/content/docs/philosophy.mdx Outdated
Comment thread docs/content/docs/philosophy.mdx Outdated
@fhammerschmidt
Copy link
Copy Markdown
Member

oh no! why?

@jderochervlk jderochervlk requested review from brnrdog and tsnobip April 23, 2026 11:45
@jderochervlk
Copy link
Copy Markdown
Collaborator Author

oh no! why?

We won't need to ship separate npm packages because of this: rescript-lang/rescript#8379

Copy link
Copy Markdown
Member

@tsnobip tsnobip left a comment

Choose a reason for hiding this comment

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

Undoing the monorepo would allow to have have a structure quite similar to what it was before, just with extracted "base" types. Now we should really think about how we want to call these base types (Base.DOM, BaseDOM, other?). I'm wondering if we couldn't come up with an even smarter structure with the features.

Edit: I'm quite excited to see we're close to finally reach the alpha haha

Comment thread src/DOM/DOM.res
Comment on lines +1 to +8
module Animation = Animation
module AnimationEffect = AnimationEffect
module CSSRuleList = CSSRuleList
module CSSStyleDeclaration = CSSStyleDeclaration
module CSSStyleSheet = CSSStyleSheet
module CSSStyleValue = CSSStyleValue
module CaretPosition = CaretPosition
module CharacterData = CharacterData
Copy link
Copy Markdown
Member

@tsnobip tsnobip Apr 23, 2026

Choose a reason for hiding this comment

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

we didn't nest modules like this in the previous "plain" repo structure, did we?


Examples:

- `src/DOM/Types.res` -> `src/DOM/DomTypes.res`
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We had FileAPI, DOMAPI, etc originally, shouldn't we keep the same structure and call it DOMTypes, DOMGlobal, etc?

- `src/DOM/Types.res` -> `src/DOM/DomTypes.res`
- `src/DOM/Global.res` -> `src/DOM/DomGlobal.res`
- `src/Fetch/Global.res` -> `src/Fetch/FetchGlobal.res`
- `src/Base/Event.res` -> `src/Base/BaseEvent.res`
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The most common dependency will be DOM.element, this would now become BaseDOM.element, are we sure about this? Another possibility is to create nested modules with aliases so Base.DOM.element.

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