Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
ocaml-compiler: ${{ matrix.ocaml-compiler }}

- name: Install all deps
run: make install
run: make install-ci

- name: Build the project
run: make build
Expand Down
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,17 @@ init: create-switch install ## Configure everything to develop this repository i

.PHONY: install
install: ## Install development dependencies
$(DUNE) build @install
yarn install ## install JavaScript packages that the project might depend on, like `react` or `react-dom`
opam update ## make sure that opam has the latest information about published libraries in the opam repository https://opam.ocaml.org/packages/
opam install -y . --deps-only --with-test ## install the Melange and OCaml dependencies
opam exec opam-check-npm-deps ## check that the versions of the JavaScript packages installed match the requirements defined by Melange libraries

.PHONY: install-ci
install-ci: ## Install development dependencies
yarn install ## install JavaScript packages that the project might depend on, like `react` or `react-dom`
opam update ## make sure that opam has the latest information about published libraries in the opam repository https://opam.ocaml.org/packages/
opam install -y . --deps-only --with-test ## install the Melange and OCaml dependencies
opam pin -y add $(project_name).dev . ## somehow needed to get relude to show up in dune?
opam exec opam-check-npm-deps ## check that the versions of the JavaScript packages installed match the requirements defined by Melange libraries

.PHONY: build
Expand Down
36 changes: 25 additions & 11 deletions bs-decode.opam
Original file line number Diff line number Diff line change
@@ -1,27 +1,41 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
synopsis: "BS Decode"
synopsis: "Type-safe JSON decoding for ReasonML and OCaml"
description: "Type-safe JSON decoding for ReasonML and OCaml"
maintainer: ["Michael Martin"]
authors: ["Michael Martin"]
license: "MIT"
homepage: "https://github.com/mlms13/bs-decode"
bug-reports: "https://github.com/mlms13/bs-decode/issues"
depends: [
"dot-merlin-reader" {dev}
"dune" {>= "3.8"}
"dot-merlin-reader"
"melange" {>= "2.0.0"}
"ocaml" {>= "5.1.0"}
"reason" {>= "3.10.0" & < "4.0.0"}
"ocaml-lsp-server" {dev}
"ocamlformat" {dev}
"odoc" {with-doc}
"relude" {dev}
"bastet" {dev}
"reason" {>= "3.10.0"}
"ocaml-lsp-server"
"relude"
"bastet"
"melange-jest" {>= "0.1.0"}
"opam-check-npm-deps" {with-test}
"opam-check-npm-deps"
"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/mlms13/bs-decode.git"
pin-depends: [
[ "relude.dev" "git+https://github.com/reazen/relude.git#v2" ]
[ "bastet.dev" "git+https://github.com/johnhaley81/bastet.git#6c8f53a9da55254691df49bddf96b279b38be204" ]
]
]
4 changes: 4 additions & 0 deletions bs-decode.opam.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
pin-depends: [
[ "relude.dev" "git+https://github.com/reazen/relude.git#v2" ]
[ "bastet.dev" "git+https://github.com/johnhaley81/bastet.git#6c8f53a9da55254691df49bddf96b279b38be204" ]
]
29 changes: 24 additions & 5 deletions dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,37 @@

(name bs-decode)

(license "MIT")
(source
(github mlms13/bs-decode))

(maintainers Michael Martin)
(license MIT)

(authors Michael Martin)
(maintainers "Michael Martin")

(authors "Michael Martin")

(homepage https://github.com/mlms13/bs-decode)

(bug_reports https://github.com/mlms13/bs-decode/issues)

(package
(allow_empty)
(allow_empty)
(name bs-decode)
(synopsis "Type-safe JSON decoding for ReasonML and OCaml")
(description "Type-safe JSON decoding for ReasonML and OCaml"))
(description "Type-safe JSON decoding for ReasonML and OCaml")
(depends
dot-merlin-reader
(melange
(>= 2.0.0))
(ocaml
(>= 5.1.0))
(reason
(>= 3.10.0))
ocaml-lsp-server
relude
bastet
(melange-jest
(>= 0.1.0))
opam-check-npm-deps))

(generate_opam_files)
1 change: 1 addition & 0 deletions src/dune
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
(library
(name bsDecode)
(public_name bs-decode)
(wrapped false)
(libraries bastet relude)
(modes melange)
Expand Down