79 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
855fa300a0 Disable npm cache for insiders for now 2022-10-16 08:43:21 -04: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
b02f0a0e59
use cache from setup-node 2022-10-15 23:22:18 +02:00
Robin Malfait
0929e00cbd
use Node 14 for insiders release 2022-10-15 23:13:13 +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
peter madsen
8de17cb648
add armv7 to build-cli.yml (#9460)
believe it's needed to complete the armv7 support added here:  4ff417c5b6
2022-10-01 15:32:03 +02:00
Jordan Pittman
bf44941049
Allow resolving content paths relative to the config file (#9396)
* Update lockfile

* Tweak formatting

* Refactor content path parsing

* Allow resolving content paths relative to the config file

* Include resolved symlinks as additional content paths

* Update changelog

* Work on suite of tests for content resolution

* reformat integration test list

* Move content resolution tests to integration

* Update future and experimental types
2022-09-23 08:09:02 -04:00
Jordan Pittman
454682bcac mayhaps fix insiders workflow? 2022-09-12 15:26:32 -04:00
Jordan Pittman
f92b31b12f Fix insiders release workflow 2022-09-12 15:06:39 -04: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
Brad Cornes
7b6ac54ec8
Trigger Tailwind Play update after publishing insiders build (#9191) 2022-08-26 16:28:53 +01:00
Jordan Pittman
14542d94f7 Allow manual rebuilds of the CLI 2022-07-29 11:49:20 -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
Vanshaj Poonia
f6793628a8
Update CONTRIBUTING.md (#7723)
Fixed a Typo
2022-03-02 08:14:18 -05:00
Adam Wathan
cd8f109981
Update CONTRIBUTING.md 2022-02-25 14:14:20 -05:00
Jordan Pittman
bd167635d5
Invalidate context when main css changes (#7626)
* Invalidate context when CSS changes

* Remove invalidation count check

* Add sass integration test

* Update changelog
2022-02-25 13:12:45 -05:00
Philipp Schmid
2317533a57
Add standalone-cli node16-linux-arm64 build (#6693) 2021-12-28 16:06:49 -05:00
Jonathan Reinink
575fb4cf3e Add logos for readme 2021-12-17 14:58:52 -05:00
Robin Malfait
f921642d95
force fetching of git tags 2021-12-15 10:27:42 +01:00
Jordan Pittman
5079b9c32f Properly attach cli binaries to release 2021-12-14 12:33:06 -05:00
Jordan Pittman
47e8556e3b
Add standalone tailwindcss CLI (#6506)
* Move standalone CLI into main repo

* Update release tag

* Update workflow

* Ignore standalone CLI tests

* Fix style

* Update changelog [ci skip]
2021-12-14 18:12:06 +01:00
Sachin Raja
aeaa2a376b
update build script name in CONTRIBUTING.md (#5814) 2021-10-17 10:09:28 -04:00
Adam Wathan
3eb4079d95
Update release.yml 2021-10-01 11:54:43 -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
ebc1c7a91f Update issue templates 2021-09-14 11:51:35 -04:00
Robin Malfait
516ba530f0
Setup integration tests (#5466)
* setup integration tests

* fix rgb color syntax

* ensure integration tests always exit

If for any reason the integration tests fail, then it will run forever
on CI (~2hours or something). The `--forceExit` is not ideal but it will
prevent long running processes.

* fix incorrect test

We were never properly waiting for the command to finish.

* handle AbortError properly

In CI, when an AbortController gets aborted an error is thrown
(AbortError). If we don't catch it properly then it will "leak" and the
test will fail.

* improve IO functions

* quit integration tests after 10seconds

* only test a few integrations

* test all integrations using matrix

This will cancel other builds when one fails, it will also separate the
output per integration which can be useful especially now that we are
still figuring things out.

* rename `build` to `test`

* add --verbose flag to receive output in the console

* when reading stdout or stderr, wait a certain about to ensure stability

Debouncing for 200ms means that if another message comes in within those
200ms we delay the execution of the callback.

* simplify workflow

* use terminal output instead of disk events

* cache node_modules for integrations

* empty commit, to test cache hits
2021-09-14 16:18:14 +02:00
Adam Wathan
fda1c4403f
Update config.yml 2021-09-13 11:45:01 -04:00
Adam Wathan
e7dbc1a21f
Update config.yml 2021-09-13 11:44:22 -04:00
Mattèo Gauthier
df011dc9b4
Added guidelines before running 'npm run test' used to prevent test failure in CONTRIBUTING.md (#4728)
* Added guidelines before running 'npm run test' used to prevent test failure

* Update .github/CONTRIBUTING.md

Co-authored-by: Geshi <ohayo@geshii.moe>

* Update .github/CONTRIBUTING.md

Co-authored-by: Sachin Raja <58836760+sachinraja@users.noreply.github.com>

* Update CONTRIBUTING.md

Co-authored-by: Geshi <ohayo@geshii.moe>
Co-authored-by: Sachin Raja <58836760+sachinraja@users.noreply.github.com>
Co-authored-by: Adam Wathan <adam.wathan@gmail.com>
2021-09-12 16:20:02 -04:00
Robin Malfait
4142b3fbaf
setup npm registry url
The `NPM_TOKEN` name was also incorrect (surprise?). Found another
resource here that mentions the `registry-url` option and
`NODE_AUTH_TOKEN`. Let's see if that works...

https://docs.github.com/en/actions/guides/publishing-nodejs-packages
2021-09-07 15:58:32 +02:00
Robin Malfait
fac02f3de9
use the correct token name
I used `NODE_AUTH_TOKEN` in other projects but that doesn't seem to work
anymore for some reason 🤔

Found this resource that talks about `NPM_TOKEN`: https://docs.npmjs.com/using-private-packages-in-a-ci-cd-workflow
2021-09-07 15:52:17 +02:00
Robin Malfait
016eaa5091
Add --no-git-tag-version flag (#5426)
When you run `npm version`, it also tries to make a git commit and a git
tag. However, we are not doing anything with this and CI doesn't know
who the committer is.
2021-09-07 14:45:03 +02:00
Robin Malfait
2b9c4fec1f
Force creating an npm version for insiders build (#5423)
This fails because we usually use node 14 or 16, which has a
package-lock.json version of `2`. However on node 12, this version is
`1`. This means that after an npm install the package-lock.json is
touched and thus `npm version` fails because git is in a dirty
directory.

Adding a `--force` is not ideal, but also not really an issue since the
only thing that could change is the package-lock.json and this is not
published to npm anyways.
2021-09-07 14:30:55 +02:00
Robin Malfait
d01091d44d
Improve release workflows part 2 (#5422)
* ensure we build before the tests

Our tests require that for now. Will probably improve this in the
future.

* improve insiders version name

This will make it consistent with previously published versions.
2021-09-07 14:18:22 +02:00
Robin Malfait
7c9bc49259
Add automated release/npm publish workflows (#5421) 2021-09-07 14:13:21 +02:00
Adam Wathan
d99663a71d
Update 1.bug_report.yml 2021-06-21 17:16:12 -04:00
Adam Wathan
3876cffbbd
Update 1.bug_report.yml 2021-05-24 08:45:28 -04: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
Simon Vrachliotis
921e359e05
Update 1.bug_report.yml 2021-04-20 22:23:52 +10:00
Simon Vrachliotis
36f1602445
Update 1.bug_report.yml 2021-04-20 22:23:21 +10:00
Simon Vrachliotis
121b1d80d3
Update 1.bug_report.yml 2021-04-20 22:21:58 +10:00
Adam Wathan
e5c41bb779
Update 1.bug_report.yml 2021-04-10 09:24:58 -04:00
Adam Wathan
e721acef0b
Update 1.bug_report.yml 2021-04-08 19:35:38 -04:00
Robin Malfait
1bda5f5dab use package-lock.json in CI 2021-04-02 15:13:21 -04:00
Simon Vrachliotis
e227320e59
Update issue template config links
Deeplinking to GitHub issue discussion categories with the `category` query param
2021-03-22 13:45:21 +11:00