This is a boilerplate initializing Svelte as a front-end framework for Foundry VTT. The integration is still light and relies on Foundry's built-in hydration and store methods. In addition it attempts to be as barebones as possible so you can code the way YOU want.
Download the repository to a folder.
git clone [email protected]:aMediocreDad/svelte-4-fvtt.git
Install dependencies.
npm ci
#Because the repository contains a package-lock.json this is the best way to do it.
Build and watch.
npm start
Build for production.
npm run build
Link the dist folder to your foundryVTT data folder.
# Unix
ln -s dist/* /absolute/path/to/foundry/data/system-name
# cmd
mklink /J /absolute/path/to/link /absolute/path/to/this/repo/dist
I very much welcome any and all contributions to give this boilerplate a deeper integration with Foundry so it can leverage even more of the cool features of Svelte.
This boilerplate is Copyright (c) 2021 Ambrosius and licensed under MIT. See LICENSE in the repository.
~HAVE FUN!