diff options
author | Notkea | 2020-01-10 22:31:47 +0100 |
---|---|---|
committer | GitHub | 2020-01-10 22:31:47 +0100 |
commit | 7042ffc06326fa8ffe70f5a59747709250166c16 (patch) | |
tree | dbfc7567bd106e03a47b499d2a07cecb6b8d6305 /compiler/readme.md | |
parent | c9264b0a0a7e1cb92ef7d9a391cee2c94376cff3 (diff) | |
parent | 27b51018525dbb7a6edb3073819d82245387ddd3 (diff) | |
download | ldgallery-7042ffc06326fa8ffe70f5a59747709250166c16.tar.gz |
Merge pull request #34 from pacien/develop
first working prototype
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. | ||