Svelte: Install, run & build the front-end
The front-end is a Svelte project that generates into static files. It’s based on create-svelte, which is viewable on the repo.
Install
git clone https://github.com/osoc22/project-idlab.git
cd project-idlab/svelte/
npm install
Usage
npm run dev
- start a dev server with auto-reload, useful whilst coding.npm run build
- builds the Svelte project into the build/ directory, useful for deployment.
Important notes:
- Adapter-Static is used to ensure that Svelte generates a static website
- svelte-to-gh-pages.yml is a GitHub actions workflow that auto builds & deploys our project into GitHub pages
- vite.config.js has a bunch of polyfills to allow the solid client to work, so be careful when changing that.