nx icon indicating copy to clipboard operation
nx copied to clipboard

feat(vue): setup-unocss generator

Open gnuion opened this issue 1 year ago • 4 comments

Description

NX has made my developer life easier. I like UnoCSS more than TailwindCSS, but setting up UnoCSS every time is a hassle. I'm attempting to craft a plugin to automate UnoCSS setup, hoping to ease the hassle of doing it manually each time.

Expected Behavior

Should work exactly the same as nx g @nx/vue:setup-tailwind but setup UnoCSS instead.

Hardware Specifications

  • Machine: MacBook Pro M1
  • OS: Sonoma 14.4

TODOs

  • [x] Setup environment to work on the plugin locally
  • [x] Develop the vue setup-tailwind generator
  • [x] Test it locally in a new repository
  • [ ] Test it locally within the fork (Error: Cannot find configuration for task @nx/nx-source:test)
  • [ ] Community review

Fixes # #23114 (duplicate of #19888) #19888

gnuion avatar May 01 '24 13:05 gnuion

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview May 1, 2024 5:45pm

vercel[bot] avatar May 01 '24 13:05 vercel[bot]

I don't know if a plugin is needed for this simple setup. Nonetheless, exploring this repository was a lot of fun. It works for my use case, but further testing wouldn't hurt. We might include a style reset too!

gnuion avatar May 01 '24 17:05 gnuion

Screengif: ScreenRecording2024-05-01at23 02 56-ezgif com-censor

gnuion avatar May 01 '24 21:05 gnuion

@gnuion Thanks for opening the PR, we really appreciate the effort and we're glad you're enjoying using Nx.

As mentioned in the discussion, we don't want to extend support to unocss at this point. If interest grows we can consider it.

Thanks again.

jaysoo avatar Jun 04 '24 16:06 jaysoo

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

github-actions[bot] avatar Jun 14 '24 00:06 github-actions[bot]