Skip to content

Latest commit

 

History

History
56 lines (36 loc) · 1.75 KB

README.md

File metadata and controls

56 lines (36 loc) · 1.75 KB

Feliz Vite (a happy life)

CI

alt text

This template was created for a blog post for fsAdvent calendar 2024

The template provides a minimal setup to get React working in Vite with HMR and some ESLint rules, it starts from the basic vite template but it was adapted to run F# via Fable, and use Feliz library for awesome React built in F# DSL.

As an alternative to the official dotnet template for Feliz it adopts the remarkable Vite Fable Plugin.

alt text

Currently, two official plugins are available (for react):

special thanks 🦔

npm

clone via git to use with npm, you can then install and run as usual

npm ci && npm run dev

bun

if you want to use bun

bun create jkone27/feliz-vite

you can delete package-lock.json file then, to have dotnet tools installed correctly cd into your directory and run:

bun install -D --trust vite-plugin-fable

then

bun install

then

bun run dev