From e6d41a81a1090e9f738835d9af80e3e8e57d05c6 Mon Sep 17 00:00:00 2001 From: Joshua Potter Date: Sun, 3 Dec 2023 15:57:57 -0700 Subject: [PATCH] Explain how to create/run a Mix release. --- README.md | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b5bc646..5f37f14 100644 --- a/README.md +++ b/README.md @@ -75,13 +75,26 @@ node packages will be included in the Nix build, influencing the outcome of NOTE: Do not update the lock version used in `assets`. `node2nix` currently only supports lock versions 1 and 2. -## Language Server +## Releases + +To create a new [Mix release](https://hexdocs.pm/mix/1.12/Mix.Tasks.Release.html), +run `nix build` (after updating dependencies as outlined in the previous +section). You can test the release is functional by running: +```bash +$ export DATABASE_URL=ecto://:@/ +$ export SECRET_KEY_BASE=$(mix phx.gen.secret) +$ result/bin/boardwise start +``` + +## Development + +### Language Server The [elixir-ls](https://github.com/elixir-lsp/elixir-ls) LSP (version 0.17.10) and [typescript-language-server](https://github.com/typescript-language-server/typescript-language-server) (version 4.1.2) is included in this flake. -## Formatting +### Formatting Formatting depends on [prettier](https://prettier.io/) (version 3.1.0) and the `mix format` task. A `pre-commit` hook is included in `.githooks` that can be