Skip to content

An example project using fable 3 to compile to javascript that can run on nodejs

Notifications You must be signed in to change notification settings

Tzeroxik/fable3-nodejs-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fable3-nodejs-example

An example project using fable 3 to compile to javascript that can run on nodejs

Requirements

nodejs and dotnet 5 sdk must be installed.

if the fable3 compiler isn't installed install it using dotnet tool install fable

npm tasks

use npm run-script with the following tasks

build-es6 -> compile Fsharp into JS (ES6)

build-commonjs -> transpile FSharp into JS (commonJs)

build-commonjs-bundle -> transpiled FSharp into a single JS file (commonJs)

test -> run transpiled commonJs (depends on build-commonjs)

test-bundled -> run transpiled and bundled JS file (depends on build-commonjs-bundled)

About

An example project using fable 3 to compile to javascript that can run on nodejs

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages