Eclipse GLSP Server Node monorepo. Provides the TypeScript-based server framework for the Graphical Language Server Platform (GLSP). Contains core server packages, graph model, ELK layout integration, and example workflow server. Uses pnpm workspaces.
- Package manager: pnpm — do not use yarn or npm
- Build:
pnpm installfrom root installs and compiles everything - Compile:
pnpm compile(runstsc -bwith project references) - Clean:
pnpm clean - Bundle:
pnpm bundle(esbuild bundles the workflow example, node + webworker targets) - Start example server:
pnpm start(TCP on 5007) orpnpm start:websocket(WebSocket on 8081) — runs the pre-built bundle - Dev server (hot reload):
pnpm dev(TCP on 5007) orpnpm dev:ws(WebSocket on 8081) — esbuild watchessrcand restarts the server on change
- Tests:
pnpm test(Mocha), runs across all packages - After completing any code changes, always run the
/fixskill before reporting completion. It auto-fixes lint/format/header issues and runs the tests; manually resolve anything it could not auto-fix (remaining lint errors, test failures) and re-run it.
These are enforced by ESLint and are easy to get wrong:
- Never import from
sprotty-protocoldirectly — use@eclipse-glsp/protocolinstead