Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Add support for easier installation of Tailwind plugins #73

Open
Alonski opened this issue Feb 4, 2019 · 1 comment
Labels
Feature/Enhancement New feature or request

Comments

@Alonski
Copy link
Contributor

Alonski commented Feb 4, 2019

Tailwind plugins allows Tailwind to do so much more than it does out of the box.
For example in Tailwind 0.7 they added the ability to add custom variants via plugins:
tailwindlabs/tailwindcss#505 (comment)

Would be great to have the ability to both create a plugin for personal use, using a blueprint such as ember g tailwind-plugin which would put the plugin in a plugins/*.js directory

Another thing that we could potentially add is a blueprint such as ember tailwind install new-plugin which would install the plugin from NPM and wire it up for usage, handling things like requiring it in the tailwind/config.js

This is really awesome! I used it to add a direction variant so that you can do rtl:ml-2 ltr:mr-2 for example and it will do either one depending on the [dir] of the parents

@samselikoff samselikoff added the Feature/Enhancement New feature or request label Feb 4, 2019
@samselikoff
Copy link
Contributor

ember g tailwind-plugin seems like a great move, we could even start the default blueprint out with a "dummy" one there, the same way we do for components.

The generator for install new-plugin I'm less sure on, I'd rather folks be able to follow the "plain js" way of doing it so there's less magic here. I think it shouldn't be difficult with the module wiring we have in place.

This feature is definitely 👍 from me, if anyone wants to start on it before I get around to it!

@Alonski Alonski closed this as completed Feb 5, 2019
@Alonski Alonski reopened this Feb 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature/Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants