Skip to content

Commit c42f934

Browse files
committed
Update verification examples. Mark angular example broken. Fix json-client package sub-export in examples
1 parent faffbac commit c42f934

24 files changed

+9426
-11559
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,13 +223,13 @@ For the **java-client** example you need to ensure the **java-server** example i
223223

224224
None of the verification examples is part of the npm workspace. Some bring substantial amount of npm dependencies that pollute the main node_modules dependencies and therefore these examples need to be build and started independently. All verifaction examples re-uses the code form the json client example and therefore require the json server to be started.
225225

226-
- [Angular verification example](./verify/angular): Before March 2024 this was located in [a separate repository](https://github.com/TypeFox/monaco-languageclient-ng-example). If you want to test it, Please do: `cd verify/angular && npm run verify`. It serves the client here: <http://localhost:4200>.
227-
228-
- [Next.js verification example](./verify/next): demonstrates how to use `@typefox/monaco-editor-react` with Next.js, Please do: `cd verify/next && npm run verify`. It serves the client here: <http://localhost:8081>.
226+
- [vite verification example](./verify/vite) demonstrates how bundling can be achieved with vite. There is no configuration required Please do: `cd verify/vite && npm run verify`. It serves the client here: <http://localhost:8081>.
229227

230228
- [webpack verification example](./verify/webpack) demonstrates how bundling can be achieved with webpack. You find the configuration here: [webpack.config.js](./verify/webpack/webpack.config.js). Please do: `cd verify/webpack && npm run verify`. It serves the client here: <http://localhost:8082>.
231229

232-
- [vite verification example](./verify/vite) demonstrates how bundling can be achieved with vite. There is no configuration required Please do: `cd verify/vite && npm run verify`. It serves the client here: <http://localhost:8083>.
230+
- [Next.js verification example](./verify/next): demonstrates how to use `@typefox/monaco-editor-react` with Next.js, Please do: `cd verify/next && npm run verify`. It serves the client here: <http://localhost:8083>.
231+
232+
- **Currently broken and not usable until repaired:** [Angular verification example](./verify/angular): Before March 2024 this was located in [a separate repository](https://github.com/TypeFox/monaco-languageclient-ng-example). If you want to test it, Please do: `cd verify/angular && npm run verify`. It serves the client here: <http://localhost:4200>.
233233

234234
### VSCode integration
235235

index.html

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -87,18 +87,17 @@ <h3>TypeScript</h3>
8787
<br>
8888

8989
<h2>Verification</h2>
90-
<h3>Angular</h2>
91-
Please start <b><code>cd verify/angular && npm run verify</code></b> beforehand:<br>
92-
<a href="http://localhost:4200">JSON Language Client & Language Server (Web Socket) (Angular Dev Server)</a>
93-
<h3>Next.js</h3>
94-
Please start <b><code>cd verify/next && npm run verify</code></b> beforehand:<br>
95-
<a href="http://localhost:8081">JSON Language Client & Language Server (Web Socket) (Next.js Dev Server)</a>
90+
<h3>Vite</h3>
91+
Please start <b><code>cd verify/vite && npm run verify</code></b> beforehand:<br>
92+
<a href="http://localhost:8081">JSON Language Client & Language Server (Web Socket) (vite build)</a>
9693
<h3>Webpack</h3>
9794
Please start <b><code>cd verify/webpack && npm run verify</code></b> beforehand:<br>
9895
<a href="http://localhost:8082">JSON Language Client & Language Server (Web Socket) (webpack build)</a>
99-
<h3>Vite</h3>
100-
Please start <b><code>cd verify/vite && npm run verify</code></b> beforehand:<br>
101-
<a href="http://localhost:8083">JSON Language Client & Language Server (Web Socket) (vite build)</a>
96+
<h3>Next.js</h3>
97+
Please start <b><code>cd verify/next && npm run verify</code></b> beforehand:<br>
98+
<a href="http://localhost:8083">JSON Language Client & Language Server (Web Socket) (Next.js Dev Server)</a>
99+
<h3>Angular</h2>
100+
Currently broken and not usable until repaired
102101
</div>
103102
</body>
104103

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/examples/CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22

33
All notable changes to this npm module are documented in this file.
44

5-
## [2025.8.4] - unreleased
5+
## [2025.8.5] - 2025-08-22
6+
7+
- Fixed broken json-client sub-package export.
8+
9+
## [2025.8.4] - 2025-08-21
610

711
- Updated to `monaco-languageclient@10.0.0-next.1`, `monaco-editor-wrapper@7.0.0-next.1` and `@typefox/monaco-editor-react@7.0.0-next.1`.
812

packages/examples/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "monaco-languageclient-examples",
3-
"version": "2025.8.4",
3+
"version": "2025.8.5",
44
"description": "Monaco Language client examples",
55
"author": {
66
"name": "TypeFox GmbH",
@@ -29,8 +29,8 @@
2929
"default": "./dist/node.js"
3030
},
3131
"./json-client": {
32-
"types": "./dist/json/client/wrapperWs.d.ts",
33-
"default": "./dist/json/client/wrapperWs.js"
32+
"types": "./dist/json/client/client.d.ts",
33+
"default": "./dist/json/client/client.js"
3434
},
3535
"./python-client": {
3636
"types": "./dist/python/client/main.d.ts",
@@ -54,7 +54,7 @@
5454
"dist/node"
5555
],
5656
"json-client": [
57-
"dist/json/client/wrapperWs"
57+
"dist/json/client/client"
5858
],
5959
"worker/langium": [
6060
"dist/langium/langium-dsl/worker/langium-server"

verify/angular/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# Angular verification example
22

3+
**Currently broken and not usable until repaired.**
4+
35
It serves on the client here: <http://localhost:4200>.

verify/angular/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"@angular/platform-browser": "~18.2.8",
1818
"@angular/platform-browser-dynamic": "~18.2.8",
1919
"@codingame/monaco-vscode-editor-api": "~20.2.1",
20-
"monaco-languageclient-examples": "~2025.8.4",
20+
"monaco-languageclient-examples": "~2025.8.5",
2121
"rxjs": "~7.8.1",
2222
"zone.js": "~0.14.10"
2323
},

verify/buildAll.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
$MyPath = Split-Path -Path $MyInvocation.MyCommand.Path -Parent
22

3-
Set-Location $MyPath/vite; npm run verify:ci
43
Set-Location $MyPath/webpack; npm run verify:ci
5-
Set-Location $MyPath/angular; npm run verify:ci
64
Set-Location $MyPath/next; npm run verify:ci
5+
# currently broken
6+
# Set-Location $MyPath/angular; npm run verify:ci
77

88
Set-Location $MyPath

verify/buildAll.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
MyPath=$(realpath $(dirname $0))
22

3-
cd $MyPath/vite; npm run verify:ci
43
cd $MyPath/webpack; npm run verify:ci
5-
cd $MyPath/angular; npm run verify:ci
64
cd $MyPath/next; npm run verify:ci
5+
# currently broken
6+
# cd $MyPath/angular; npm run verify:ci
77

88
cd $MyPath

verify/next/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"scripts": {
88
"verify": "npm install && npm run dev",
99
"verify:ci": "npm install && npm run build -d",
10-
"dev": "npm run build:worker && next dev -p 8081",
11-
"dev:turbo": "npm run build:worker &&next dev --turbopack -p 8081",
10+
"dev": "npm run build:worker && next dev -p 8083",
11+
"dev:turbo": "npm run build:worker &&next dev --turbopack -p 8083",
1212
"build": "npm run build:worker &&next build",
1313
"build:worker": "npx esbuild --format=esm --bundle ./app/langium-dsl/worker/langium-server.ts --outdir=public/workers",
1414
"build:worker:vite": "vite build",
@@ -22,7 +22,7 @@
2222
"@typefox/monaco-editor-react": "~7.0.0-next.1",
2323
"langium": "~4.0.0",
2424
"monaco-languageclient": "~10.0.0-next.1",
25-
"monaco-languageclient-examples": "~2025.8.4",
25+
"monaco-languageclient-examples": "~2025.8.5",
2626
"next": "~15.5.0",
2727
"react": "~19.1.1",
2828
"react-dom": "~19.1.1",

0 commit comments

Comments
 (0)