diff options
| author | Federico Igne <undyamon@disroot.org> | 2023-12-30 17:54:38 +0100 |
|---|---|---|
| committer | Federico Igne <undyamon@disroot.org> | 2023-12-30 17:55:02 +0100 |
| commit | 5696fd843de1bfeae6d9d74a478181b943bbb574 (patch) | |
| tree | 6a5583a1d06755ac21efd70e78b843315c9f79b6 | |
| parent | eda08bdd6fd3b2e441b5e9f1ad6cca45734d77cd (diff) | |
| download | sandy-5696fd843de1bfeae6d9d74a478181b943bbb574.tar.gz sandy-5696fd843de1bfeae6d9d74a478181b943bbb574.zip | |
feat: add project structure
| -rw-r--r-- | .ocamlformat | 1 | ||||
| -rw-r--r-- | bin/dune | 4 | ||||
| -rw-r--r-- | bin/main.ml | 1 | ||||
| -rw-r--r-- | dune-project | 22 | ||||
| -rw-r--r-- | lib/dune | 3 | ||||
| -rw-r--r-- | sand.opam | 26 | ||||
| -rw-r--r-- | test/dune | 2 | ||||
| -rw-r--r-- | test/test_sand.ml | 0 |
8 files changed, 59 insertions, 0 deletions
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 @@ | |||
| 1 | (executable | ||
| 2 | (public_name sand) | ||
| 3 | (name main) | ||
| 4 | (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 @@ | |||
| 1 | (lang dune 3.7) | ||
| 2 | |||
| 3 | (name sand) | ||
| 4 | |||
| 5 | (generate_opam_files true) | ||
| 6 | |||
| 7 | (source | ||
| 8 | (github username/reponame)) | ||
| 9 | |||
| 10 | (authors "Federico Igne") | ||
| 11 | |||
| 12 | ; (maintainers "Maintainer Name") | ||
| 13 | ; (license LICENSE) | ||
| 14 | ; (documentation https://url/to/documentation) | ||
| 15 | |||
| 16 | (package | ||
| 17 | (name sand) | ||
| 18 | (synopsis "A simple editor inspired by 'kilo'.") | ||
| 19 | ; (description "A longer description") | ||
| 20 | ; (tags | ||
| 21 | ; (topics "to describe" your project)) | ||
| 22 | (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 @@ | |||
| 1 | (library | ||
| 2 | (name sand) | ||
| 3 | (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 @@ | |||
| 1 | # This file is generated by dune, edit dune-project instead | ||
| 2 | opam-version: "2.0" | ||
| 3 | synopsis: "A simple editor inspired by 'kilo'." | ||
| 4 | authors: ["Federico Igne"] | ||
| 5 | homepage: "https://github.com/username/reponame" | ||
| 6 | bug-reports: "https://github.com/username/reponame/issues" | ||
| 7 | depends: [ | ||
| 8 | "ocaml" | ||
| 9 | "dune" {>= "3.7"} | ||
| 10 | "odoc" {with-doc} | ||
| 11 | ] | ||
| 12 | build: [ | ||
| 13 | ["dune" "subst"] {dev} | ||
| 14 | [ | ||
| 15 | "dune" | ||
| 16 | "build" | ||
| 17 | "-p" | ||
| 18 | name | ||
| 19 | "-j" | ||
| 20 | jobs | ||
| 21 | "@install" | ||
| 22 | "@runtest" {with-test} | ||
| 23 | "@doc" {with-doc} | ||
| 24 | ] | ||
| 25 | ] | ||
| 26 | 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 @@ | |||
| 1 | (test | ||
| 2 | (name test_sand)) | ||
diff --git a/test/test_sand.ml b/test/test_sand.ml new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/test_sand.ml | |||
