From 1b5bc14003c96fb0dabef62890b5b7b55392941d Mon Sep 17 00:00:00 2001 From: DJ O'Leary Date: Wed, 19 Nov 2025 14:30:19 +0100 Subject: chore: replace template files --- 2025/ocaml/README.md | 14 +++--------- 2025/ocaml/advent_of_code_2025.opam | 34 +++++++++++++++++++++++++++++ 2025/ocaml/bin/dune | 4 ++-- 2025/ocaml/dune-project | 14 ++++++------ 2025/ocaml/lib/dune | 2 +- 2025/ocaml/ocaml_template.opam | 33 ---------------------------- 2025/ocaml/test/dune | 2 +- 2025/ocaml/test/test_advent_of_code_2025.ml | 0 2025/ocaml/test/test_ocaml_template.ml | 0 9 files changed, 48 insertions(+), 55 deletions(-) create mode 100644 2025/ocaml/advent_of_code_2025.opam delete mode 100644 2025/ocaml/ocaml_template.opam create mode 100644 2025/ocaml/test/test_advent_of_code_2025.ml delete mode 100644 2025/ocaml/test/test_ocaml_template.ml diff --git a/2025/ocaml/README.md b/2025/ocaml/README.md index 2500c9e..22a7918 100644 --- a/2025/ocaml/README.md +++ b/2025/ocaml/README.md @@ -1,12 +1,4 @@ -# OCaml Template - -This is a template for OCaml projects. - -## Quick Start - -1. Fork this repository -2. Rename the repository to your project name -3. Replace all instances of `ocaml_template` with your project name, both in files and filenames themselves. +# Advent of Code 2025 ## Project Structure @@ -29,8 +21,8 @@ This is a template for OCaml projects. ├── dune-project # dune project configuration ├── flake.lock ├── flake.nix # nix flake configuration -├── ocaml_template.install # autogenerated install script -└── ocaml_template.opam # autogenerated project description +├── advent_of_code_2025.install # autogenerated install script +└── advent_of_code_2025.opam # autogenerated project description ``` ## Tools diff --git a/2025/ocaml/advent_of_code_2025.opam b/2025/ocaml/advent_of_code_2025.opam new file mode 100644 index 0000000..3a50035 --- /dev/null +++ b/2025/ocaml/advent_of_code_2025.opam @@ -0,0 +1,34 @@ +# This file is generated by dune, edit dune-project instead +opam-version: "2.0" +synopsis: "Advent of Code 2025" +description: "Solutions to the puzzles from Advent of Code 2025" +maintainer: ["DJ O'Leary "] +authors: ["DJ O'Leary "] +license: "Unlicense" +tags: ["Advent of Code 2025"] +homepage: "https://github.com/djoleary/advent_of_code" +doc: + "https://github.com/djoleary/advent_of_code/blob/main/2025/ocaml/docs/index.html" +bug-reports: "https://github.com/djoleary/advent_of_code/issues" +depends: [ + "dune" {>= "3.20"} + "ocaml" + "alcotest" {with-test} + "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/djoleary/advent_of_code.git" +x-maintenance-intent: ["(latest)"] diff --git a/2025/ocaml/bin/dune b/2025/ocaml/bin/dune index 4768523..a912fd0 100644 --- a/2025/ocaml/bin/dune +++ b/2025/ocaml/bin/dune @@ -1,4 +1,4 @@ (executable - (public_name ocaml_template) + (public_name advent_of_code_2025) (name main) - (libraries ocaml_template)) + (libraries advent_of_code_2025)) diff --git a/2025/ocaml/dune-project b/2025/ocaml/dune-project index 5e5d724..649d68f 100644 --- a/2025/ocaml/dune-project +++ b/2025/ocaml/dune-project @@ -1,11 +1,11 @@ (lang dune 3.20) -(name ocaml_template) +(name advent_of_code_2025) (generate_opam_files true) (source - (github djoleary/ocaml_template)) + (github djoleary/advent_of_code)) (authors "DJ O'Leary ") @@ -13,14 +13,14 @@ (license Unlicense) -(documentation https://github.com/djoleary/ocaml_template/docs/index.html) +(documentation https://github.com/djoleary/advent_of_code/blob/main/2025/ocaml/docs/index.html) (package - (name ocaml_template) - (synopsis "A template for OCaml projects") - (description "A template for OCaml projects using Dune") + (name advent_of_code_2025) + (synopsis "Advent of Code 2025") + (description "Solutions to the puzzles from Advent of Code 2025") (depends ocaml (alcotest :with-test)) (tags - ("project template"))) + ("Advent of Code 2025"))) ; See the complete stanza docs at https://dune.readthedocs.io/en/stable/reference/dune-project/index.html diff --git a/2025/ocaml/lib/dune b/2025/ocaml/lib/dune index 99d3a78..b279360 100644 --- a/2025/ocaml/lib/dune +++ b/2025/ocaml/lib/dune @@ -1,2 +1,2 @@ (library - (name ocaml_template)) + (name advent_of_code_2025)) diff --git a/2025/ocaml/ocaml_template.opam b/2025/ocaml/ocaml_template.opam deleted file mode 100644 index cfd03c4..0000000 --- a/2025/ocaml/ocaml_template.opam +++ /dev/null @@ -1,33 +0,0 @@ -# This file is generated by dune, edit dune-project instead -opam-version: "2.0" -synopsis: "A template for OCaml projects" -description: "A template for OCaml projects using Dune" -maintainer: ["DJ O'Leary "] -authors: ["DJ O'Leary "] -license: "Unlicense" -tags: ["project template"] -homepage: "https://github.com/djoleary/ocaml_template" -doc: "https://github.com/djoleary/ocaml_template/docs/index.html" -bug-reports: "https://github.com/djoleary/ocaml_template/issues" -depends: [ - "dune" {>= "3.20"} - "ocaml" - "alcotest" {with-test} - "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/djoleary/ocaml_template.git" -x-maintenance-intent: ["(latest)"] diff --git a/2025/ocaml/test/dune b/2025/ocaml/test/dune index e630fdd..c90f542 100644 --- a/2025/ocaml/test/dune +++ b/2025/ocaml/test/dune @@ -1,3 +1,3 @@ (test (libraries alcotest) - (name test_ocaml_template)) + (name test_advent_of_code_2025)) diff --git a/2025/ocaml/test/test_advent_of_code_2025.ml b/2025/ocaml/test/test_advent_of_code_2025.ml new file mode 100644 index 0000000..e69de29 diff --git a/2025/ocaml/test/test_ocaml_template.ml b/2025/ocaml/test/test_ocaml_template.ml deleted file mode 100644 index e69de29..0000000 -- cgit v1.2.3