From a2046014299e2a0ec7655c42655d7d8465c5fe08 Mon Sep 17 00:00:00 2001 From: Maiste Date: Wed, 18 Oct 2023 19:25:21 +0200 Subject: [PATCH] Init OCaml repository --- ocaml/.ocamlformat | 1 + ocaml/dune-project | 19 +++++++++++++++++++ ocaml/gilded_rose.opam | 31 +++++++++++++++++++++++++++++++ ocaml/lib/dune | 2 ++ ocaml/test/dune | 2 ++ ocaml/test/gilded_rose.ml | 0 6 files changed, 55 insertions(+) create mode 100644 ocaml/.ocamlformat create mode 100644 ocaml/dune-project create mode 100644 ocaml/gilded_rose.opam create mode 100644 ocaml/lib/dune create mode 100644 ocaml/test/dune create mode 100644 ocaml/test/gilded_rose.ml diff --git a/ocaml/.ocamlformat b/ocaml/.ocamlformat new file mode 100644 index 00000000..37525ae3 --- /dev/null +++ b/ocaml/.ocamlformat @@ -0,0 +1 @@ +profile = default diff --git a/ocaml/dune-project b/ocaml/dune-project new file mode 100644 index 00000000..09667c2b --- /dev/null +++ b/ocaml/dune-project @@ -0,0 +1,19 @@ +(lang dune 3.11) +(generate_opam_files true) + +(name gilded_rose) +(source + (github emilybache/GildedRose-Refactoring-Kata)) +(authors "Maiste ") +(maintainers "Maiste ") +(license MIT) +(documentation https://github.com/emilybache/GildedRose-Refactoring-Kata) + +(package + (name gilded_rose) + (synopsis "Gilded Rose Refactoring Kata") + (description "The Gilded Rose Refactoring Kata in OCaml") + (depends + (ocaml (>= 4.08)) + dune)) + diff --git a/ocaml/gilded_rose.opam b/ocaml/gilded_rose.opam new file mode 100644 index 00000000..57ea38b4 --- /dev/null +++ b/ocaml/gilded_rose.opam @@ -0,0 +1,31 @@ +# This file is generated by dune, edit dune-project instead +opam-version: "2.0" +synopsis: "Gilded Rose Refactoring Kata" +description: "The Gilded Rose Refactoring Kata in OCaml" +maintainer: ["Maiste "] +authors: ["Maiste "] +license: "MIT" +homepage: "https://github.com/emilybache/GildedRose-Refactoring-Kata" +doc: "https://github.com/emilybache/GildedRose-Refactoring-Kata" +bug-reports: + "https://github.com/emilybache/GildedRose-Refactoring-Kata/issues" +depends: [ + "ocaml" {>= "4.08"} + "dune" {>= "3.11"} + "odoc" {with-doc} +] +build: [ + ["dune" "subst"] {dev} + [ + "dune" + "build" + "-p" + name + "-j" + jobs + "@install" + "@runtest" {with-test} + "@doc" {with-doc} + ] +] +dev-repo: "git+https://github.com/emilybache/GildedRose-Refactoring-Kata.git" diff --git a/ocaml/lib/dune b/ocaml/lib/dune new file mode 100644 index 00000000..2ef54c3f --- /dev/null +++ b/ocaml/lib/dune @@ -0,0 +1,2 @@ +(library + (name gilded_rose)) diff --git a/ocaml/test/dune b/ocaml/test/dune new file mode 100644 index 00000000..1d1b4a80 --- /dev/null +++ b/ocaml/test/dune @@ -0,0 +1,2 @@ +(test + (name gilded_rose)) diff --git a/ocaml/test/gilded_rose.ml b/ocaml/test/gilded_rose.ml new file mode 100644 index 00000000..e69de29b