Robin Malfait
ec8e41aa80
make CLI files TypeScript files
2022-12-01 17:03:47 +01:00
Robin Malfait
42dc39c468
copy cli to oxide/cli
2022-12-01 17:00:01 +01:00
Adam Wathan
6d7c311416
Clean up tests for TS
2022-12-01 10:42:01 -05:00
Adam Wathan
a0e6934e2f
Update scripts
2022-12-01 10:42:01 -05:00
Adam Wathan
76dd3a5aa8
Move TS to ./src/oxide
2022-12-01 10:42:01 -05:00
Jordan Pittman
c3aed5fd9b
Include new compiled typescript stuff when publishing
2022-12-01 10:42:01 -05:00
Jordan Pittman
e14d52ee1f
Defer to existing CLI for Oxide
2022-12-01 10:42:01 -05:00
Robin Malfait
6815f64e84
WIP
2022-12-01 10:42:01 -05:00
Robin Malfait
4e246e43ca
drop prepublishOnly
...
I don't think we actually need this anymore (or even want because this
is trying to do things in CI that we don't want to happen. Aka, build
the Oxide Rust code, it is already a dependency).
2022-12-01 10:42:01 -05:00
Robin Malfait
27955fc445
publish tailwindcss@oxide
2022-12-01 10:42:01 -05:00
Robin Malfait
d183b69619
use @tailwindcss/oxide dependency
2022-12-01 10:42:01 -05:00
Robin Malfait
ae19a85807
re-enable workflows
2022-12-01 10:42:01 -05:00
Robin Malfait
61a6c3a990
skip tests in oxide mode regarding custom separators in arbitrary variants
2022-12-01 10:42:01 -05:00
Jordan Pittman
dd426721db
Don’t match empty arbitrary values
2022-12-01 10:42:01 -05:00
Jordan Pittman
ea78fbcf2a
Fix failing tests
2022-12-01 10:42:01 -05:00
Jordan Pittman
2953f7a1c4
Include only unique values for tests
...
Really, what we care about most is that the list contains every expected candidate. Not necessarily how many times it shows up because while many candidates will show up A LOT in a source text we’ll unique them before passing them back to anything that needs them
2022-12-01 10:42:01 -05:00
Robin Malfait
d5560a4900
fix range to include \n
2022-12-01 10:42:01 -05:00
Robin Malfait
285c161ddb
add failing tests
...
I noticed that some of the tests were failing, and while looking at
them, it happened because the tests were structured like this:
```html
<div
class="
backdrop-filter
backdrop-filter-none
backdrop-blur-lg
backdrop-brightness-50
backdrop-contrast-0
backdrop-grayscale
backdrop-hue-rotate-90
backdrop-invert
backdrop-opacity-75
backdrop-saturate-150
backdrop-sepia
"
></div>
```
This means that the class names themselves eventually end up like this: `backdrop-filter-none\n`
-> (Notice the `\n`)
/cc @thecrypticace
2022-12-01 10:42:01 -05:00
Robin Malfait
35c9028fad
sort test output
...
This happened because the sorting happens in this branch, but changes
happened on the `master` branch.
2022-12-01 10:42:01 -05:00
Robin Malfait
53b3891c52
improve CI for the Oxide build
2022-12-01 10:41:59 -05:00
Robin Malfait
33b553a0b0
enable tracing based on DEBUG env
2022-12-01 10:41:37 -05:00
Jordan Pittman
bf18a85d3c
wip
2022-12-01 10:41:37 -05:00
Robin Malfait
6741ab4a29
cargo fmt
2022-12-01 10:41:37 -05:00
Robin Malfait
da3ec131cf
remove into_par_iter where it doesn't make sense
2022-12-01 10:41:37 -05:00
Robin Malfait
337775da30
use oxide
...
- Setup the codebase to be able to use the Rust parts based on an
environment variable: `OXIDE=1`.
- Setup some tests that run both the non-Rust and Rust version in the
same test.
- Sort the candidates in a consistent way, to guarantee the order for
now (especially in tests).
- Reflect sorting related changes in tests.
- Ensure tests run in both the Rust and non-Rust version. (Some tests
are explicitly skipped when using the Rust version since we haven't
implemented those features yet. These include: custom prefix,
transformers and extractors).
- `jest`
-`OXIDE=1 jest`
2022-12-01 10:41:37 -05:00
Robin Malfait
c2c544e9f7
add oxide
...
Our Rust related parts
2022-12-01 10:41:37 -05:00
Robin Malfait
f9761d6334
temporarily disable workflows
2022-12-01 10:41:36 -05:00
Adam Wathan
a1249779ec
Make button show up
2022-12-01 10:41:28 -05:00
Adam Wathan
6f53bded9d
Rename swcify script to build
2022-12-01 10:10:10 -05:00
Jordan Pittman
e8b036567d
Clip unbalanced closing brackets in arbitrary values ( #9973 )
...
* Properly clip when there are too many `]` characters
* Update changelog
2022-12-01 09:43:55 -05:00
Jonathan Reinink
8f49251c0f
Update CHANGELOG.md
2022-11-30 18:22:46 -05:00
Cameron Huntington
293ee902cf
Alphabetize theme keys in default config ( #9953 )
...
* alphabetize several theme properties
* Alphabetize all `theme` properties in default config
Co-authored-by: Jonathan Reinink <jonathan@reinink.ca>
2022-11-30 18:21:18 -05:00
Robin Malfait
4f92e2ff5e
Improve return value of resolveConfig, unwrap ResolvableTo ( #9972 )
...
* improve return value of `resolveConfig`, unwrap `ResolvableTo`
* update changelog
2022-11-30 14:26:15 +01:00
Robin Malfait
cac5a28c41
npm run style -- --fix
2022-11-30 11:38:37 +00:00
depfu[bot]
f43997de00
Update prettier to version 2.8.0
2022-11-30 11:38:37 +00:00
Adam Wathan
cbbfa827a4
Support variable shorthand for arbitrary modifiers ( #9962 )
...
* Support variable shorthand for arbitrary modifiers
* Update changelog
Co-authored-by: Adam Wathan <4323180+adamwathan@users.noreply.github.com>
2022-11-29 16:06:58 -05:00
Jordan Pittman
1d23dcbe92
Add --watch=always option to prevent exit when stdin closes ( #9966 )
...
* Support `--flag=value` syntax for manually-parsed CLI args
* Don’t exit when stdin closes if using `--watch=always`
* Update changelog
2022-11-29 14:57:07 -05:00
nakajima a.k.a. nazomikan
705d21397c
Support renaming of output files by PostCSS plugin. ( #9944 )
...
* Support for rename of output files by postcss plugin.
* update changelog
Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
2022-11-29 11:17:39 +01:00
depfu[bot]
bf8f39a4db
Update postcss-selector-parser to version 6.0.11
2022-11-28 12:19:36 +00:00
Robin Malfait
f0bac0f92f
only trigger oxide workflow for oxide branch
2022-11-28 13:06:56 +01:00
Robin Malfait
458950f5df
improve ci
2022-11-25 15:27:39 +01:00
Robin Malfait
ab47cee503
drop withAlpha on theme ( #9906 )
2022-11-25 14:03:50 +01:00
Adam Wathan
b7c1bee131
Update config.yml
2022-11-25 06:01:12 -05:00
depfu[bot]
873797fd96
Update esbuild to version 0.15.15
2022-11-24 19:13:29 +00:00
Adam Wathan
b5f5adf3f5
Support using variables as arbitrary values without var() ( #9880 )
...
* Support using variables as arbitrary values without var()
* Update changelog
* Add tests for variable fallback values
Co-authored-by: Adam Wathan <4323180+adamwathan@users.noreply.github.com>
2022-11-22 10:24:39 -05:00
Adam Wathan
ea10bb9d41
Add line-height modifier for font-size utilities ( #9875 )
...
* Add line-height modifier for font-size utilities
* Add test for arbitrary values
* Add failing test for non-configured modifier values
* Add more tests (including failing case)
* Remove unused code
* Add note + failing test
* Remove unused code
* Fix test
* Fix test
* Update changelog
Co-authored-by: Adam Wathan <4323180+adamwathan@users.noreply.github.com>
2022-11-22 09:37:07 -05:00
Adam Wathan
0d9e190785
Update changelog
2022-11-19 06:34:39 -05:00
depfu[bot]
03e3852b6f
Update eslint to version 8.27.0
2022-11-18 21:29:41 +00:00
depfu[bot]
c379f18b2f
Update postcss to version 8.4.19
2022-11-17 23:13:34 +00:00
Adam Wathan
a0d0d96ac6
Add additional matchUtilities test
2022-11-17 15:20:48 -05:00