Detailed instructions for nodejs tailwindcss
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- ドキュメント
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- elixir, nodejs, tailwindcss
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- Elixir
- スター
- 508
- フォーク
- 70
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
phoenixframework/tailwind のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
phoenixframework/tailwind#137 · コメント 5 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
phoenixframework/tailwind#122 · コメント 13 件 ·
-
Support for FreeBSDオープン
難易度 4/5 3〜5日 初心者へのやさしさ 28/100
phoenixframework/tailwind#49 · コメント 9 件 · リアクション 3 件 ·
phoenixframework/tailwind の issue をすべて見る
似ている issue
-
Cainophile EXIT handler crashes on its own password redaction and logs the DB password in clear textオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
beyond-all-reason/teiserver#1624 ·
メンテナーはふだん 1 日以内に返信
-
enhancement javascript
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
phoenixframework/phoenix_template#15 · コメント 1 件 ·
-
GitHub docs are outdated対応中かも @v-robaiken が 1 日前に担当しました。 オープンL: javascript T: bug 🐞
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
dependabot/dependabot-core#16397 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信