File tree Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ depends: [
18
18
"reason" {>= "3.10.0"}
19
19
"reason-react"
20
20
"reason-react-ppx"
21
+ "routes"
21
22
"ocamlformat"
22
23
"js_of_ocaml"
23
24
"cmarkit" {dev}
@@ -32,6 +33,7 @@ pin-depends: [
32
33
[ "reason-react.dev" "git+https://github.com/reasonml/reason-react.git#4ee2eda353628090eda95e0b8dabe4e2be50f954" ]
33
34
[ "reason-react-ppx.dev" "git+https://github.com/reasonml/reason-react.git#4ee2eda353628090eda95e0b8dabe4e2be50f954" ]
34
35
[ "cmarkit.dev" "git+https://github.com/dbuenzli/cmarkit.git#f37c8ea86fd0be8dba7a8babcee3682e0e047d91" ]
36
+ [ "routes.dev" "git+https://github.com/jchavarri/routes.git#57fb76038b429a6adb4e42aeef04cca7079fe157" ]
35
37
]
36
38
build: [
37
39
["dune" "subst"] {dev}
Original file line number Diff line number Diff line change 6
6
; melange doesn't include belt and dom anymore, including them below leads to
7
7
; `_build/default/playground/output/node_modules` to include the runtimes
8
8
melange.belt
9
- melange.dom)
9
+ melange.dom
10
+ routes)
10
11
(modules) ; Empty, we just want to the js artifacts from the libraries
11
12
(module_systems es6))
12
13
19
20
(bash
20
21
"find $(dirname %{some-cmi}) -name \"*.cmi\" -or -name \"*.cmj\" | xargs js_of_ocaml build-fs -o %{target}")))
21
22
23
+ (rule
24
+ (deps
25
+ %{bin:js_of_ocaml}
26
+ (:some-cmi %{lib:routes:melange/routes.cmi}))
27
+ (target routes-cmijs.js)
28
+ (action
29
+ (bash
30
+ "find $(dirname %{some-cmi}) -name \"*.cmi\" -or -name \"*.cmj\" | xargs js_of_ocaml build-fs -o %{target}")))
31
+
22
32
(executable
23
33
(name format)
24
34
(modules format)
37
47
(deps
38
48
(alias playground-runtime-js)
39
49
format.bc.js
40
- reason-react-cmijs.js)
50
+ reason-react-cmijs.js
51
+ routes-cmijs.js)
41
52
(action
42
53
(echo "assets generated")))
Original file line number Diff line number Diff line change 1
1
import "./App.css" ;
2
2
import "../../_build/default/playground/reason-react-cmijs" ;
3
+ import "../../_build/default/playground/routes-cmijs" ;
3
4
import "../../_opam/bin/mel_playground.bc" ;
4
5
import "../../_opam/bin/melange-cmijs" ;
5
6
import "../../_opam/bin/format.bc.js" ;
You can’t perform that action at this time.
0 commit comments