Skip to content

Commit

Permalink
Add support for OCaml dune projects
Browse files Browse the repository at this point in the history
  • Loading branch information
hongchangwu committed Aug 26, 2020
1 parent a2b5a70 commit 97f6016
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 3 additions & 0 deletions doc/modules/ROOT/pages/projects.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 5 additions & 0 deletions projectile.el
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 97f6016

Please sign in to comment.