59 Commits

Author SHA1 Message Date
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
Simon Vrachliotis
1f4139c98d
Adds issue template (YAML config) for bug report
* Add YAML config for bug report template
* Remove "legacy" bug report template in favour of YAML config
* Remove "legacy" issue template markdown file
2021-03-22 13:31:01 +11:00
Andrew Brown
45d1c9729e
fix command name (#3297)
command was changed from `prepare` to `prepublishOnly` here:

bc3c8bfbc4
2021-01-29 14:41:00 -05:00
Adam Wathan
0379357bca
Update config.yml 2020-12-27 16:08:01 -05:00
Adam Wathan
bfa394e2e9
Update config.yml 2020-12-27 16:05:39 -05: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
Adam Wathan
ddd017cb38
Update bug-report.md 2020-10-16 10:54:01 -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
7639684eec Update issue templates 2020-07-08 13:08:19 -04:00
Estevan Maito
f8b99d7428 update issue templates 2020-07-08 13:08:19 -04:00
Adam Wathan
ecffd24bd8 Fix mistake in CONTRIBUTING.md 2020-06-27 14:54:18 -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