Skip to content

feat: enable c12 for loading config and provide defineConfig#913

Merged
ineshbose merged 16 commits intomainfrom
c12-refactor
Nov 27, 2024
Merged

feat: enable c12 for loading config and provide defineConfig#913
ineshbose merged 16 commits intomainfrom
c12-refactor

Conversation

@ineshbose
Copy link
Copy Markdown
Collaborator

@ineshbose ineshbose commented Nov 18, 2024

🔗 Linked issue

resolves #808 and partly #842

should also resolve #902

❓ Type of change

  • 📖 Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description


Play: https://stackblitz.com/github/nuxt-modules/tailwindcss/tree/c12-refactor

@netlify
Copy link
Copy Markdown

netlify bot commented Nov 18, 2024

Deploy Preview for nuxt-tailwindcss ready!

Name Link
🔨 Latest commit c84ac59
🔍 Latest deploy log https://app.netlify.com/sites/nuxt-tailwindcss/deploys/674754b26787b20008e8cf00
😎 Deploy Preview https://deploy-preview-913--nuxt-tailwindcss.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@what-the-diff
Copy link
Copy Markdown

what-the-diff bot commented Nov 18, 2024

PR Summary

  • Package Configuration Adjustments

    • Updated the routing path for TypeScript types to ensure accuracy.
    • Added new export capabilities for the configuration module, along with the appropriate type and import pathways.
    • Included a new dependency named c12.
  • New Configuration File Addition

    • Added a new file designed to handle configuration functionality. This configures the Tailwind CSS utility based on the pre-defined protocols in c12.
  • Context File Modifications

    • Renamed and updated a key function for configuration checking purposes.
    • Enhanced the error handling process for warning messages related to Tailwind configurations.
  • Module File Updates

    • Removed previous warning notifications related to module options and adjusted the default setup for the Tailwind configuration.
    • Updated the process for providing editor support with updated checks for module options.
  • Merger File Enhancements

    • Adjusted the structure inside the merging function, particularly around function definitions, to enhance readability while keeping the functionality intact.
  • Type File Changes

    • Introduced a new feature that allows for either single or multiple values in configuration.
    • Updated several configuration fields to make use of this feature and marked some fields as outdated with corresponding documentation for updates.
  • Viewer File Updates

    • Integrated a feature into the Tailwind CSS viewer to add a custom tab in the Nuxt developer tools.
    • Removed previous code that was meant to prevent the watcher from scanning prerendering options.

Comment thread src/internal-context/load.ts Outdated
Comment thread src/types.ts
Comment thread src/module.ts Outdated
Comment thread src/module.ts Outdated
Comment thread src/internal-context/load.ts
Comment thread src/types.ts
@ineshbose
Copy link
Copy Markdown
Collaborator Author

ineshbose commented Nov 19, 2024

  • tests

@ineshbose
Copy link
Copy Markdown
Collaborator Author

ineshbose commented Nov 20, 2024

docs and deprecation tests

these will be in a separate PR

@ineshbose ineshbose marked this pull request as ready for review November 22, 2024 17:05
Comment thread src/expose.ts
@ineshbose ineshbose merged commit a94cbaf into main Nov 27, 2024
@ineshbose ineshbose deleted the c12-refactor branch November 30, 2024 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant