Skip to content

Commit aa45ff9

Browse files
authored
Merge pull request #8 from topcoat/fixed-style-prop
fix(Configuration): fixed broken path to style file
2 parents 3f1aba5 + b2ecd0d commit aa45ff9

5 files changed

+8
-55
lines changed

css/button-base.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
}
4343

4444
.button--disabled {
45-
opacity: 0.3;
45+
opacity: .3;
4646
cursor: default;
4747
pointer-events: none;
4848
}

css/index.css

-49
This file was deleted.

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "topcoat-button-base",
33
"description": "Topcoat button base. Reset styles for buttons.",
4-
"style": "src/",
4+
"style": "src/button-base",
55
"directories": {
66
"test": "test"
77
},
88
"scripts": {
99
"test": "ava test",
10-
"prepublish": "rsn -p './src/button-base.css' -o ./css/button-base.css ./test/button-base.fixture.css",
10+
"prepublish": "rsn -p './' -o ./css/button-base.css ./test/button-base.fixture.css",
1111
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
1212
},
1313
"repository": {
@@ -43,7 +43,7 @@
4343
"babel-register": "^6.14.0",
4444
"cz-customizable": "^4.0.0",
4545
"mocha": "^3.0.2",
46-
"resin": "^1.1.0",
46+
"resin": "^1.2.0",
4747
"semantic-release": "^4.3.5"
4848
},
4949
"config": {

test/button-base.expected.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
}
4343

4444
.button--disabled {
45-
opacity: 0.3;
45+
opacity: .3;
4646
cursor: default;
4747
pointer-events: none;
4848
}

test/button-base.test.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@ import test from 'ava';
22
import resin from 'resin';
33
import fs from 'fs';
44

5+
56
test('compilation', t => {
67
const input = './button-base.fixture.css';
78
const expected = fs.readFileSync('./button-base.expected.css','utf-8').trim();
89
return resin({
910
src: input,
11+
css: fs.readFileSync(input, 'utf-8'),
1012
vars: true,
1113
extend: true,
12-
prepend: '../src/button-base.css'
14+
prepend: '..'
1315
}).then(result => {
1416
t.is(result.css.trim(), expected);
1517
});

0 commit comments

Comments
 (0)