From dbbf60fa34bcf1e12cc2e1351d4c4e7ddc87067d Mon Sep 17 00:00:00 2001 From: Juan Barrios <03juan@users.noreply.github.com> Date: Thu, 26 Oct 2023 15:46:07 +0200 Subject: [PATCH 1/3] Update tailwind.ex custom path instructions --- lib/tailwind.ex | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/tailwind.ex b/lib/tailwind.ex index 48c4ee8..cec66a1 100644 --- a/lib/tailwind.ex +++ b/lib/tailwind.ex @@ -24,7 +24,7 @@ defmodule Tailwind do ## Tailwind configuration - There are two global configurations for the tailwind application: + There are three global configurations for the tailwind application: * `:version` - the expected tailwind version @@ -46,14 +46,13 @@ defmodule Tailwind do On Unix, the executable will be at: - NPM_ROOT/tailwind/node_modules/tailwind-TARGET/bin/tailwind + NPM_PREFIX/bin/tailwind On Windows, it will be at: - NPM_ROOT/tailwind/node_modules/tailwind-windows-(32|64)/tailwind.exe + NPM_PREFIX/tailwind.cmd - Where `NPM_ROOT` is the result of `npm root -g` and `TARGET` is your system - target architecture. + Where `NPM_PREFIX` is the result of `npm prefix -g`. Once you find the location of the executable, you can store it in a `MIX_TAILWIND_PATH` environment variable, which you can then read in From 7ce9cf8c82b92e1e54fdde03f1f3b6383ce3ba4d Mon Sep 17 00:00:00 2001 From: Juan Barrios <03juan@users.noreply.github.com> Date: Fri, 27 Oct 2023 08:03:33 +0200 Subject: [PATCH 2/3] Show both Windows extensions --- lib/tailwind.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tailwind.ex b/lib/tailwind.ex index cec66a1..1abb971 100644 --- a/lib/tailwind.ex +++ b/lib/tailwind.ex @@ -50,7 +50,7 @@ defmodule Tailwind do On Windows, it will be at: - NPM_PREFIX/tailwind.cmd + NPM_PREFIX/tailwind.(cmd|ps1) Where `NPM_PREFIX` is the result of `npm prefix -g`. From c61bd829790452674af2bcec0c3b883b36463ea7 Mon Sep 17 00:00:00 2001 From: Juan Barrios <03juan@users.noreply.github.com> Date: Fri, 27 Oct 2023 08:50:09 +0200 Subject: [PATCH 3/3] Change slash direction for windows directory --- lib/tailwind.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tailwind.ex b/lib/tailwind.ex index 1abb971..ee8521d 100644 --- a/lib/tailwind.ex +++ b/lib/tailwind.ex @@ -50,7 +50,7 @@ defmodule Tailwind do On Windows, it will be at: - NPM_PREFIX/tailwind.(cmd|ps1) + NPM_PREFIX\tailwind.(cmd|ps1) Where `NPM_PREFIX` is the result of `npm prefix -g`.