Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/77z/science-biology-project
Science Biology Project
https://github.com/77z/science-biology-project
Last synced: 5 days ago
JSON representation
Science Biology Project
- Host: GitHub
- URL: https://github.com/77z/science-biology-project
- Owner: 77Z
- Created: 2021-05-12T13:17:55.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-05-17T03:20:34.000Z (over 3 years ago)
- Last Synced: 2024-11-09T19:41:50.736Z (2 months ago)
- Language: Svelte
- Size: 459 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# svelte app with Gitpod setup
[![Gitpod ready-to-code](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/gitpod-io/sveltejs-template)
This is a project template for [Svelte](https://svelte.dev) apps.
## SvelteKit
If you are looking for a SvelteKit example, please use https://github.com/gitpod-io/sveltekit-example.
## Special config for Gitpod to make rollup work
Rollup needs to know how to reach the livereload endpoint. To configure that we need to do two things in our config:
1) set an environment variable
```
export CLIENT_URL="$(gp url 35729)/livereload.js?snipver=1&port=443"
```
2) pass the env value to the livereload module in [`rollup.config.js:65`](https://github.com/gitpod-io/sveltejs-template/blob/587088aae9cb7331c27591b7f8cef9d58c037e46/rollup.config.js#L66-L69)
```js
!production && livereload({
watch: 'public',
clientUrl: process.env.CLIENT_URL
}),
```This will set `CLIENT_URL` with the workspace url of `35729` (default port for livereload).