Commit graph

13 commits

Author SHA1 Message Date
Tobias Hunger
d506c9d553 Fix CI and deploy to website 2022-08-24 10:35:32 +02:00
Tobias Hunger
9e7eacf263 online_editor: Build WASM LSP for the online editor in CI 2022-08-24 10:35:32 +02:00
Tobias Hunger
8c6d103cae online_editor: Add LSP support
Enable the Slint LSP in the online editor.

The approach is modeled after the Slint Web extension for VSCode, using
the `monaco-languageclient` packet from NPM.
2022-08-24 10:35:32 +02:00
Tobias Hunger
fb97a24375 online_editor: Restructure the project
Use the typical src/ setup used in TS projects and split out the code
for the workers into src/worker so that this can get its own
configuration for the typescript compiler. This is necessary as the
web workers run in a more restricted environment as the rest of the
code and because `dom` and `webworker` can not be used together.
2022-08-24 10:35:32 +02:00
Tobias Hunger
1884497308 FIX building with @prefix
Also drop monaco_worker.js as entry point: That is picked up
automatically.
2022-08-16 12:13:16 +02:00
Tobias Hunger
d6bea150d8 online_editor: Make monaco worker work 2022-08-16 12:13:16 +02:00
Tobias Hunger
a645895644 online_editor: Follow JS suggestions in vite.config.js 2022-08-16 12:13:16 +02:00
Tobias Hunger
244bef7990 online_editor: Define @preview to point to the preview WASM code 2022-08-16 12:13:16 +02:00
Tobias Hunger
e9b8a245ce online_editor: Reformat files and make cspell happy (no code change!) 2022-08-16 12:13:16 +02:00
Tobias Hunger
4230ac2572
Update copyright information to reflect name change
Also run resue over the codebase and fix complaints from that tool.
2022-02-09 10:27:47 +01:00
Olivier Goffart
f4a824cf61 Rename the wasm-interpreter and the online_editor 2022-02-02 12:26:55 +01:00
Simon Hausmann
bf865d4036 Further trim the dist build of the online editor
Re-use the wasm interpreter from the web site when building for the web
site. It's built & copied in the CI at the same time, and we can
convince rollup to preserve the relative link for production builds,
while aliasing to the local directory for dev builds.

This brings down the editor to ~2.3MB on my machine.
2022-01-06 09:55:34 +01:00
Simon Hausmann
0df394a389 Make it faster to develop the online editor
Switch from webpack to vite. The dev mode is practically instant.
2022-01-06 09:55:34 +01:00