Skip to content

Commit

Permalink
Add jsoo libraries to webapp package, pin library versions for exes, …
Browse files Browse the repository at this point in the history
…add package for kappa-webapp
  • Loading branch information
antoinepouille committed Mar 22, 2024
1 parent 025b2b6 commit 3480afb
Show file tree
Hide file tree
Showing 5 changed files with 139 additions and 41 deletions.
84 changes: 60 additions & 24 deletions dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
(synopsis "Public internals of the Kappa tool suite")
(depends
(ocaml ( >= 4.05.0 ))
num
re
(yojson ( >= 2.0 ))
(lwt ( >= 4.2.0 ))
num
re
stdlib-shims
fmt
logs
Expand All @@ -34,13 +34,13 @@
(name kappa-binaries)
(synopsis "Command line interfaces of the Kappa tool suite")
(depends
(ocaml ( >= 4.04.0 ))
num
re
(yojson ( >= 1.6.0 ))
(lwt ( >= 4.2.0 ))
fmt
logs
(ocaml ( >= 4.05.0 ))
(yojson ( = 2.1.0 ))
(lwt ( = 5.7.0 ))
(num ( = 1.5))
(re ( = 1.11.0))
(fmt ( = 0.9.0))
(logs ( = 0.7.0))
kappa-library
)
(depopts
Expand All @@ -52,33 +52,69 @@
(synopsis "Backends for an interactive use of the Kappa tool suite")
(depends
(ocaml ( >= 4.05.0 ))
num
re
(yojson ( >= 1.6.0 ))
(lwt ( >= 4.2.0 ))
fmt
logs
(yojson ( = 2.1.0 ))
(lwt ( = 5.7.0 ))
(num ( = 1.5))
(re ( = 1.11.0))
(fmt ( = 0.9.0))
(logs ( = 0.7.0))
(atdgen-runtime ( = 2.15.0))
(atdgen ( = 2.15.0)) ; TODO: find a way to specify as build dependency only, as with the `build` package variable in opam
kappa-library
atdgen-runtime
atdgen ; TODO: find a way to specify as build dependency only, as with the `build` package variable in opam
)
)

(package
(name kappa-server)
(synopsis "HTTP server to query the Kappa tool suite")
(synopsis "Browser app for an interactive use of the Kappa tool suite")
(depends
(ocaml ( >= 4.05.0 ))
num
re
(yojson ( >= 1.6.0 ))
(lwt ( >= 4.2.0 ))
fmt
logs
(yojson ( = 2.1.0 ))
(lwt ( = 5.7.0 ))
(js_of_ocaml ( = 5.7.0))
(num ( = 1.5))
(re ( = 1.11.0))
(fmt ( = 0.9.0))
(logs ( = 0.7.0))
(atdgen-runtime ( = 2.15.0))
(atdgen ( = 2.15.0)) ; TODO: find a way to specify as build dependency only, as with the `build` package variable in opam
(lwt_react ( = 1.2.0))
(tyxml-ppx ( = 4.6.0))
(js_of_ocaml-ppx ( = 5.7.0))
(js_of_ocaml-lwt ( = 5.7.0))
(js_of_ocaml-tyxml ( = 5.7.0))
kappa-binaries
kappa-agents
cohttp-lwt-unix
atdgen-runtime
atdgen ; TODO: find a way to specify as build dependency only, as with the `build` package variable in opam
)
; does not build executables as there seem to be no way to build js exes in a package
)

(package
(name kappa-webapp)
(synopsis "Browser app for an interactive use of the Kappa tool suite")
(depends
(ocaml ( >= 4.05.0 ))
(yojson ( = 2.1.0 ))
(lwt ( = 5.7.0 ))
(js_of_ocaml ( = 5.7.0))
(num ( = 1.5))
(re ( = 1.11.0))
(fmt ( = 0.9.0))
(logs ( = 0.7.0))
(atdgen-runtime ( = 2.15.0))
(atdgen ( = 2.15.0)) ; TODO: find a way to specify as build dependency only, as with the `build` package variable in opam
(lwt_react ( = 1.2.0))
(tyxml-ppx ( = 4.6.0))
(js_of_ocaml-ppx ( = 5.7.0))
(js_of_ocaml-lwt ( = 5.7.0))
(js_of_ocaml-tyxml ( = 5.7.0))
(atdgen-runtime ( = 2.15.0))
(atdgen ( = 2.15.0)) ; TODO: find a way to specify as build dependency only, as with the `build` package variable in opam
kappa-binaries
kappa-agents
)
; does not build executables as there seem to be no way to build js exes in a package
)
16 changes: 8 additions & 8 deletions kappa-agents.opam
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ bug-reports: "https://github.com/Kappa-Dev/KappaTools/issues"
depends: [
"dune" {>= "2.9"}
"ocaml" {>= "4.05.0"}
"num"
"re"
"yojson" {>= "1.6.0"}
"lwt" {>= "4.2.0"}
"fmt"
"logs"
"yojson" {= "2.1.0"}
"lwt" {= "5.7.0"}
"num" {= "1.5"}
"re" {= "1.11.0"}
"fmt" {= "0.9.0"}
"logs" {= "0.7.0"}
"atdgen-runtime" {= "2.15.0"}
"atdgen" {= "2.15.0"}
"kappa-library"
"atdgen-runtime"
"atdgen"
"odoc" {with-doc}
]
build: [
Expand Down
14 changes: 7 additions & 7 deletions kappa-binaries.opam
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ doc:
bug-reports: "https://github.com/Kappa-Dev/KappaTools/issues"
depends: [
"dune" {>= "2.9"}
"ocaml" {>= "4.04.0"}
"num"
"re"
"yojson" {>= "1.6.0"}
"lwt" {>= "4.2.0"}
"fmt"
"logs"
"ocaml" {>= "4.05.0"}
"yojson" {= "2.1.0"}
"lwt" {= "5.7.0"}
"num" {= "1.5"}
"re" {= "1.11.0"}
"fmt" {= "0.9.0"}
"logs" {= "0.7.0"}
"kappa-library"
"odoc" {with-doc}
]
Expand Down
4 changes: 2 additions & 2 deletions kappa-library.opam
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ bug-reports: "https://github.com/Kappa-Dev/KappaTools/issues"
depends: [
"dune" {>= "2.9"}
"ocaml" {>= "4.05.0"}
"num"
"re"
"yojson" {>= "2.0"}
"lwt" {>= "4.2.0"}
"num"
"re"
"stdlib-shims"
"fmt"
"logs"
Expand Down
62 changes: 62 additions & 0 deletions kappa-webapp.opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
version: "4.1~dev"
synopsis: "Browser app for an interactive use of the Kappa tool suite"
maintainer: [
"Antoine Pouille <[email protected]>"
"Pierre Boutillier <[email protected]>"
]
authors: [
"Jean Krivine"
"Jérôme Feret"
"Pierre Boutillier"
"Ioana Cristescu"
"Mutaamba Maasha"
"Lý Kim Quyên"
"Antoine Pouille"
]
license: "LGPL-3.0-only"
homepage: "https://kappalanguage.org/"
doc:
"https://kappalanguage.org/sites/kappalanguage.org/files/inline-files/Kappa_Manual.pdf"
bug-reports: "https://github.com/Kappa-Dev/KappaTools/issues"
depends: [
"dune" {>= "2.9"}
"ocaml" {>= "4.05.0"}
"yojson" {= "2.1.0"}
"lwt" {= "5.7.0"}
"js_of_ocaml" {= "5.7.0"}
"num" {= "1.5"}
"re" {= "1.11.0"}
"fmt" {= "0.9.0"}
"logs" {= "0.7.0"}
"atdgen-runtime" {= "2.15.0"}
"atdgen" {= "2.15.0"}
"lwt_react" {= "1.2.0"}
"tyxml-ppx" {= "4.6.0"}
"js_of_ocaml-ppx" {= "5.7.0"}
"js_of_ocaml-lwt" {= "5.7.0"}
"js_of_ocaml-tyxml" {= "5.7.0"}
"atdgen-runtime" {= "2.15.0"}
"atdgen" {= "2.15.0"}
"kappa-binaries"
"kappa-agents"
"odoc" {with-doc}
]
build: [
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"--promote-install-files=false"
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
["dune" "install" "-p" name "--create-install-files" name]
]
dev-repo: "git+https://github.com/Kappa-Dev/KappaTools.git"

0 comments on commit 3480afb

Please sign in to comment.