This demonstrates how to use Svelte with Google Apps Script.
- Run
npm install
to install dependencies. - Run
npm run build
to build the project. - Copy the contents of the
gas
folder into your Google Apps Script project. - Create a new "web app" deployment in Google Apps Script
- Add your Svelte components in the
src/lib
folder. - Import and use them in
src/App.svelte
. - If you need to call Google Apps Script functions from Svelte, use the google.script.run API. See
testInvokationFromClient
example in Apps.svelte