-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
opam
36 lines (35 loc) · 1.38 KB
/
opam
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
opam-version: "2.0"
maintainer: "Roma Sokolov <sokolov.r.v@gmail.com>"
authors: [ "Roma Sokolov <sokolov.r.v@gmail.com>" ]
license: "MIT"
homepage: "https://github.com/little-arhat/ppx_jsobject_conv"
bug-reports: "https://github.com/little-arhat/ppx_jsobject_conv/issues"
dev-repo: "git+https://github.com/little-arhat/ppx_jsobject_conv.git"
tags: [ "syntax" "jsoo" "javascript" ]
build: [
["dune" "build" "-p" name "-j" jobs]
]
depends: [
"ocaml" {>= "4.10.0"}
"dune" {>= "2.7"}
"js_of_ocaml" {>= "3.8.0"}
"ppxlib" {>= "0.22.0" & < "0.26.0"}
"webtest" {with-test}
"webtest-js" {with-test}
]
synopsis:
"Ppx plugin for Typeconv to derive conversion from ocaml types to js objects to use with js_of_ocaml"
description: """
For types annotated with [@@deriving jsobject], plugin will generate pair of functions: *_of_jsobject/jsobject_of_*
to convert from/to JavaScript objects. This allows one to use clean OCaml types to describe their logic, while having ability
to easy go down to js types. Easy conversion from js objects to OCaml types means also, one can use fast native JSON.parse to
convert JSON to OCaml types.
Plugin supports number of customizations."""
url {
src:
"https://github.com/little-arhat/ppx_jsobject_conv/archive/v0.9.0.tar.gz"
checksum: [
"sha256=c3d2f7525716157d82e7d6e823b2e23a3412597e600cf5795a56b5bb036f0777"
"md5=84c5da220a181b78faaa6064967c69fc"
]
}