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

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

Merged
merged 16 commits into from
Nov 27, 2024

Conversation

ineshbose
Copy link
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

Copy link

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.

Copy link

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.

src/internal-context/load.ts Outdated Show resolved Hide resolved
src/types.ts Show resolved Hide resolved
src/module.ts Outdated Show resolved Hide resolved
src/module.ts Outdated Show resolved Hide resolved
src/types.ts Show resolved Hide resolved
@ineshbose
Copy link
Collaborator Author

ineshbose commented Nov 19, 2024

  • tests

@ineshbose
Copy link
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
@ineshbose ineshbose merged commit a94cbaf into main Nov 27, 2024
7 checks passed
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