This repository has been archived on 2026-05-23. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
self fddd616772
CI / Test (push) Failing after 17s
feat(template): adopt host-backed plugin workflow
Add the shared plugin helper, host-backed test config, and runtime validation entrypoint. Update the example plugin route/docs and replace the old standalone test suite with the host-backed contract and page tests.
2026-04-27 17:00:16 +02:00

61 lines
1017 B
Nix

{
pkgs,
lib,
...
}: {
env = {
MIX_OS_DEPS_COMPILE_PARTITION_COUNT = 8;
NODE_ENV = "development";
};
packages = with pkgs;
[
git
alejandra
prettier
]
++ lib.optionals pkgs.stdenv.isLinux [
inotify-tools
];
languages = {
elixir = {
enable = true;
package = pkgs.elixir_1_19;
};
javascript = {
enable = true;
package = pkgs.nodejs_24;
npm.enable = true;
};
};
dotenv.enable = true;
devenv.warnOnNewVersion = false;
git-hooks.hooks = {
alejandra.enable = true;
prettier.enable = true;
prettier.files = "\\.(js|ts|tsx|css)$";
check-added-large-files = {
enable = true;
args = ["--maxkb=131072"];
};
mix-format.enable = true;
mix-format.files = "\\.(ex|exs|heex)$";
};
enterShell = ''
echo
elixir --version
echo -n "Node.js "
node --version
echo
'';
scripts = {
plugin.exec = ''bash "$DEVENV_ROOT/scripts/plugin" "$@"'';
};
}