Skip to content

ieviev/fscr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fscr

a wrapper around the F# compiler

usage: fscr [-t exe|library] <script.fsx / project.fsproj> (default: exe)

the output is created into bin/ and executed after compiling,

  • with -t library a dll is created and not ran

the reason to use this over dotnet build or dotnet run is:

  • that it takes 300ms to recompile and run after changes (instead of several seconds!)
  • all dll references are symlinked instead of copied
  • the compilation is done with an in-memory filesystem
  • the same compiler process is reused after first compilation

example: running unit tests in a project

test-loop.mp4

example: running script

fscr.mp4

building:

compile the project from source with Ready2Run, this drastically reduces startup time:

  • cd src/fscr
  • dotnet publish -p:PublishReadyToRun=true --ucr

About

a wrapper around the F# compiler

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published