From a500722c21bfca5d9af0768e38cca9d0230b5d8f Mon Sep 17 00:00:00 2001 From: BuckarooBanzay Date: Fri, 29 May 2020 07:03:46 +0200 Subject: [PATCH] update docs and include frontend building relevant: #105 --- doc/building.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/doc/building.md b/doc/building.md index 634359a..b210c3d 100644 --- a/doc/building.md +++ b/doc/building.md @@ -5,14 +5,24 @@ Instructions to build the mapserver from source ## Build dependencies -* go >= 1.11 +* go >= 1.11 (for the binary) +* rollup >= 1.x (for the embedded js/css assets) Ubuntu install: https://github.com/golang/go/wiki/Ubuntu ## Compile + +Generate the js bundle for the frontend: +``` +cd static/js +rollup -c rollup.config.js +``` + +Generate the `mapserver` binary: ```bash # generate the static web files +# this step embeds the generated js/css/html files for inclusion in the resulting binary go generate # build the binary for the current playtform @@ -22,3 +32,5 @@ go build go test ./... ``` + +