You've already forked tribes-plugin-template
fddd616772
CI / Test (push) Failing after 17s
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.
61 lines
1017 B
Nix
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" "$@"'';
|
|
};
|
|
}
|