Detailed instructions for nodejs tailwindcss
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- elixir, nodejs, tailwindcss
- Lĩnh vực
- build-system, documentation
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Elixir
- Star
- 508
- Fork
- 70
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của phoenixframework/tailwind
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
phoenixframework/tailwind#137 · 5 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
phoenixframework/tailwind#122 · 13 bình luận ·
-
Support for FreeBSDĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 28/100
phoenixframework/tailwind#49 · 9 bình luận · 3 reaction ·
Tất cả issue của phoenixframework/tailwind
Issue tương tự
-
Cainophile EXIT handler crashes on its own password redaction and logs the DB password in clear textĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
beyond-all-reason/teiserver#1624 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement javascript
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
phoenixframework/phoenix_template#15 · 1 bình luận ·
-
GitHub docs are outdatedCó thể đã có người làm @v-robaiken đã nhận 1 ngày trước. Đang mởL: javascript T: bug 🐞
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
dependabot/dependabot-core#16397 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 2 ngày