styled-jsx-plugin-postcss
Advanced tools
Comparing version 0.1.3 to 1.0.0
{ | ||
"name": "styled-jsx-plugin-postcss", | ||
"version": "0.1.3", | ||
"version": "1.0.0", | ||
"description": "Plugin to add PostCSS support to styled-jsx", | ||
@@ -25,12 +25,13 @@ "main": "index.js", | ||
"dependencies": { | ||
"deasync": "^0.1.12", | ||
"postcss": "^6.0.13", | ||
"deasync": "^0.1.13", | ||
"postcss": "^7.0.2", | ||
"postcss-load-plugins": "^2.3.0" | ||
}, | ||
"devDependencies": { | ||
"mocha": "^4.0.1", | ||
"postcss-cssnext": "^3.0.2", | ||
"mocha": "^5.2.0", | ||
"postcss-easy-import": "^3.0.0", | ||
"postcss-nested": "^2.1.2" | ||
"postcss-nested": "^4.1.0", | ||
"postcss-preset-env": "^6.0.10", | ||
"postcss-spiffing": "^0.1.0" | ||
} | ||
} |
13
test.js
@@ -5,13 +5,16 @@ const assert = require('assert') | ||
describe('styled-jsx-plugin-postcss', () => { | ||
it('applies plugins', () => { | ||
it('applies browser list and preset-env features', () => { | ||
assert.equal( | ||
plugin('p { img { display: block} color: color(red a(90%)) }'), | ||
'p { color: rgba(255, 0, 0, 0.9); } p img { display: block}' | ||
plugin('p { color: color-mod(red alpha(90%)); & img { display: block } }'), | ||
'p { color: rgba(255, 0, 0, 0.9) }\np img { display: block }' | ||
) | ||
}) | ||
it('applies plugins', () => { | ||
assert.equal(plugin('p { background-colour: grey; }'), 'p { background-color: gray; }') | ||
}) | ||
it('works with placeholders', () => { | ||
assert.equal( | ||
plugin('p { img { display: block } color: %%styled-jsx-placeholder-0%%; } %%styled-jsx-placeholder-1%%'), | ||
'p { color: %%styled-jsx-placeholder-0%%; } p img { display: block } %%styled-jsx-placeholder-1%%' | ||
plugin('p { color: %%styled-jsx-placeholder-0%%; & img { display: block; } } %%styled-jsx-placeholder-1%%'), 'p { color: %%styled-jsx-placeholder-0%% } p img { display: block; } %%styled-jsx-placeholder-1%%' | ||
) | ||
@@ -18,0 +21,0 @@ }) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
38712
89
0
5
9
+ Addedpicocolors@0.2.1(transitive)
+ Addedpostcss@7.0.39(transitive)
- Removedansi-styles@3.2.1(transitive)
- Removedchalk@2.4.2(transitive)
- Removedcolor-convert@1.9.3(transitive)
- Removedcolor-name@1.1.3(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedhas-flag@3.0.0(transitive)
- Removedpostcss@6.0.23(transitive)
- Removedsupports-color@5.5.0(transitive)
Updateddeasync@^0.1.13
Updatedpostcss@^7.0.2