reason-native-web / morph

A webframework for Reason and OCaml
https://reason-native-web.github.io/morph/
MIT License
139 stars 7 forks source link

Running examples #50

Closed idkjs closed 4 years ago

idkjs commented 4 years ago

Are these example still in the repo? I can't seem to run them. Thank you.

~/Github/morph master
❯ esy build
info esy build 0.6.6 (using package.json)

~/Github/morph master
❯ (esy examples-path)/hello_world.exe
fish: Command substitutions not allowed
~/Github/morph master
❯ esy examples-path/hello_world.exe

~/Github/morph master
❯ esy bin/hello_world.exe

~/Github/morph master
❯ esy examples
    ocamlopt docs/markdown/simple_switch_based_router.exe
ld: warning: directory not found for option '-L/opt/local/lib'
    ocamlopt docs/markdown/writing_middleware.exe
ld: warning: directory not found for option '-L/opt/local/lib'
    ocamlopt docs/markdown/with_routes_package.exe
ld: warning: directory not found for option '-L/opt/local/lib'
    ocamlopt docs/markdown/graphql_server.exe
ld: warning: directory not found for option '-L/opt/local/lib'
    ocamlopt docs/markdown/getting_started.exe
ld: warning: directory not found for option '-L/opt/local/lib'

~/Github/morph master
❯ esy docs/markdown/simple_switch_based_router.exe

~/Github/morph master
ManasJayanth commented 4 years ago

They have been renamed afaik. esy b dune exec ./bin/Example should work.

https://github.com/reason-native-web/morph/blob/master/bin/dune#L2

idkjs commented 4 years ago

❯ esy b dune exec ./bin/Example.exe

Thanks @ManasJayanth