Requirements:
- .NET SDK 10
- Node.js 22
Start the development server:
./build.sh watchOpen http://localhost:8070/ in your browser.
Build the production site into src/App/dist:
./build.sh buildOn Windows, use build.bat instead of ./build.sh.
Releases are prepared by EasyBuild.ShipIt from Conventional Commits.
- Every push to
mainopens or updates achore: release <version>pull request. It adds the new version toCHANGELOG.mdand writes it tosrc/App/Version.fs. - Merging that pull request publishes the site to GitHub Pages.
To update the Fable compiler, run the Update Fable NPM packages workflow manually. It updates @fable-org/fable-standalone, @fable-org/fable-metadata and the fable .NET tool, checks that the REPL still builds, and commits a fix: to main.
- Add an
.fsfile tosrc/Examples/<folder>.Core: the example uses no library set.<set name>: the example needs that library set, for exampleReact.
- Register the file in
src/App/Examples.fs, under one of the categories. - Optional: add a stylesheet to
src/Examples/sharedor next to the example, and reference it in theCssfield.
The build fails if a file in src/Examples is not registered in src/App/Examples.fs, or if an example does not compile against its library set.
A library set is the group of packages the REPL code compiles against. The user picks one in the Libraries panel.
- Create
src/Repl.Lib/<Name>/Repl.Lib.<Name>.fsproj, with aPackageReferencefor each package. Copysrc/Repl.Lib/Reactas a starting point. - Create
src/Examples/<Name>/Examples.<Name>.fsproj. Copysrc/Examples/React/Examples.React.fsprojand change theProjectReference. - Optional: add a description for the set in
src/App/Presets.fs.
The build precompiles each library set.