View raw

1 (executable 2 (name workout_client) 3 (modules workout_client) 4 (modes js) 5 (preprocess 6 (pps js_of_ocaml-ppx)) 7 (libraries js_of_ocaml js_of_ocaml-lwt lwt)) 8 9 (rule 10 (targets stylesheet.ml) 11 (deps 12 (source_tree assets)) 13 (action 14 (run %{bin:ocaml-crunch} --silent --mode plain --output %{targets} assets))) 15 16 (rule 17 (target workout_client_asset.ml) 18 (deps workout_client.bc.js) 19 (action 20 (run 21 bash 22 -c 23 "tmp=$(mktemp -d); cp \"$1\" \"$tmp/workout_client.js\"; %{bin:ocaml-crunch} --silent --mode plain --output \"$2\" \"$tmp\"; rm -rf \"$tmp\"" 24 -- 25 %{dep:workout_client.bc.js} 26 %{target}))) 27 28 (library 29 (name hito_web) 30 (public_name hito.web) 31 (modules 32 routes 33 decode 34 hevy_csv 35 view_model 36 pages 37 handlers 38 stylesheet 39 workout_client_asset) 40 (preprocess 41 (pps dream-html.ppx)) 42 (libraries hito.core hito.app dream dream-html lwt unix csv)) 43