Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/daniel-le97/bun-svelte-ssr
https://github.com/daniel-le97/bun-svelte-ssr
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/daniel-le97/bun-svelte-ssr
- Owner: daniel-le97
- Created: 2023-10-04T05:02:20.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-15T14:56:19.000Z (about 1 year ago)
- Last Synced: 2024-12-09T14:57:46.555Z (about 1 month ago)
- Language: TypeScript
- Size: 335 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bun-svelte-ssr
This project is a work in progress and may not be fully complete. Please use it at your own discretion.
read:
[getting started](./docs/1.starting.md) as a high level overview of why and how this works under the hood!# Notes
To install dependencies:
```bash
bun create daniel-le97/bun-svelte-ssr
```To run:
```bash
bun run dev
```for deploying:
```bash
# // all needed files get built to the /build directory
bun run buildbun run start # or bun ./build/index.js
```A dockerfile is located at ./.dockerfile for ease of deployments
# Caveats and Todos
- using Bun's bundler has been my first time dealing with transpilers/bundlers/caching, if theres alot that i am missing please let me know!
- the dev command has makeshift hmr functionality by only rebuilding the files that have changes, still needs work to exclude some files from registering changes
- mdsvex or .svx extensions mostly work, but we will need to add it as a real svelte preprocess step instead of a compiling stepcheck out the solid-js version at [bun-solid-ssr](https://github.com/daniel-le97/bun-solid-ssr)