From 1104e448779600a6238ffc91afb7e29d6b268ef1 Mon Sep 17 00:00:00 2001 From: Hongchang Wu Date: Wed, 26 Aug 2020 00:47:06 -0400 Subject: Add support for OCaml dune projects --- CHANGELOG.md | 1 + doc/modules/ROOT/pages/projects.adoc | 3 +++ projectile.el | 5 +++++ 3 files changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index cff4e77..579dd2a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ * Add Dart project type. * [#1555](https://github.com/bbatsov/projectile/pull/1555) Add search with ripgrep. * Add Python-poetry project type. +* [#1576](https://github.com/bbatsov/projectile/pull/1576) Add OCaml [Dune](https://github.com/ocaml/dune) project type. ### Changes diff --git a/doc/modules/ROOT/pages/projects.adoc b/doc/modules/ROOT/pages/projects.adoc index 203f617..ab15b5e 100644 --- a/doc/modules/ROOT/pages/projects.adoc +++ b/doc/modules/ROOT/pages/projects.adoc @@ -81,6 +81,9 @@ are the configuration files of various build tools. Out of the box the following | stack.yaml | Haskell's stack tool based project +| dune-project +| OCaml Dune project file + | info.rkt | Racket package description file diff --git a/projectile.el b/projectile.el index 0181b2a..ba94d4a 100644 --- a/projectile.el +++ b/projectile.el @@ -2866,6 +2866,11 @@ test/impl/other files as below: :run "dart" :test-suffix "_test.dart") +;; OCaml +(projectile-register-project-type 'ocaml-dune '("dune-project") + :project-file "dune-project" + :compile "dune build" + :test "dune runtest") (defvar-local projectile-project-type nil "Buffer local var for overriding the auto-detected project type. -- cgit v1.0