From 07c235a76a7265b74e8b1d8905e5f20e463a5050 Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Sun, 2 Aug 2020 02:26:08 +0100 Subject: [PATCH] Build instructions added --- Build.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Build.md diff --git a/Build.md b/Build.md new file mode 100644 index 0000000..b93cc6e --- /dev/null +++ b/Build.md @@ -0,0 +1,14 @@ +To build, you need to generate email templates, css, and config files. The build scripts were mostly ripped out of jf-accounts, so you'll need similar dependencies: +``` +python >= 3.6 +pip (to install libsass) +node.js and npm (for bootstrap4/5, autoprefixer, cleancss, mjml, and postcss) +``` + +If you aren't using [goreleaser](https://goreleaser.com), run each command listed under `before: hooks:` in `.goreleaser.yml`, then `go build`. + +If you are: + +* To generate executables, run `goreleaser build --snapshot --rm-dist`. This will place executables in `dist/`. The `data` directory must be copied into the same directory as the executable for it to run. + +* To generate package archives, run `goreleaser --snapshot --skip-publish --rm-dist`.