Skip to content

Commit 50b1cf7

Browse files
authored
Merge pull request #10 from adamgruber/greenkeeping
Greenkeeping
2 parents 4052f9d + d6dc611 commit 50b1cf7

File tree

4 files changed

+2018
-803
lines changed

4 files changed

+2018
-803
lines changed

lib/transformVars.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ function getSassValue(sassVar) {
3535
return sassVar.unit ? `${value}${sassVar.unit}` : value;
3636

3737
case 'SassColor': {
38-
const { r, g, b, a } = value;
38+
const {
39+
r, g, b, a,
40+
} = value;
3941
const hasAlpha = a !== 1;
4042
return hasAlpha
4143
? `rgba(${r.toFixed()}, ${g.toFixed()}, ${b.toFixed()}, ${a})`

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@
3030
"camel-case": "^3.0.0"
3131
},
3232
"devDependencies": {
33-
"eslint": "^3.19.0 || ^4.5.0",
34-
"eslint-config-airbnb-base": "^11.3.2",
35-
"eslint-plugin-import": "^2.7.0",
36-
"jest": "^20.0.4",
37-
"node-sass": "^4.5.3",
38-
"sass-extract": "^2.0.0"
33+
"eslint": "^5.2.0",
34+
"eslint-config-airbnb-base": "^13.0.0",
35+
"eslint-plugin-import": "^2.13.0",
36+
"jest": "^23.4.1",
37+
"node-sass": "^4.9.2",
38+
"sass-extract": "^2.1.0"
3939
},
4040
"peerDependencies": {
41-
"sass-extract": "^1.0.1"
41+
"sass-extract": "*"
4242
},
4343
"jest": {
4444
"collectCoverage": true,

test/test.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,10 @@ const testfiles = {
1010
empty: path.resolve(__dirname, './sass/test-empty.scss'),
1111
};
1212

13-
const getVars = (file, compileOpts = {}, plugin) =>
14-
sassExtract.renderSync(
15-
Object.assign({}, { file }, compileOpts),
16-
{ plugins: [plugin || path.resolve('../sass-extract-js')] },
17-
).vars;
13+
const getVars = (file, compileOpts = {}, plugin) => sassExtract.renderSync(
14+
Object.assign({}, { file }, compileOpts),
15+
{ plugins: [plugin || path.resolve('../sass-extract-js')] },
16+
).vars;
1817

1918
describe('sass-extract-js', () => {
2019
it('should convert basic SASS vars', () => {

0 commit comments

Comments
 (0)