Skip to content

mjambon/dune-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dune starter kit

This repository provides templates to help you start an OCaml project. It can be used to create multiple libraries, multiple executables, and test suites.

The project is structured as a collection of mostly self-contained subprojects, each with its source code and tests.

Requirements: opam, git, make, dune, alcotest.

How to set up your OCaml project:

  1. Clone this repository: git clone https://github.com/mjambon/dune-starter
  2. Copy files into a git repository e.g. cp -a dune-starter/proj foobar, cd foobar && git init && git add .
  3. Play around and make sure everything works. Try make, make test, make install, make uninstall, make clean. Consult the project's readme (proj/README.md) for more info.
  4. Replace occurrences of proj, sub1 and sub2 by your own names. Rename, throw away, and add files as needed.
  5. Consult the dune docs as needed.

Thanks to the authors of dune and @rgrinberg in particular for this great tool!

About

Simple template for midsize OCaml project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •