package mkocaml
Tool to generate OCaml projects
Install
Dune Dependency
Authors
Maintainers
Sources
1.0.tar.gz
md5=5528c6dfd160fbe1695ad92457bb83e7
sha512=734ca93b96b4b166867b1deae8e2a81bbbd3f2d7956179248229a2a320a5bbc28f5fc953a2b6f185852fba61d23f7e2f99a6bafbfb26125200e54ac954e8d846
Description
Published: 02 Jan 2020
README
🐪 Mkocaml
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
Git ignore
Executable/Library
Opam package
Copy of the executable to
/usr/local/bin
Makefile with no nonsense commands
Makefile command | Description |
---|---|
make or make build |
Builds the project with dune, copies exe to /usr/local/bin |
make install |
Installs the dune projects |
make test |
Runs unit tests |
make clean |
Cleans the project with dune |
make doc |
Generates the documentation for the project |
make publish |
Publishes the opam package |
Example
Creating a new executable
> mkocaml -e new
> make
> new
Hello, World!
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page