Skip to content

4hnme/cbt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

'Caml Build Tool

simple build tool for small OCaml projects

Usage

  • cbt init <project name> to create a new project
  • cbt build to build it
  • cbt install to install it on your system

    it is that simple
    to see more details on each command, add help after it

note: good luck with naming your project "help"!

Project configuration

to configure your project, simply declare your modules inside proj.cbt file:

#  module       modules to link with     external packages
cbt         ; modulename1, modulename2 ; base, stdio, unix
modulename1 ; modulename2,             ; base, unix
modulename2 ; _                        ; base, unix

the first line declares the main module that will be compiled into an executable file on build, and the project name gets derived from it

But why?

why not use dune? because i felt like it was an overkill for majority of projects i'm making

LSP integration

in order for ocaml-lsp to function properly without dune you will need to:

  • create .merlin file by following the guide or by using cbt drop-merlin command which will generate it for you automatically
  • pass --fallback-read-dot-merlin flag to ocaml-lsp

About

very simple build tool for OCaml with a very silly name

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors