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

Refactor packages and provide dedicated browser and node runtimes #37

Merged
merged 2 commits into from
Jan 27, 2023

Conversation

tortmayr
Copy link
Contributor

@tortmayr tortmayr commented Jan 26, 2023

  • Move shared code into common package, add dedicated browser and node packages

  • Update package.json to provide entry points for both node and browser

  • Refactor @eclipse-glsp-examples/workflow-server following the same pattern

  • Add webpack config to enable both bundling for node and the browser

  • Update changelog

  • Add bundle step for browser-env to Jenkins build

Fixes eclipse-glsp/glsp#884

- Move shared code into common package; add dedicated browser and node packages
- Update package.json to provide entry points for both node and browser
- Refactor `@eclipse-glsp-examples/workflow-server` following the same pattern
- Rename `@eclipse-glsp/server-node` package to `@eclipse-glsp/server` and provide
  import entry points for node and browser
- Add webpack config to enable both bundling for node and the browser
- Update changelog

- Add bundle step for browser-env to Jenkins build

Fixes eclipse-glsp/glsp#884
@tortmayr tortmayr requested a review from xai January 27, 2023 09:01
Copy link
Member

@xai xai left a comment

Choose a reason for hiding this comment

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

Looks good and works great with glsp-theia-integration and glsp-vscode-integration 👍
I also tested debugging the workflow example and the node backend.

Really minor comments:

  • The main README still refers to @eclipse-glsp/server-node
  • We could hint to the minimum nodejs requirement (16) in the README and maybe even include a .nvmrc to suggest a tested version of node to the user.

lerna.json Outdated Show resolved Hide resolved
@tortmayr
Copy link
Contributor Author

Thanks Olaf, I have updated the README and fixed the lerna.json file

  • We could hint to the minimum nodejs requirement (16) in the README and maybe even include a .nvmrc to suggest a tested version of node to the user.
    Sounds like a good plan. However, if we do that we should do it consistently across all repositories. So we should probably track and handle this in a follow-up issue

Copy link
Member

@xai xai left a comment

Choose a reason for hiding this comment

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

LGTM!

@tortmayr tortmayr merged commit 3d7585d into main Jan 27, 2023
@tortmayr tortmayr deleted the browser-runtime branch January 27, 2023 22:13
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.

Provide browser-only runtime of node-glsp-server
2 participants