34 Commits

Author SHA1 Message Date
Nestor Vera
233d5bdcbd Fix undefined var in one test 2019-02-22 16:59:56 +01:00
Adam Wathan
db7f1e6728 Merge branch 'master' into next 2019-02-22 10:05:31 -05:00
Adam Wathan
10aa36533f Pass postcss to plugins explicitly 2019-02-22 09:50:36 -05:00
Adam Wathan
76c40e4394 Fix style 2019-02-07 15:13:17 -05:00
Adam Wathan
4007fc4d32 Test plugins can add base styles with raw PostCSS nodes 2019-02-07 14:06:24 -05:00
Adam Wathan
1d0b4cd31c Test plugins can add base styles with object syntax 2019-02-07 14:05:00 -05:00
Adam Wathan
e8d16fcdb5 Move separator to top level config option 2019-02-01 12:32:50 -05:00
Adam Wathan
1a46f6b47d Move important to top level option 2019-02-01 12:32:50 -05:00
Adam Wathan
664f923312 Move prefix option to top-level in config 2019-02-01 12:32:16 -05:00
Adam Wathan
fe1b30b2d2 Remove prefixTree, update relevant tests 2019-01-14 15:43:12 -05:00
Adam Wathan
5ade923fa4 Fix tests and lint warnings 2019-01-14 15:43:12 -05:00
Adam Wathan
146b984617 Accept plugins as separate processPlugins arg 2019-01-14 15:43:12 -05:00
Adam Wathan
9eca69ad83 Refactor process plugins to return an object 2018-06-26 13:44:47 -04:00
Adam Wathan
dbb4802fb6 Fix style 2018-03-07 09:37:01 -05:00
Adam Wathan
db8e06c282 Add test for nested rules 2018-03-07 09:37:01 -05:00
Adam Wathan
3be6a04d54 Add test to make sure we're not stupidly flattening styles too early 2018-03-07 09:37:01 -05:00
Adam Wathan
8e8f47c58d Respect user prefix by default when creating component classes 2018-03-07 09:37:01 -05:00
Adam Wathan
7a8f8d9877 Style fixes 2018-03-07 09:37:01 -05:00
Adam Wathan
7d589dd542 Fix style + kill unused code 2018-03-07 09:37:01 -05:00
Adam Wathan
c3f021a0c9 Prefix all classes in a selector, don't assume single class 2018-03-07 09:37:01 -05:00
Adam Wathan
d1423bab63 Drop shitty rule/atRule syntax for pure object syntax 2018-03-07 09:37:01 -05:00
Adam Wathan
9fec0b11c2 Fix style 2018-03-05 09:58:35 -05:00
Adam Wathan
c67912af66 Add test to document checking the user's !important preference 2018-03-05 09:58:35 -05:00
Adam Wathan
2feac441e7 Style fixes 2018-03-05 09:58:35 -05:00
Adam Wathan
ac8099251f Inline plugin functions in tests 2018-03-05 09:58:35 -05:00
Adam Wathan
9234df388e Add utility helper for creating utility rules that are automatically escaped and respect prefix/important options 2018-03-05 09:58:35 -05:00
Adam Wathan
6849818e20 Style fixes 2018-03-05 09:58:35 -05:00
Adam Wathan
dac591198f Provide a function for prefixing utilities in plugins 2018-03-05 09:58:35 -05:00
Adam Wathan
90982f9099 Test plugins can add multiple sets of utilities and components 2018-03-05 09:58:35 -05:00
Adam Wathan
87b291a258 Test utilities can be added without specifying variants 2018-03-05 09:58:35 -05:00
Adam Wathan
64d2176363 Test that "@" is optional in at-rule definitions 2018-03-05 09:58:35 -05:00
Adam Wathan
9573024a1b Expose config as a function to avoid mutation and make it easy to provide defaults 2018-03-05 09:58:35 -05:00
Adam Wathan
18d45b19cf Fix style 2018-03-05 09:58:35 -05:00
Adam Wathan
b96f342d8a Add initial test suite for processPlugins 2018-03-05 09:58:35 -05:00