aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHongchang Wu <wuhc85@gmail.com>2020-08-26 00:47:06 -0400
committerBozhidar Batsov <bozhidar.batsov@gmail.com>2020-09-02 07:32:21 +0300
commit1104e448779600a6238ffc91afb7e29d6b268ef1 (patch)
treec4da0ad4a1c090d1c5124df0fe2006d6bad7a299
parenta2b5a70e204e277a738615901dfebf274c8202c2 (diff)
Add support for OCaml dune projects
-rw-r--r--CHANGELOG.md1
-rw-r--r--doc/modules/ROOT/pages/projects.adoc3
-rw-r--r--projectile.el5
3 files changed, 9 insertions, 0 deletions
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.