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(plugins): Add unocss plugin (WIP) #1966

Closed
wants to merge 38 commits into from
Closed

Commits on Dec 19, 2023

  1. feat(plugins): add unocss plugin (WIP)

    miguelrk authored and adamgreg committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    ce00199 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f75ece6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8d33431 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8a6736e View commit details
    Browse the repository at this point in the history
  5. docs(plugins): add docs for unocss

    miguelrk authored and adamgreg committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    5fd6ffe View commit details
    Browse the repository at this point in the history
  6. fix(plugins): remove unnecessary ?bundle&no-check from `@unocss/pre…

    …set-uno` import
    miguelrk authored and adamgreg committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    6321ba5 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    c09a4a1 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    95fa44f View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    0767888 View commit details
    Browse the repository at this point in the history
  10. chore(plugins): bump @unocss/reset version

    Co-authored-by: Lino Le Van <[email protected]>
    2 people authored and adamgreg committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    f223bc2 View commit details
    Browse the repository at this point in the history
  11. chore(plugins): bump @unocss/core version

    Co-authored-by: Lino Le Van <[email protected]>
    2 people authored and adamgreg committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    488de1e View commit details
    Browse the repository at this point in the history
  12. chore(plugins): bump @unocss/core and @unocss/preset-uno version

    Co-authored-by: Lino Le Van <[email protected]>
    2 people authored and adamgreg committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    b5e49a2 View commit details
    Browse the repository at this point in the history
  13. chore(plugins): format via deno fmt

    miguelrk authored and adamgreg committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    de9b22b View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    55e7906 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    e660f1b View commit details
    Browse the repository at this point in the history
  16. chore(plugins): order imports

    miguelrk authored and adamgreg committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    f6f204b View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    7dd2bfa View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    b0a1bcf View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    ae545fc View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    1c91354 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    25df128 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    d301e1b View commit details
    Browse the repository at this point in the history
  23. In the UnoCSS plugin pass the config to runtime

    -  Define a Config interface for the plugin, which extends UnoCSS UserConfig with a selfURL property
    - Add a `defineConfig()` function for help with types, and make it easier to adapt existing UnoCSS config modules for use with the plugin
    - Move the runtime script inline
    adamgreg committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    af7175d View commit details
    Browse the repository at this point in the history
  24. chore(plugins): format via deno fmt

    miguelrk authored and adamgreg committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    5adfdcd View commit details
    Browse the repository at this point in the history
  25. Update plugins/unocss.ts

    Use `init()` function of `@unocss/runtime` instead of manually injecting the script tag to avoid fetching it (redundantly) in the client, and instead ship runtime with `plugin-unocss.main.ts`.
    
    Co-authored-by: 木杉 <[email protected]>
    2 people authored and adamgreg committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    9a52a2b View commit details
    Browse the repository at this point in the history
  26. chore(plugins): update querySelector to style[data-unocss-runtime-lay…

    …er="default"] in fixture_unocss_hydrate
    miguelrk authored and adamgreg committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    3364741 View commit details
    Browse the repository at this point in the history
  27. Update docs/latest/examples/using-unocss.md

    Co-authored-by: 木杉 <[email protected]>
    2 people authored and adamgreg committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    bd03d64 View commit details
    Browse the repository at this point in the history
  28. UnoCSS plugin use uno.config.ts

    - Import config from uno.config.ts if no config object is explicitly provided
    - Always use uno.config.ts as the import source for the browser runtime config
    - This avoids the complexity of selfURL, allowing the plugin to use standard Uno config files
    adamgreg committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    3bc0bd8 View commit details
    Browse the repository at this point in the history
  29. UnoCSS plugin: Add defineConfig() helper function

    It is the same as found in the unocss package, but that can not currently be safely imported in Deno (due to Node-specific code in the icons preset).
    adamgreg committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    2392657 View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    33eb302 View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    70677a0 View commit details
    Browse the repository at this point in the history
  32. UnoCSS plugin: Update the inline reset

    Use tailwind-compat.css instead of tailwind.css as the source. This resolves a specificity problem affecting button backgrounds: unocss/unocss#2127
    adamgreg committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    3a70496 View commit details
    Browse the repository at this point in the history
  33. Support AOT build in UnoCSS plugin

    - Add separate SSR, CSR & AOT config options
    - Bump UnoCSS version to 0.56.5
    adamgreg committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    7ce943c View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    597f3b1 View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    0b4e8cc View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    4716624 View commit details
    Browse the repository at this point in the history

Commits on Dec 20, 2023

  1. UnoCSS plugin updates

    - Use middleware to maintain "AOT" behaviour in dev mode
    - Use new configResolved() plugin hook to resolve UnoCSS config file
    - Reduce effort during renders in SSR mode
    adamgreg committed Dec 20, 2023
    Configuration menu
    Copy the full SHA
    5d845c4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e3bcce7 View commit details
    Browse the repository at this point in the history