Tailwind is a popular library for quick styling. Many other frameworks and tools include official support for Tailwind like Phoenix or Rails, so devs coming to Lustre might expect the same.
We should expand lustre add to include support for the standalone Tailwind binary. Additionally we should detect if a project has a tailwind.config.js and if it does, download and run Tailwind automatically on build.
lustre add tailwind:
Grab the release binary for windows/linux/mac from here. There's no way to automatically grab the "latest" release, so the CLI will have to be fixed to a specific version.
We could consider a CLI flag for folks that want to get a different version.
Generate the following tailwind.config.js in the project root:
Tailwind is a popular library for quick styling. Many other frameworks and tools include official support for Tailwind like Phoenix or Rails, so devs coming to Lustre might expect the same.
We should expand
lustre add
to include support for the standalone Tailwind binary. Additionally we should detect if a project has atailwind.config.js
and if it does, download and run Tailwind automatically on build.lustre add tailwind
:tailwind.config.js
in the project root:lustre build
:tailwind.config.js
is present in the project root, we should attempt to download tailwind if it is not already inbuild/.lustre/bin