File tree Expand file tree Collapse file tree 4 files changed +223
-210
lines changed
Expand file tree Collapse file tree 4 files changed +223
-210
lines changed Original file line number Diff line number Diff line change 1- let sugarss = require ( 'sugarss' )
21let postcssImport = require ( 'postcss-import' )
32let customProperties = require ( 'postcss-custom-properties' )
43let calc = require ( 'postcss-calc' )
@@ -39,8 +38,6 @@ let autoprefixer = require('autoprefixer')
3938 */
4039module . exports = ( options = { } ) => {
4140 // sugarss by default unless false or custom parser
42- let parser = options . parser || sugarss
43- if ( options . parser === false ) parser = undefined
4441 options . path = options . path ? Array . prototype . concat ( options . path ) : [ ]
4542
4643 // standard options merge
@@ -85,7 +82,10 @@ module.exports = (options = {}) => {
8582 // add cssnano if minify config present
8683 if ( options . minify ) plugins . push ( require ( 'cssnano' ) ( options . cssnano ) )
8784
88- return { parser, plugins}
85+ return {
86+ parser : options . parser ,
87+ plugins
88+ }
8989}
9090
9191/**
Original file line number Diff line number Diff line change 88 },
99 "bugs" : " https://github.com/static-dev/spike-css-standards/issues" ,
1010 "dependencies" : {
11- "autoprefixer" : " ^7.1.1 " ,
11+ "autoprefixer" : " ^7.1.2 " ,
1212 "cssnano" : " ^3.7.4" ,
1313 "postcss-attribute-case-insensitive" : " ^2.0.0" ,
1414 "postcss-calc" : " ^6.0.0" ,
2020 "postcss-color-rebeccapurple" : " ^3.0.0" ,
2121 "postcss-color-rgb" : " ^2.0.0" ,
2222 "postcss-custom-media" : " ^6.0.0" ,
23- "postcss-custom-properties" : " ^6.0.1 " ,
23+ "postcss-custom-properties" : " ^6.1.0 " ,
2424 "postcss-custom-selectors" : " ^4.0.1" ,
2525 "postcss-font-family-system-ui" : " ^2.0.1" ,
2626 "postcss-font-variant" : " ^3.0.0" ,
3131 "postcss-pseudo-class-any-link" : " ^4.0.0" ,
3232 "postcss-selector-matches" : " ^3.0.1" ,
3333 "postcss-selector-not" : " ^3.0.1" ,
34- "rucksack-css" : " ^0.9.1" ,
35- "sugarss" : " ^1.0.0"
34+ "rucksack-css" : " ^0.9.1"
3635 },
3736 "devDependencies" : {
3837 "ava" : " ^0.21.0" ,
3938 "coveralls" : " ^2.13.1" ,
40- "nyc" : " ^11.0.2 " ,
39+ "nyc" : " ^11.0.3 " ,
4140 "rewire" : " ^2.5.2" ,
4241 "snazzy" : " ^7.0.0" ,
4342 "standard" : " ^10.0.2"
Original file line number Diff line number Diff line change @@ -5,9 +5,7 @@ const test = require('ava')
55
66test ( 'passes parser opt correctly' , ( t ) => {
77 const out = cssStandards ( { parser : 'test' } )
8- const out2 = cssStandards ( { parser : false } )
98 t . is ( out . parser , 'test' )
10- t . is ( out2 . parser , undefined )
119} )
1210
1311test ( 'passes import opts correctly' , ( t ) => {
You can’t perform that action at this time.
0 commit comments