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

Enable ESM and TS based config files #10785

Merged
merged 44 commits into from Mar 15, 2023

Commits on Mar 13, 2023

  1. Configuration menu
    Copy the full SHA
    25716e7 View commit details
    Browse the repository at this point in the history

Commits on Mar 14, 2023

  1. use jiti and detective-typescript

    Instead of `detective`, this way we will be able to support
    `tailwind.config.ts` files and `ESM` files.
    RobinMalfait committed Mar 14, 2023
    Configuration menu
    Copy the full SHA
    e1bc353 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f1614c8 View commit details
    Browse the repository at this point in the history
  3. update changelog

    RobinMalfait committed Mar 14, 2023
    Configuration menu
    Copy the full SHA
    dff3dc9 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    de52eb7 View commit details
    Browse the repository at this point in the history

Commits on Mar 15, 2023

  1. Configuration menu
    Copy the full SHA
    ca82433 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    44fffbb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ff9540c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    96f683e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3a4a421 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    59f2594 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    08909e0 View commit details
    Browse the repository at this point in the history
  8. cleanup unused arguments

    RobinMalfait committed Mar 15, 2023
    Configuration menu
    Copy the full SHA
    7498f39 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    90e3d8f View commit details
    Browse the repository at this point in the history
  10. improve init command

    RobinMalfait committed Mar 15, 2023
    Configuration menu
    Copy the full SHA
    ebec943 View commit details
    Browse the repository at this point in the history
  11. make eslint happy

    RobinMalfait committed Mar 15, 2023
    Configuration menu
    Copy the full SHA
    ddacbc8 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    b9dfa14 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    30cf66f View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    b3c6086 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    33c3b04 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    13b03d7 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    8283c2d View commit details
    Browse the repository at this point in the history
  18. Fix TS warning

    adamwathan authored and RobinMalfait committed Mar 15, 2023
    Configuration menu
    Copy the full SHA
    9604485 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    76296e7 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    1ec55a2 View commit details
    Browse the repository at this point in the history
  21. WIP: make tests work on CI

    TODO: Test all combinations of `--full`, `--ts`, `--postcss`, and `--esm`.
    RobinMalfait committed Mar 15, 2023
    Configuration menu
    Copy the full SHA
    f114cb0 View commit details
    Browse the repository at this point in the history
  22. wip

    thecrypticace authored and RobinMalfait committed Mar 15, 2023
    Configuration menu
    Copy the full SHA
    2367d02 View commit details
    Browse the repository at this point in the history
  23. remove unused fs

    RobinMalfait committed Mar 15, 2023
    Configuration menu
    Copy the full SHA
    74d51f6 View commit details
    Browse the repository at this point in the history
  24. Fix init tests

    Did you know you could pass an empty args to a command? No? Me neither. ¯\_(ツ)_/¯
    thecrypticace authored and RobinMalfait committed Mar 15, 2023
    Configuration menu
    Copy the full SHA
    5f83b57 View commit details
    Browse the repository at this point in the history
  25. bump napi-derive

    RobinMalfait committed Mar 15, 2023
    Configuration menu
    Copy the full SHA
    8435352 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    eeb8eb4 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    407ab20 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    cbfae98 View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    6813c0c View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    1fd103f View commit details
    Browse the repository at this point in the history
  31. remove unnecessary test

    We are not displaying output in the `--help` anymore based on whether
    `type: module` is present or not.
    Therefore this test is unneeded.
    RobinMalfait committed Mar 15, 2023
    Configuration menu
    Copy the full SHA
    3254069 View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    e3102e8 View commit details
    Browse the repository at this point in the history
  33. refactor load to be loadConfig

    This will allow you to use:
    
    ```js
    import loadConfig from 'tailwindcss/loadConfig'
    
    let config = loadConfig("/Users/xyz/projects/my-app/tailwind.config.ts")
    ```
    
    The `loadConfig` function will return the configuration object based on
    the given absolute path of a tailwind configuration file.
    
    The given path can be a CJS, an ESM or a TS file.
    RobinMalfait committed Mar 15, 2023
    Configuration menu
    Copy the full SHA
    eaac06c View commit details
    Browse the repository at this point in the history
  34. use the config.full.js stub instead of the defaultConfig.stub.js

    …file
    
    The root `defaultConfig` is still there for backwards compatibilty
    reasons. But the `module.exports = requrie('./config.full.js')` was
    causing some problems when actually using tailwindcss.
    
    So dropped it instead.
    RobinMalfait committed Mar 15, 2023
    Configuration menu
    Copy the full SHA
    9fb6160 View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    2e385d5 View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    9bcf8ba View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    444b526 View commit details
    Browse the repository at this point in the history
  38. catch errors instead of checking if the file exists

    A little smaller but just for tests so doesn't matter too much here 👍
    RobinMalfait committed Mar 15, 2023
    Configuration menu
    Copy the full SHA
    f40fdc4 View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    e853901 View commit details
    Browse the repository at this point in the history