Nate Moore
e86b586f4b
Adds support for tailwind.config.cjs files ( #3181 )
...
* feat: automatically init and resolve tailwind.config.cjs files
* test: add tests for default tailwind.config.cjs resolution
* fix `cjsConfigFile` constant
* Fix JSDoc type of isModule
2021-02-07 14:50:21 -05:00
Adam Wathan
7f6a6eeab2
Explicitly exclude pre-Chromium Edge from CDN builds
...
The >1% was sometimes including this and other times not depending on CI vs. local, couldn't quite figure out why, guessing some difference in version of caniuse-lite.
2020-10-21 21:55:30 -04:00
Adam Wathan
fd8bacd7ae
Add new color palette ( #2623 )
...
* Add new color palette
* Replace local require when scaffolding config
* Remove unused import
2020-10-19 20:18:53 -04:00
Adam Wathan
9065404f4d
Revert "Automatically add featureFlags.future flags to the configuration files whenever the init command is ran ( #2379 )"
...
This reverts commit f72158c87f2ac1b1357d856dd79567c4329b5525.
2020-10-16 14:53:21 -04:00
Dexter Marks-Barber
f72158c87f
Automatically add featureFlags.future flags to the configuration files whenever the init command is ran ( #2379 )
...
* Add --future flag to CLI
* Remove early exit
* Always add future flags but commented out
- Update replace regex
- Remove future CLI flag
- Update tests
2020-10-07 14:12:41 -04:00
Robin Malfait
939346d8b3
add tailwind -p init option to generate a postcss file
2020-08-22 01:43:47 +02:00
Owen Melbourne
d833174b4e
Allowed the 'build' cli command to fallback to some defaults if no input file is specified.
2020-05-30 17:53:30 +01:00
mattstypa
26e4007428
Few CLI tweaks
2019-03-20 08:17:56 -05:00
Matt Stypa
6c461706c6
Moved constants and used it for hardcoded paths
2019-03-15 07:08:34 -05:00
Matt Stypa
7ec4b11d73
Ripped out the code no longer needed
2019-03-14 20:24:31 -05:00
Matt Stypa
9e4f54a17f
Merging in changes from upstream
2019-03-14 18:07:29 -05:00
Matt Stypa
9e835e4546
Fixed failing tests and added additional coverage
2019-03-14 16:51:36 -05:00
mattstypa
92b3b0c0a1
Updated CLI init commend
2019-03-14 15:51:21 -05:00
Adam Wathan
c6449f8fa8
Make container plugin a core plugin, configured in theme
2019-03-14 14:36:28 -04:00
Adam Wathan
195cdec89e
Don't skip CLI tests
2019-02-01 12:32:50 -05:00
Adam Wathan
ec1bdd27ec
Move screens into theme config
2019-02-01 12:32:50 -05:00
Adam Wathan
3d2a598c0e
Don't test for presence of defaultConfig in defaultConfig
2019-02-01 12:32:50 -05:00
Adam Wathan
2f9172cf8d
Update every plugin to accept its config as a parameter
2019-02-01 12:32:50 -05:00
Adam Wathan
d2faab515b
Return expectation promise in CLI test cases
2019-01-31 20:12:13 -05:00
Adam Wathan
d8df647fa0
Add option to disable autoprefixer in CLI
2018-11-05 08:53:51 -05:00
mattstypa
9e26fd84e3
CLI. Added --no-comments option to init commend
2018-09-24 15:44:36 -05:00
Matt Stypa
eb4da80ede
Code style updates
2018-09-24 07:55:24 -05:00
Matt Stypa
1b1ae8abc9
When no output file is specified for the build command, the result will be piped to stdout
2018-09-23 22:00:50 -05:00
mattstypa
d91eea88fb
Reverted changes to processTailwindFeatures that would impact Webpack watch ability. As a result all commands also became Promise based
2018-09-14 11:07:23 -05:00
Matt Stypa
b71cfe711e
CLI tool rewrite
2018-09-13 21:37:10 -05:00
David Mosher
862bce837e
add test harness for cli.js and stdout bugfix
...
- when used on the CLI, lib/cli.js was writing the output of log
statements to STDOUT; this caused consumers of the CLI who wanted to
pipe the processed output (css) to other unix utilities to end up with
invalid CSS due to the log messages appearing at the start and end of
the files
- this commit fixes this by replacing `console.log` with `console.warn`
and `console.error`, which both write output to STDERR
2018-05-03 13:42:45 -04:00