A simple helper I use to generate OCaml projects. I constantly find myself struggling to remember
dune commands for
various tasks and how to setup opam files. This project is intended to solve that and make setup quicker.
This tool generates:
- Git repository
- Executable or Library with
- Opam package
- Copy of the executable to
- Makefile with no nonsense commands
opam install mkocaml
Creating a new executable
> mkocaml -e new > make > new Hello, World!
Creating a new library
> mkocaml -l new > make
||Builds the project with dune, copies exe to
||Installs the dune projects|
||Runs unit tests|
||Cleans the project with dune|
||Generates the documentation for the project|
||Publishes the opam package|
git config is used to fill in details.
The project will be versioned at
1.0 by default. For subsequent releases, update the version in this file and
Makefile (under the
Before publishing, ensure you fill in the
mkocaml are greatly appreciated!
Please try to keep its implementation unassuming and configurable.