This PR is an initial step to improve the nuxt module for shadcn-vue. Huge thanks to https://github.com/ineshbose for helping me out!
Module Changes
Injected lib/utils by the module into buildDir. Now the CLI don't need to inject this file in Nuxt projects, making the file tree more cleaner. An alias for @/lib/utils is created to point the injected file for backward compatibility. Also a soft warning is displayed if a lib/utils file is found in the root and recommends to remove it as it's redundant.
Bumped deps (Notably @nuxt/module-builder which resolves an harmless but annoying warning)
Playground Changes
Fixed the issue of tailwindcss classes not applied because nuxtjs/tailwindcss was installed but not added to playground's modules
Generated missing tailwind.css by the CLI
Bumped Button component by the CLI
Refreshed the playground style as it was really dull to me and added a dark mode switch (with tailwindcss and radix-vue/icons which are already dependencies)
Before
After
Next Steps
I'll create an issue for those to discuss them first
This PR is an initial step to improve the nuxt module for
shadcn-vue
. Huge thanks to https://github.com/ineshbose for helping me out!Module Changes
lib/utils
by the module intobuildDir
. Now the CLI don't need to inject this file in Nuxt projects, making the file tree more cleaner. An alias for@/lib/utils
is created to point the injected file for backward compatibility. Also a soft warning is displayed if alib/utils
file is found in the root and recommends to remove it as it's redundant.@nuxt/module-builder
which resolves an harmless but annoying warning)Playground Changes
nuxtjs/tailwindcss
was installed but not added to playground'smodules
tailwind.css
by the CLIButton
component by the CLIRefreshed the playground style as it was really dull to me and added a dark mode switch (with tailwindcss and radix-vue/icons which are already dependencies)
Next Steps
I'll create an issue for those to discuss them first
components.json
options to the module then reading them from the CLI when in a Nuxt projectnuxtjs/tailwindcss
modulenuxtjs/color-mode
module