Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 676 Bytes

DEVELOPING.md

File metadata and controls

21 lines (14 loc) · 676 Bytes

Developing

When cloning the repository, run npm run watch-svelte to compile the webviews.

Developing webviews using Svelte

To create a new Svelte component run the script in /scripts with the desired name as argument. This will create the Svelte-file in ./webviews/components directory and the necessary boilerplate in ./webviews/pages directory. The name provided as argument will also be used as the file prefix in /out/compiled.

./create-webview KissaIstuu

To automatically compile Svelte components on when saving, run

npm run watch-svelte

Compiled Svelte-components are saved to ./out/compiled from where they can be used in panels.