Skip to content

Commit

Permalink
WIP: bootstrap ocproto project
Browse files Browse the repository at this point in the history
https://ocaml.org/docs/bootstrapping-a-dune-project

opam exec -- dune init project ocproto
  • Loading branch information
dckc committed Feb 19, 2024
1 parent 17f62a1 commit 1351634
Show file tree
Hide file tree
Showing 7 changed files with 66 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/ocproto/bin/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
(executable
(public_name ocproto)
(name main)
(libraries ocproto))
1 change: 1 addition & 0 deletions packages/ocproto/bin/main.ml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
let () = print_endline "Hello, World!"
26 changes: 26 additions & 0 deletions packages/ocproto/dune-project
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
(lang dune 3.14)

(name ocproto)

(generate_opam_files true)

(source
(github username/reponame))

(authors "Author Name")

(maintainers "Maintainer Name")

(license LICENSE)

(documentation https://url/to/documentation)

(package
(name ocproto)
(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
2 changes: 2 additions & 0 deletions packages/ocproto/lib/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
(library
(name ocproto))
31 changes: 31 additions & 0 deletions packages/ocproto/ocproto.opam
Original file line number Diff line number Diff line change
@@ -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: ["Maintainer Name"]
authors: ["Author Name"]
license: "LICENSE"
tags: ["topics" "to describe" "your" "project"]
homepage: "https://github.com/username/reponame"
doc: "https://url/to/documentation"
bug-reports: "https://github.com/username/reponame/issues"
depends: [
"ocaml"
"dune" {>= "3.14"}
"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"
2 changes: 2 additions & 0 deletions packages/ocproto/test/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
(test
(name test_ocproto))
Empty file.

0 comments on commit 1351634

Please sign in to comment.