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

Publish to NPM and export ComponentRouter with presets/plugins props #138

Merged
merged 87 commits into from
Jan 21, 2025

Conversation

travisstebbins
Copy link
Contributor

@travisstebbins travisstebbins commented Jan 10, 2025

What type of PR is this?

Improvement

What does this PR do / why is it needed ?

This PR refactors the extension codebase into a monorepo consisting of 3 separate packages:

  • shared
  • client
  • extension

This is the same structure as was introduced in #137, just separated into separate packages now instead of all in one package.

Refactoring the project now allows us to publish the code in the client package to npm, which this PR also accomplishes.

These changes make plugging in a custom WebViewRoot script into the extension easier and more modular by exporting the ComponentRouter component and adding presets and plugins props to it.

This will allow custom WebViewRoot implementations to simply import the ComponentRouter prop that is published to npm and then pass in any additional presets/plugins they need to the ComponentRouter, allowing much more code re-use instead of having to write all new code for the WebViewRoot.

Which issue(s) this PR fixes:

Fixes #

Other notes for reviewers:

Does this PR introduce a user-facing change?

No

@travisstebbins travisstebbins marked this pull request as ready for review January 10, 2025 16:15
@travisstebbins travisstebbins requested a review from a team as a code owner January 10, 2025 16:15
@travisstebbins travisstebbins force-pushed the publish-to-npm branch 10 times, most recently from 74ec6b6 to deb6595 Compare January 21, 2025 16:20
.vscode/launch.json Outdated Show resolved Hide resolved
packages/extension/README.md Outdated Show resolved Hide resolved
packages/extension/eslint.config.mjs Outdated Show resolved Hide resolved
packages/shared/eslint.config.mjs Outdated Show resolved Hide resolved
packages/shared/rollup.config.js Outdated Show resolved Hide resolved
@rafaelbey rafaelbey merged commit 2080e39 into finos:main Jan 21, 2025
5 checks passed
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