Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for OCaml dune projects #1576

Merged
merged 1 commit into from
Sep 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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