All Projects β†’ chrisnevers β†’ mkocaml

chrisnevers / mkocaml

Licence: BSD-3-Clause license
πŸ”¨ Tool to generate OCaml projects

Programming Languages

ocaml
1615 projects
Makefile
30231 projects

Projects that are alternatives of or similar to mkocaml

ocamlbyexample
Learn Ocaml by reading code examples
Stars: ✭ 18 (-69.49%)
Mutual labels:  opam, dune
conex
establish trust in community repositories, cryptographically signed by library authors
Stars: ✭ 32 (-45.76%)
Mutual labels:  opam
docker-ocaml
Minimum docker images for OCaml+OPAM
Stars: ✭ 15 (-74.58%)
Mutual labels:  opam
opam-coq-archive
Archive for all Coq related OPAM packages organized in various repositories
Stars: ✭ 101 (+71.19%)
Mutual labels:  opam
opam-cross-ios
An OCaml cross-toolchain for iOS and several useful libraries
Stars: ✭ 58 (-1.69%)
Mutual labels:  opam
pymor
pyMOR - Model Order Reduction with Python
Stars: ✭ 198 (+235.59%)
Mutual labels:  dune
cryodunere
Cryo DUNE reverse engineering and reimplementation in java.
Stars: ✭ 23 (-61.02%)
Mutual labels:  dune
ocaml-semver
Semantic version handling for OCaml
Stars: ✭ 16 (-72.88%)
Mutual labels:  opam
xs-opam
Opam repository for OCaml libraries to build Citrix Hypervisor toolstack components
Stars: ✭ 14 (-76.27%)
Mutual labels:  opam
Mirage
MirageOS is a library operating system that constructs unikernels
Stars: ✭ 1,707 (+2793.22%)
Mutual labels:  opam
chalk
πŸ–οΈπŸŽ¨Composable and simple terminal highlighting package for OCaml.
Stars: ✭ 29 (-50.85%)
Mutual labels:  opam
d2
A d2 mod for OpenRA
Stars: ✭ 44 (-25.42%)
Mutual labels:  dune
ocaml-cairo
Binding to Cairo, a 2D Vector Graphics Library.
Stars: ✭ 39 (-33.9%)
Mutual labels:  dune
lambda-dti
Interpreter of the ITGL with dynamic type inference
Stars: ✭ 18 (-69.49%)
Mutual labels:  dune

πŸͺ 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
  • OCaml .gitignore
  • Executable or Library with inline-tests
  • Opam package
  • Copy of the executable to /usr/local/bin
  • Makefile with no nonsense commands

Install

  opam install mkocaml

Examples

Creating a new executable

> mkocaml -e new
> make
> new
Hello, World!

Creating a new library

> mkocaml -l new
> make

Makefile

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

Opam File

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 publish section).

Before publishing, ensure you fill in the synopsis section.

Contributions

Contributions to mkocaml are greatly appreciated! ❀️

Please try to keep its implementation unassuming and configurable. πŸ™‚

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].