Detailed instructions for nodejs tailwindcss
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Documentación
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- elixir, nodejs, tailwindcss
- Área
- build-system, documentation
Línea de trabajo
Start with the Tailwind configuration in config/config.ex and the aliases block shown in the issue, then verify the Node-based commands with npx tailwindcss on FreeBSD. Document the Phoenix-specific setup, including the existing tailwind.config.js and input/output paths, so a fresh project can complete setup and assets.build successfully without the Tailwind Mix installer.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
I apologize upfront for stupid question. I come from systems & backend engineering world, the world of frontend is new and frightening to me. I am trying to get started with Phoenix on FreeBSD.
I am aware of #49 , however this option has big drawback: there are are no official tailwind cli packages for FreeBSD and current package is outdated, maintained by a single person and relies on a complicated series of dirty hacks to get it working. (All thanks to convoluted build process of the tailwindcss CLI)
As I gather from the readme it is possible to use tailwindcss with nodejs:
For third-party Tailwind plugin support (e.g. DaisyUI), the node package must be used. See the Tailwind Node.js installation instructions if you require third-party plugin support.
However official tailwind documentation gives very generic guidance how to install it. Following those steps verbatim does not produce working result.
Can you please provide more detailed and tailored to phoenix steps?
I do have node and tailwind installed. npx tailwindcss works. As I understand tailwind mix dependency should not be needed, or at least should be reconfigured. I want to re-use auto-generated tailwind.config.js.
This snippet from config/config.ex hints on what input/output paths should be but I would appreciate official step-by-step getting started instruction for a web monkey like me.
# Configure tailwind (the version is required)
config :tailwind,
version: "3.2.7",
default: [
args: ~w(
--config=tailwind.config.js
--input=css/app.css
--output=../priv/static/assets/app.css
),
cd: Path.expand("../assets", __DIR__)
]
P.S. It seems that this bit has to be adjusted to run npx tailwind instead...
defp aliases do
[
setup: ["deps.get", "assets.setup", "assets.build"],
"assets.setup": ["tailwind.install --if-missing", "esbuild.install --if-missing"],
"assets.build": ["tailwind default", "esbuild default"],
"assets.deploy": ["tailwind default --minify", "esbuild default --minify", "phx.digest"]
]
end
- Lenguaje dominante
- Elixir
- Estrellas
- 508
- Forks
- 71
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de phoenixframework/tailwind
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
phoenixframework/tailwind#137 · 5 comentarios ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
phoenixframework/tailwind#122 · 13 comentarios ·
-
Support for FreeBSDAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 28/100
phoenixframework/tailwind#49 · 9 comentarios · 3 reacciones ·
Todos los issues de phoenixframework/tailwind
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
intellij-elixir/intellij-elixir#4492 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 91/100
expert-lsp/expert#942 ·
Los mantenedores suelen responder en 1 día
-
L: github:actions L: javascript
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
dependabot/dependabot-core#16615 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
carverauto/serviceradar#5756 ·
Los mantenedores suelen responder en 1 día
-
Markdown preview can show an outdated version of the cell sourcePosiblemente ocupada @RaphaelFakhri la tomó hace 1 día. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
livebook-dev/livebook#3228 ·
Los mantenedores suelen responder en 1 día