Skip to content

About

Generate Dune rules for building a client/server application or library

Resources

Code of conduct

Stars

5 stars

Watchers

1 watching

Forks

Latest commit

 

History

95 Commits

Folders and files

Repository files navigation

ocsigen-dune-rules

OCaml-CI Build Status

Generate Dune rules for building a client/server application or library.

Usage

Use this command to generate the dune rules for an Ocsigen application:

ocsigen-dune-rules gen-application my_app \
  --libraries lwt,logs \
  --server-libraries ocsipersist-sqlite \
  --eliom-libraries ocsigen-toolkit > app/dune

See test/app.t for a full example of a library and an application.

To update the generated rules later, modify the ocsigen-dune-rules command in the generated dune file and run dune runtest --auto-promote.

You must also tell Dune that *.eliom files contain source code by adding this to your dune-project file:

dune-project:

(dialect
 (name "eliom-server")
 (implementation
  (extension "eliom"))
 (interface
  (extension "eliomi")))

See ocsigen-toolkit for a real world example.

About

Generate Dune rules for building a client/server application or library

Resources

Code of conduct

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages