Create OCaml project

This commit is contained in:
Dmitrii Kovanikov 2023-12-28 16:01:56 +00:00
parent 6058710642
commit 9da5108e34
8 changed files with 68 additions and 0 deletions

3
.gitignore vendored
View File

@ -27,3 +27,6 @@ setup.log
# Local OPAM switch
_opam/
# Dune files
_build

4
bin/dune Normal file
View File

@ -0,0 +1,4 @@
(executable
(public_name github_tui)
(name main)
(libraries github_tui))

1
bin/main.ml Normal file
View File

@ -0,0 +1 @@
let () = print_endline "Hello, World!"

25
dune-project Normal file
View File

@ -0,0 +1,25 @@
(lang dune 3.12)
(name github_tui)
(generate_opam_files true)
(source
(github chshersh/github-tui))
(authors "Dmitrii Kovanikov")
(maintainers "Dmitrii Kovanikov")
(license LICENSE)
(documentation https://url/to/documentation)
(package
(name github_tui)
(synopsis "A short synopsis")
(description "A longer description")
(depends ocaml dune)
(tags
(topics "to describe" your project)))
; See the complete stanza docs at https://dune.readthedocs.io/en/stable/dune-files.html#dune-project

31
github_tui.opam Normal file
View File

@ -0,0 +1,31 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
synopsis: "A short synopsis"
description: "A longer description"
maintainer: ["Dmitrii Kovanikov"]
authors: ["Dmitrii Kovanikov"]
license: "LICENSE"
tags: ["topics" "to describe" "your" "project"]
homepage: "https://github.com/chshersh/github-tui"
doc: "https://url/to/documentation"
bug-reports: "https://github.com/chshersh/github-tui/issues"
depends: [
"ocaml"
"dune" {>= "3.12"}
"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/chshersh/github-tui.git"

2
lib/dune Normal file
View File

@ -0,0 +1,2 @@
(library
(name github_tui))

2
test/dune Normal file
View File

@ -0,0 +1,2 @@
(test
(name test_github_tui))

0
test/test_github_tui.ml Normal file
View File