From b56f507a2097efef456c0edf4b74a4661e479698 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Fri, 12 May 2023 08:30:56 +0200 Subject: [PATCH] dune init --- .gitignore | 1 + bin/dune | 4 ++++ bin/main.ml | 1 + dune-project | 24 ++++++++++++++++++++++++ lib/dune | 2 ++ pusk.opam | 28 ++++++++++++++++++++++++++++ test/dune | 2 ++ test/pusk.ml | 0 8 files changed, 62 insertions(+) create mode 100644 .gitignore create mode 100644 bin/dune create mode 100644 bin/main.ml create mode 100644 dune-project create mode 100644 lib/dune create mode 100644 pusk.opam create mode 100644 test/dune create mode 100644 test/pusk.ml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..69fa449 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +_build/ diff --git a/bin/dune b/bin/dune new file mode 100644 index 0000000..608edfb --- /dev/null +++ b/bin/dune @@ -0,0 +1,4 @@ +(executable + (public_name pusk) + (name main) + (libraries pusk)) 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..7298b71 --- /dev/null +++ b/dune-project @@ -0,0 +1,24 @@ +(lang dune 3.7) + +(name pusk) + +(generate_opam_files true) + +(source + (uri https://git.mylloon.fr/Anri/pusk.git)) + +(authors "Mylloon") + +(maintainers "Mylloon") + +(license AGPL-3.0-or-later) + +(package + (name pusk) + (synopsis "Twitter bot") + (description "Send tweet peridically to avoid ban from Elon") + (depends ocaml dune) + (tags + (api twitter))) + +; See the complete stanza docs at https://dune.readthedocs.io/en/stable/dune-files.html#dune-project diff --git a/lib/dune b/lib/dune new file mode 100644 index 0000000..7e3ff31 --- /dev/null +++ b/lib/dune @@ -0,0 +1,2 @@ +(library + (name pusk)) diff --git a/pusk.opam b/pusk.opam new file mode 100644 index 0000000..93eeeb2 --- /dev/null +++ b/pusk.opam @@ -0,0 +1,28 @@ +# This file is generated by dune, edit dune-project instead +opam-version: "2.0" +synopsis: "Twitter bot" +description: "Send tweet peridically to avoid ban from Elon" +maintainer: ["Mylloon"] +authors: ["Mylloon"] +license: "AGPL-3.0-or-later" +tags: ["api" "twitter"] +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: "https://git.mylloon.fr/Anri/pusk.git" diff --git a/test/dune b/test/dune new file mode 100644 index 0000000..82f176b --- /dev/null +++ b/test/dune @@ -0,0 +1,2 @@ +(test + (name pusk)) diff --git a/test/pusk.ml b/test/pusk.ml new file mode 100644 index 0000000..e69de29