Skip to content

laaksonel/melange-basic-template

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

melange-basic-template

A simple project template using Melange.

Getting started

You will need esy package manager to obtain OCaml and Melange sources. See esy installation instructions here.

Once esy is available, run

esy

to install all dependencies.

Then:

esy build

to build the project. This command, as constructed in esy.json,

  1. generates a symbolically linked dir bs-platform in node_modules, which is helpful when using JavaScript bundlers like Webpack that expect to find Melange stdlib JavaScript files under node_modules/bs-platform.
  2. builds the project.

Now you should see a _build folder with all generated files, you can run

esy x node _build/default/src/Main.bs.js

to see the result of the script running.

About

A simple project template using Melange

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • OCaml 65.1%
  • Reason 34.9%