Skip to content

Commit 9c1dd9b

Browse files
authored
Sugarfree default (#31)
1 parent abb632d commit 9c1dd9b

File tree

4 files changed

+223
-210
lines changed

4 files changed

+223
-210
lines changed

lib/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
let sugarss = require('sugarss')
21
let postcssImport = require('postcss-import')
32
let customProperties = require('postcss-custom-properties')
43
let calc = require('postcss-calc')
@@ -39,8 +38,6 @@ let autoprefixer = require('autoprefixer')
3938
*/
4039
module.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
/**

package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
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",
@@ -20,7 +20,7 @@
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",
@@ -31,13 +31,12 @@
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"

test/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ const test = require('ava')
55

66
test('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

1311
test('passes import opts correctly', (t) => {

0 commit comments

Comments
 (0)