From 5696fd843de1bfeae6d9d74a478181b943bbb574 Mon Sep 17 00:00:00 2001 From: Federico Igne Date: Sat, 30 Dec 2023 17:54:38 +0100 Subject: feat: add project structure --- .ocamlformat | 1 + bin/dune | 4 ++++ bin/main.ml | 1 + dune-project | 22 ++++++++++++++++++++++ lib/dune | 3 +++ sand.opam | 26 ++++++++++++++++++++++++++ test/dune | 2 ++ test/test_sand.ml | 0 8 files changed, 59 insertions(+) create mode 100644 .ocamlformat create mode 100644 bin/dune create mode 100644 bin/main.ml create mode 100644 dune-project create mode 100644 lib/dune create mode 100644 sand.opam create mode 100644 test/dune create mode 100644 test/test_sand.ml diff --git a/.ocamlformat b/.ocamlformat new file mode 100644 index 0000000..f41b107 --- /dev/null +++ b/.ocamlformat @@ -0,0 +1 @@ +version = 0.26.1 diff --git a/bin/dune b/bin/dune new file mode 100644 index 0000000..d802869 --- /dev/null +++ b/bin/dune @@ -0,0 +1,4 @@ +(executable + (public_name sand) + (name main) + (libraries sand)) diff --git a/bin/main.ml b/bin/main.ml new file mode 100644 index 0000000..7bf6048 --- /dev/null +++ b/bin/main.ml @@ -0,0 +1 @@ +let () = print_endline "Hello, World!" diff --git a/dune-project b/dune-project new file mode 100644 index 0000000..daec250 --- /dev/null +++ b/dune-project @@ -0,0 +1,22 @@ +(lang dune 3.7) + +(name sand) + +(generate_opam_files true) + +(source + (github username/reponame)) + +(authors "Federico Igne") + +; (maintainers "Maintainer Name") +; (license LICENSE) +; (documentation https://url/to/documentation) + +(package + (name sand) + (synopsis "A simple editor inspired by 'kilo'.") +; (description "A longer description") +; (tags +; (topics "to describe" your project)) + (depends ocaml dune)) diff --git a/lib/dune b/lib/dune new file mode 100644 index 0000000..f63bb19 --- /dev/null +++ b/lib/dune @@ -0,0 +1,3 @@ +(library + (name sand) + (libraries unix)) diff --git a/sand.opam b/sand.opam new file mode 100644 index 0000000..4bbb344 --- /dev/null +++ b/sand.opam @@ -0,0 +1,26 @@ +# This file is generated by dune, edit dune-project instead +opam-version: "2.0" +synopsis: "A simple editor inspired by 'kilo'." +authors: ["Federico Igne"] +homepage: "https://github.com/username/reponame" +bug-reports: "https://github.com/username/reponame/issues" +depends: [ + "ocaml" + "dune" {>= "3.7"} + "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/username/reponame.git" diff --git a/test/dune b/test/dune new file mode 100644 index 0000000..718218c --- /dev/null +++ b/test/dune @@ -0,0 +1,2 @@ +(test + (name test_sand)) diff --git a/test/test_sand.ml b/test/test_sand.ml new file mode 100644 index 0000000..e69de29 -- cgit v1.2.3