31 Commits

Author SHA1 Message Date
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
a20b4519d4 Node hashbang is required for npm bin files 2018-09-14 06:38:13 -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
Adam Wathan
6e7ae58910 Move container component to a built-in plugin 2018-03-12 15:34:34 -04:00
Adam Wathan
bc05473b37 Add dependencies, fix warnings 2018-03-07 09:37:01 -05:00
Adam Wathan
d8698f6144 Switch from var to let
Closes #281.
2017-12-04 10:44:50 -05:00
Jonathan Reinink
1faabc82b1 Switch to separate config import
Import default config from separate path (require('tailwindcss/defaultConfig')) to allow importing the default config without importing all of Tailwind, which causes errors with Webpack due to a dynamic require.
2017-11-14 08:03:31 -05:00
Jonathan Reinink
e9c7ce2c7d Add success message after tailwind init command 2017-11-10 07:36:30 -05:00
Adam Wathan
8ebc56741e Fix path issues in CLI 2017-11-08 08:27:00 -05:00
David Hemphill
06ed308c28 change print width to 100 characters 2017-11-06 15:02:02 -05:00
David Hemphill
79a2bb39e5 Reformat files 2017-11-06 15:02:02 -05:00
David Hemphill
9dbf5881cd fix eslint issues 2017-11-06 15:00:55 -05:00
David Hemphill
ec607968cf Add ESLinting and Prettier formatting and run an initial format on the codebase 2017-11-06 15:00:00 -05:00
Kalpa Perera
0c5ad514a9 Add file extension if not exists 2017-11-05 22:07:13 +05:30
Adam Wathan
f6b81ae35d Dynamically determine CLI tool version number 2017-11-02 11:35:48 -04:00
David Hemphill
66a2c1b9cb Hide catchall command from help 2017-11-01 17:26:59 -05:00
Adam Wathan
2d7b620f1e Fix issue with config option not being respected in tailwind build
Same issue as we were seeing with output files, I'm a dummy for missing
this and tagging.
2017-11-01 16:45:24 -04:00
Adam Wathan
24766911c1 Fix tailwind build CLI command
Moving to subcommands broke this without us noticing. It's probably a
good idea to add a big dirty integration test for this that just
executes the CLI command and makes sure the file was created.
2017-11-01 09:23:53 -04:00
Adam Wathan
782598319a Comment out requiring defaultConfig inside itself
Uncomment on init
2017-10-26 12:06:10 -04:00
Adam Wathan
7601b5564a Allow optional destination for init command, prevent overriding existing files 2017-10-24 07:39:09 -04:00
Adam Wathan
ba612c8953 WIP 2017-10-24 07:39:09 -04:00
Adam Wathan
244d7c09c9 Move defaultConfig to root so it's not processed by Babel 2017-10-24 07:39:09 -04:00
Adam Wathan
97905388b7 Fix bug where help was output even if matching command was found 2017-10-24 07:39:09 -04:00
Adam Wathan
01f37eb3fe Show help if no command is provided or if command is not found 2017-10-24 07:39:09 -04:00
Adam Wathan
1c15eba932 WIP 2017-10-24 07:39:09 -04:00
Adam Wathan
f87562cd43 Changes to CLI tool
- Remove stuff about merging config; Tailwind handles that on it's own
- Write to stdOut by default; file if specified with -o/--output
2017-10-13 19:38:33 -04:00
David Hemphill
9cf57e7f33 Change merge parameter to replace in CLI 2017-08-28 21:10:29 -05:00
David Hemphill
d1f345fafc Move the CLI to a different file 2017-08-28 15:02:22 -05:00