24 Commits

Author SHA1 Message Date
Robin Malfait
c2854dae71
Calculate tag for releases based on package.json version (#9572)
* calculate tag for the release

This is based on the name we use in the version e.g.: `3.2.0-beta.2`. If
no name can be found in the version, we will default to `latest`

* ignore node_modules caching for now
2022-10-16 16:20:21 +02:00
Jordan Pittman
9c48973a57
Fix content path detection on Windows (#9569)
* Fix content path detection on Windows

* Update changelog

* Drop npm caches for now
2022-10-16 08:42:19 -04:00
Robin Malfait
042089a775
split build and linking step 2022-10-15 23:51:57 +02:00
Robin Malfait
74df4c3980
re-add node_modules cache
This in combination with `cache: npm` for the `setup-node` would be
awesome if that works.
2022-10-15 23:43:23 +02:00
Robin Malfait
2a88642c08
use setup-node cache in other workflows as well 2022-10-15 23:28:39 +02:00
Robin Malfait
963a836a62
bump GitHub action versions (#9560)
* bump GitHub action versions

* use GITHUB_ENV instead of the deprecated `::set-output`
2022-10-15 01:55:07 +02:00
Jordan Pittman
d6bec49934
Fix parallel variant ordering clash (#9282)
* Remove remnants of the user layer

It hasn’t been used in a while

* Rewrite sort offset generation

* wip

* wip

wip

* Handle parasite utilities

* wip

* wip

* Make parallel variants sorting more resillient

It’s not perfect but it’s close

* fix

* remove todo

it adds a new bit so it can’t

* Simplify getClassOrder usage

* Simplify

oops

oops

* Add parasite utility for `dark`

dark mode class name

* Cleanup

* Cleanup

* Simplify

* format files

* Fix prettier plugin to use git build of Tailwind CSS

Symlink and build instead of adding a recursive dev dependency

It breaks node < 16

* Fix prettier error

* wip

* fix test

* Update changelog

Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
2022-09-09 13:12:43 -04:00
neilnaveen
f135bfa3e5
chore: Set permissions for GitHub actions (#8550)
Restrict the GitHub token permissions only to just what is required and make them read-only where possible.

Signed-off-by: neilnaveen <42328488+neilnaveen@users.noreply.github.com>
2022-07-04 15:12:32 -04: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
7bc3166740
Update nodejs.yml 2021-05-18 09:57:55 -04:00
Michaël De Boey
86e9c34a1a
chore: add tests for Node 16 (#4146) 2021-05-07 13:50:22 -04:00
Robin Malfait
1bda5f5dab use package-lock.json in CI 2021-04-02 15:13:21 -04:00
Adam Wathan
27fd1f9883 Only run coverage in CI 2020-11-19 12:41:06 -05:00
Tom Hu
a669180a67
Codecov (#1937)
* Add coverage and send to Codecov

* Collect coverage with jest

* Add a badge

* Update package.json

* Update .github/workflows/nodejs.yml

* Add retry logic

Co-authored-by: Adam Wathan <adam.wathan@gmail.com>
2020-10-25 14:46:32 -04:00
Adam Wathan
62a3947414 Update autoprefixer 2020-10-16 19:11:02 -04:00
Adam Wathan
8ef87468d1 Bust module cache 2020-10-16 19:06:24 -04:00
Adam Wathan
8ed0f1ce07 Update GitHub actions script 2020-10-16 13:43:45 -04:00
Adam Wathan
f9a7761c5b
Drop support for Node.js 8 and 10, require 12.13 (#2582) 2020-10-16 13:12:32 -04:00
HonkingGoose
5aff35e6e5
Bump GitHub Actions runners (#2520) 2020-10-09 13:34:34 -04:00
Robin Malfait
f2e622a10a
cache node modules in CI 2020-08-20 18:43:23 +02:00
Johan Bergström
437b038d41 Add Node.js 14.x to test matrix 2020-08-07 15:45:59 -04:00
Adam Wathan
072c60c008 Drop fs-extra version to retain Node 8 compatibility 2020-04-23 07:58:26 -04:00
Adam Wathan
da83070c24
Update nodejs.yml 2020-04-16 08:45:53 -04:00
Adam Wathan
ad9fcaf919
Create nodejs.yml 2020-04-16 08:43:29 -04:00