(executable (name workout_client) (modules workout_client) (modes js) (preprocess (pps js_of_ocaml-ppx)) (libraries js_of_ocaml js_of_ocaml-lwt lwt)) (rule (targets stylesheet.ml) (deps (source_tree assets)) (action (run %{bin:ocaml-crunch} --silent --mode plain --output %{targets} assets))) (rule (target workout_client_asset.ml) (deps workout_client.bc.js) (action (run bash -c "tmp=$(mktemp -d); cp \"$1\" \"$tmp/workout_client.js\"; %{bin:ocaml-crunch} --silent --mode plain --output \"$2\" \"$tmp\"; rm -rf \"$tmp\"" -- %{dep:workout_client.bc.js} %{target}))) (library (name hito_web) (public_name hito.web) (modules routes decode hevy_csv view_model pages handlers stylesheet workout_client_asset) (preprocess (pps dream-html.ppx)) (libraries hito.core hito.app dream dream-html lwt unix csv))