tailwindcss/integrations
Robin Malfait f4799a32e8
add tests for the --postcss option in the new CLI (#4607)
* add tests for the --postcss option in the new CLI

* add `oneOf` ability to the `arg()` functionality

By default, `arg()` doesn't have a way to define multiple types. We want
the possibility of using `--postcss` (Boolean) or `--postcss
./custom-path.js`. But by default this is not possible.

This commit will allow us to do a few things, mainly:
- Keep the same API using the `{ type: oneOf(String, Boolean), description: '...' }`
- Keep the `--help` output similar

What we did behind the scenes is make sure to put the non recognized
flags in the `_` arguments list. This is possible by doing `permissive:
true`. We then manually parse those and resolve the correct value.

* ensure that we can use a custom `--postcss ./with-custom-path.js`
2021-06-10 11:35:17 -04:00
..
parcel Refactor internals to decouple watch strategies and extract IO 2021-05-26 09:43:05 -04:00
postcss-cli Integrations setup (#4354) 2021-05-18 11:21:35 -04:00
rollup Use tracking context by default (#4514) 2021-05-31 10:02:56 -04:00
tailwindcss-cli add tests for the --postcss option in the new CLI (#4607) 2021-06-10 11:35:17 -04:00
vite Integrations setup (#4354) 2021-05-18 11:21:35 -04:00
webpack-4 Use tracking context by default (#4514) 2021-05-31 10:02:56 -04:00
webpack-5 implement purge safelist (#4580) 2021-06-09 10:00:09 -04:00
.gitignore Integrations setup (#4354) 2021-05-18 11:21:35 -04:00
execute.js improve integration tests (#4572) 2021-06-07 13:50:53 -04:00
io.js improve integration tests (#4572) 2021-06-07 13:50:53 -04:00
package-lock.json Integrations setup (#4354) 2021-05-18 11:21:35 -04:00
package.json Integrations setup (#4354) 2021-05-18 11:21:35 -04:00
resolve-tool-root.js Integrations setup (#4354) 2021-05-18 11:21:35 -04:00
syntax.js Integrations setup (#4354) 2021-05-18 11:21:35 -04:00