Download this file
| 1 | (library |
| 2 | (name todo) |
| 3 | (libraries sqlite3 uri) |
| 4 | (foreign_stubs |
| 5 | (language c) |
| 6 | (names rand_stubs))) |
| 7 | |
| 8 | ; The CSS and JS are compiled into the binary. |
| 9 | (rule |
| 10 | (target assets.ml) |
| 11 | (deps |
| 12 | (:files |
| 13 | %{project_root}/static/base.css |
| 14 | %{project_root}/static/index.css |
| 15 | %{project_root}/static/app.css |
| 16 | %{project_root}/static/app.js)) |
| 17 | (action |
| 18 | (with-stdout-to |
| 19 | %{target} |
| 20 | (run %{exe:../gen/embed.exe} %{files})))) |
| 21 | |
| 22 | ; The build version, from APP_VERSION (the Makefile passes the git short SHA). |
| 23 | (rule |
| 24 | (target version.ml) |
| 25 | (action |
| 26 | (with-stdout-to |
| 27 | %{target} |
| 28 | (echo "let v = \"%{env:APP_VERSION=dev}\"\n")))) |
| 29 | |