7 Commits

Author SHA1 Message Date
Robin Malfait
b399e8db90
Add default interop to public available functions (#6348)
* add `default` interop to public available functions

* update changelog
2021-12-10 11:25:10 +01:00
Robin Malfait
c03f9ad600
Improve public API (#5526)
* introduce `public` folder

This can contain all of the `public` functions we want to expose.
This will be a bit nicer for example when you want to use
internal/private functions (we use some in the vscode intellisense
plugin).

* use public `resolveConfig` function

* expose resolveConfig in the root

This will use the resolveConfig we expose from the `public` folder. We
can probably generate these as well.

* make `colors` public

* make `default config` public

* make `default theme` public

* make `create plugin` public

* update to public paths

* remove `@tailwindcss/aspect-ratio` from tests

This should be tested in its own repo instead.

* remove `@tailwindcss/aspect-ratio` as a dependency

* drop `Build` step from CI

The build step is not a prerequisite anymore for running the tests. When
we want to release a new (insiders) release, the `prepublishOnly` step
will be executed for us.

Before this change, it would have been executed twice:
- Once before the tests
- Once before the actual release

* improve paths for caching purposes

* add pretest scrip for generating the plugin list

Now that we can use `SWC`, automatically generating the plugin list
before running the tests is super fast and you don't even have to think
about it anymore!
2021-09-26 12:44:13 +02:00
Adam Wathan
b299b6fbe1
Support new presets key + extending core plugins config (#2474)
* WIP

* Support array for Tailwind config

* Drop array format for `presets` key instead

* Update changelog
2020-10-08 11:21:39 -04:00
Adam Wathan
6a9c3e7886
Register dark mode plugin outside of resolveConfig code path (#2368) 2020-09-11 10:15:39 -04:00
Adam Wathan
e5c193a76c
Make resolveConfig compatible with feature flag configs (#2347)
* Make resolveConfig compatible with feature flag configs

* Update changelog
2020-09-07 19:56:35 -04:00
Adam Wathan
4b72c733dc Support resolving multiple configs using public resolveConfig function 2019-10-12 13:00:50 -04:00
Adam Wathan
b8a997d68b Make resolveConfig available in user land
Adds a new `resolveConfig` file to the project root that can be imported as `tailwindcss/resolveConfig` and used to get a fully merged version of your custom config file.

Useful when you want access to your design tokens in JS.
2019-04-26 14:58:41 -04:00