File tree 4 files changed +22
-14
lines changed
4 files changed +22
-14
lines changed Original file line number Diff line number Diff line change 4
4
/test /custom-sassdoc
5
5
/sassdoc
6
6
/coverage
7
+ .nyc_output
7
8
.DS_Store
8
9
npm-debug.log
Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ sudo: false
13
13
git :
14
14
depth : 10
15
15
16
- script : make travis
16
+ script : make lint dist test cover
17
+ after_success : make coveralls
17
18
18
19
notifications :
19
20
slack :
Original file line number Diff line number Diff line change 1
1
BIN = $(PWD ) /node_modules/.bin/
2
2
SASSDOC = $(PWD ) /bin/sassdoc
3
3
4
- all : dist lint test
4
+ all : lint dist test
5
5
6
6
# Compile ES6 from `src` to ES5 in `dist`
7
7
# =======================================
@@ -28,19 +28,18 @@ test: test/data/expected.stream.json dist
28
28
test/data/expected.stream.json : test/data/expected.json
29
29
test/data/stream $< > $@
30
30
31
- cover : dist
31
+ cover :
32
32
rm -rf coverage
33
- $(BIN ) istanbul cover --report none --print detail $(BIN ) _mocha test/** /* .test.js
33
+ $(BIN ) nyc $(BIN ) mocha test/** /* .test.js
34
34
35
35
cover-browse : dist
36
36
rm -rf coverage
37
- $(BIN ) istanbul cover --report html $(BIN ) _mocha test/** /* .test.js
38
- open coverage/index.html
37
+ $(BIN ) nyc --reporter=html $(BIN ) mocha test/** /* .test.js
38
+ $(BIN ) opn coverage/index.html
39
+
40
+ coveralls :
41
+ ($( BIN) nyc report --reporter=text-lcov | $( BIN) coveralls) || exit 0
39
42
40
- travis : lint cover
41
- $(BIN ) istanbul report lcovonly
42
- (cat coverage/lcov.info | coveralls) || exit 0
43
- rm -rf coverage
44
43
45
44
# Development
46
45
# ===========
Original file line number Diff line number Diff line change 73
73
" LICENCE.md" ,
74
74
" README.md"
75
75
],
76
+ "scripts" : {
77
+ "test" : " make"
78
+ },
79
+ "nyc" : {
80
+ "exclude" : [
81
+ " **/*.test.js" ,
82
+ " test"
83
+ ]
84
+ },
76
85
"dependencies" : {
77
86
"babel-runtime" : " ^6.22.0" ,
78
87
"chalk" : " ^1.0.0" ,
106
115
"coveralls" : " ^2.11.2" ,
107
116
"dateformat" : " ^1.0.11" ,
108
117
"eslint" : " ^0.18.0" ,
109
- "istanbul" : " ^0.3.13" ,
110
118
"jsesc" : " ^0.5.0" ,
111
119
"mocha" : " ^2.2.1" ,
120
+ "nyc" : " ^10.1.2" ,
121
+ "opn-cli" : " ^3.1.0" ,
112
122
"sinon" : " ^1.14.1" ,
113
123
"vinyl" : " ^0.4.6"
114
- },
115
- "scripts" : {
116
- "test" : " make dist lint test"
117
124
}
118
125
}
You can’t perform that action at this time.
0 commit comments