Skip to content

GLSP-1656: Implement standalone-browser example#490

Merged
tortmayr merged 1 commit into
masterfrom
browser-ex
Apr 30, 2026
Merged

GLSP-1656: Implement standalone-browser example#490
tortmayr merged 1 commit into
masterfrom
browser-ex

Conversation

@tortmayr

Copy link
Copy Markdown
Contributor

What it does

Add a fully standalone browser example that runs the GLSP workflow server as a web worker — no external backend required.

  • Add examples/workflow-standalone-browser/ with webpack-dev-server setup, D
  • Consume the server bundle from @eclipse-glsp-examples/workflow-server-bundled-web npm package
  • Add PR preview workflows (pr-preview-build.yml, pr-preview-deploy.yml)
    that deploy the browser example to GitHub Pages on each PR, with a build/deploy security split for safe fork PR handling

Part of: eclipse-glsp/glsp#1656

How to test

Follow-ups

Changelog

  • This PR should be mentioned in the changelog
  • This PR introduces a breaking change (if yes, provide more details below for the changelog and the migration guide)

@tortmayr tortmayr mentioned this pull request Apr 29, 2026
3 tasks
github-actions Bot added a commit that referenced this pull request Apr 29, 2026
@eclipse-glsp eclipse-glsp deleted a comment from github-actions Bot Apr 29, 2026
@tortmayr tortmayr force-pushed the browser-ex branch 2 times, most recently from 2acf816 to f6c7162 Compare April 29, 2026 19:42
github-actions Bot added a commit that referenced this pull request Apr 30, 2026
Extend the workflow standalone example with a browser mode that runs
the GLSP server as a web worker — no external backend required.

- Split `src/` into `browser/`, `node/`, and `common/` directories
- Add webpack `--env mode=browser` for browser builds/dev server
- Add `:browser` script variants (`start:browser`, `dev:browser`,
  `build:browser`, `bundle:browser`)
- Bundle the server from `@eclipse-glsp-examples/workflow-server-bundled-web`
  via CopyWebpackPlugin
- Add PR preview workflows that deploy the browser example to
  GitHub Pages on each PR
- Remove `inversify-logger-middleware` dependency (unmaintained)
- Remove `process` and `path-browserify` polyfill shims

Part of: eclipse-glsp/glsp#1656

@martin-fleck-at martin-fleck-at left a comment

Copy link
Copy Markdown
Contributor

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 e6e12f5 into master Apr 30, 2026
7 checks passed
@tortmayr tortmayr deleted the browser-ex branch April 30, 2026 09:39
github-actions Bot added a commit that referenced this pull request Apr 30, 2026
@tortmayr tortmayr mentioned this pull request May 29, 2026
2 tasks
@github-actions github-actions Bot mentioned this pull request Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants