diff options
Diffstat (limited to 'compiler/readme.md')
-rw-r--r-- | compiler/readme.md | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/compiler/readme.md b/compiler/readme.md new file mode 100644 index 0000000..e18b026 --- /dev/null +++ b/compiler/readme.md | |||
@@ -0,0 +1,20 @@ | |||
1 | # ldgallery-compiler | ||
2 | |||
3 | |||
4 | ## Build | ||
5 | |||
6 | Building the _ldgallery compiler_ requires the [stack] tool. | ||
7 | |||
8 | [stack]: https://haskellstack.org/ | ||
9 | |||
10 | Within the project's directory, use | ||
11 | |||
12 | * `stack setup` to setup the development environment and compiler. | ||
13 | * `stack build` to compile the project. | ||
14 | * or `stack build --fast --file-watch` to automatically compile on file change. | ||
15 | * `stack exec ldgallery-compiler-exe -- --help` to run the compiled program (and displaying its help text for instance). | ||
16 | |||
17 | |||
18 | ### Embedded viewer | ||
19 | |||
20 | In order to allow the `ldgallery` command line tool to generate a full gallery which includes the _viewer_, a compiled version of the web app must be placed under `./data/viewer`. The `--with-viewer` flag will otherwise not be functional. | ||