From 7f693873dc51961c6ac22c8699b53338dbba3569 Mon Sep 17 00:00:00 2001 From: Tyler Young Date: Thu, 19 Mar 2026 13:03:07 -0500 Subject: [PATCH] chore (setup): Add `mix setup` alias to help contributors I had to look through the GitHub Actions to discover the `npm install --prefix=test/js` command necessary to get the test suite to pass locally, so I've added a `setup` alias to make it easier for folks to get started contributing. --- mix.exs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mix.exs b/mix.exs index e118f2a..2599c48 100644 --- a/mix.exs +++ b/mix.exs @@ -7,6 +7,7 @@ defmodule NodeJS.MixProject do version: "3.1.3", elixir: "~> 1.12", start_permanent: Mix.env() == :prod, + aliases: aliases(), deps: deps(), description: description(), package: package(), @@ -69,4 +70,10 @@ defmodule NodeJS.MixProject do build_tools: ["mix"] ] end + + defp aliases do + [ + setup: ["deps.get", "compile", "cmd npm install --prefix=test/js"] + ] + end end