Giuseppe
52c9c1ee6d
Fix expressions placeholders parsing/validation for external files ( #227 )
#223 fixed only one case, this branch aims to fix them all :)
Our safeguard is the `t.regex` from "transpiles external stylesheets with validation (expressions)" in `tests/external.js`, if that matches then the files are parsed correctly as css and therefore processed by styled-jsx.
Fixes #224
7 years ago
Rafał Ruciński
665113461d
Fix ASI after a colon ( #228 )
Bump Stylis to 3.0.17 to fix a regression in `background-image:` getting a semicolon after the colon. Adds a test to prevent future regressions.
7 years ago
Giuseppe Gurgone
57d00db747
1.0.4
7 years ago
Giuseppe
c81c95e66f
Fix esternal styles with expressions are not transpiled ( #223 )
The problem was that when using interpolation in external files eg. `div { color: ${colors.foo} }` we replace the interpolation `${colors.foo}` with a placeholder so that it can be parsed as css.
For external files we also check whether the export is a string or rather valid css (we do css detection). The problem was that the placeholder is invalid css eg. `div { color: %foo% } }` (`%foo%` is not a valid value for color) so we skipped the file altogether.
I fixed it by using a fake css custom property as placeholder instead.
7 years ago
Giuseppe Gurgone
91e885f3b0
1.0.3
7 years ago
Giuseppe
ef0e4def06
Add support for Node4 ( #218 )
7 years ago
Giuseppe Gurgone
484f3bfae0
1.0.2
8 years ago
Giuseppe
f9b6dcb177
Fix at-rules nesting ( #216 )
Fixes #214
8 years ago
Giuseppe Gurgone
fb30e22661
1.0.1
8 years ago
Giuseppe
8dbc00a5dc
Update stylis ( #213 )
8 years ago
Giuseppe
9e28d12143
Remove multiple global workaround example
now global is fixed
8 years ago
Giuseppe
3099f5b834
Upgrade to Stylis v3 ( #210 )
* upgrade stylis
* update snapshots
* Improve error msg, fix args parsing
8 years ago
Giuseppe Gurgone
ec1fdef0ca
1.0.0
8 years ago
Giuseppe Gurgone
f93abb927f
Upgrade babylon
8 years ago
Giuseppe
51f11c7c0b
Add styled with prettier badge to README.md
8 years ago
Giuseppe
9375d7c3c1
Fix expressions scope check ( #204 )
Fixes #176
8 years ago
Tim Neutkens
0ac5a93673
Show how to select children of global element ( #168 )
8 years ago
Giuseppe
436e9bbf95
Clarify that we automatically add vendor prefixes
Fixes #202
8 years ago
Giuseppe
1d847211f3
Add prettier ( #196 )
8 years ago
tdeschryver
e24516ab8a
Rewritten tests using ava snapshot ( #200 )
8 years ago
Giuseppe
adf11d4ac3
Preprocess external global styles ( #198 )
8 years ago
Giuseppe
8fc2e4a944
Preprocess and minify global styles ( #194 )
8 years ago
Giuseppe
642e0ffd0f
Fix externalJsxId calculation fails when only using external global styles ( #192 )
8 years ago
Giuseppe
d6785e1ab3
Fix expr namespacing inside animation shorthand ( #189 )
8 years ago
Giuseppe
02e203fe12
Introduce support for styles in separate files ( #148 )
Styles can be defined in separate JavaScript modules and exported as strings. Fixes #83
8 years ago
Leo Lamprecht
a81de0743f
Command line indicator removed
8 years ago
Leo Lamprecht
18f1aea56d
Removed npm badge - already linked in repo URL
8 years ago
Leo Lamprecht
8098db619a
Invalidated cache of slack badge
8 years ago
Roland Warmerdam
81ac6a36ba
Make rendering order deterministic ( #187 )
8 years ago
xekri
0545f4e6e6
Add Syntax Highlighting Solution for VS Code ( #164 )
8 years ago
Gregor Adams
ddd3a1ad4e
docs(readme) declare code blocks as jsx ( #156 )
Not all code blocks were declared as jsx therefore some examples had broken syntax highlighting
8 years ago
Tim Neutkens
ae1ed6753f
Add Emmet snippet ( #149 )
8 years ago
Sultan Tarimo
f2c3c2d0ea
fix :global & animation:..} ( #144 )
8 years ago
Giuseppe
da73cc6247
Remove batched styles updates ( #139 )
Fixes #136
8 years ago
Pierre-Henri Toussaint
a31d363297
Add Webstorm/Idea support tip. ( #143 )
8 years ago
Guillermo Rauch
517f6a0b6e
Update package.json
8 years ago
Sultan Tarimo
15824b27f5
Rewrite css compiler ( #134 )
Replace Stylis' fork with a middleware. Now we depend on Stylis master.
8 years ago
Leo Lamprecht
df90c37c92
0.5.7
8 years ago
Leo Lamprecht
6b85d2477c
Peer dependencies shouldn't be pinned
8 years ago
Leo Lamprecht
3e14d339ba
0.5.6
8 years ago
Leo Lamprecht
d38d78667a
Let Travis decide whether or not to use sudo
8 years ago
Leo Lamprecht
291d9ce446
Ignore logs
8 years ago
Leo Lamprecht
c388ab564a
Proper code style for gulpfile
8 years ago
Leo Lamprecht
03335b674d
Lowercased text files
8 years ago
Leo Lamprecht
773aa81458
Updated lockfile for Yarn
8 years ago
Leo Lamprecht
634b05e72c
Moved dependencies to bottom in `package.json`
8 years ago
Leo Lamprecht
9b025e4b6c
Pinned dependencies
8 years ago
Niklas van Megen
4e5926418c
Add section on Syntax Highlighting ( #131 )
8 years ago
Niklas van Megen
662de9e2d3
Allow whitespace in expressions inside template literals ( #129 )
Fixes #126
8 years ago
Guillermo Rauch
356698d447
Release 0.5.5
8 years ago