File tree 2 files changed +1
-7
lines changed
2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -24,9 +24,7 @@ lint: .jshintrc
24
24
test : test/data/expected.stream.json dist
25
25
$(MOCHA ) test/** /* .test.js
26
26
$(SASSDOC ) --parse test/data/test.scss | diff - test/data/expected.json
27
- $(SASSDOC ) --parse < test/data/test.scss | diff - test/data/expected.stream.json
28
27
rm -rf sassdoc && $(SASSDOC ) test/data/test.scss && [ -d sassdoc ]
29
- rm -rf sassdoc && $(SASSDOC ) < test/data/test.scss && [ -d sassdoc ]
30
28
31
29
test/data/expected.stream.json : test/data/expected.json
32
30
test/data/stream $< > $@
Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ Options:
20
20
` ;
21
21
22
22
const docopt = require ( 'docopt' ) . docopt ;
23
- const source = require ( 'vinyl-source-stream' ) ;
24
23
const pkg = require ( '../package.json' ) ;
25
24
const Environment = require ( './environment' ) ;
26
25
const Logger = require ( './logger' ) ;
@@ -70,10 +69,7 @@ export default function cli(argv = process.argv.slice(2)) {
70
69
}
71
70
72
71
if ( ! options [ '<src>' ] . length ) {
73
- return process . stdin
74
- . pipe ( source ( ) )
75
- . pipe ( handler ( env ) )
76
- . on ( 'data' , cb ) ;
72
+ return env . emit ( 'error' , new errors . SassDocError ( 'Expecting at least one `<src>`.' ) ) ;
77
73
}
78
74
79
75
handler ( options [ '<src>' ] , env ) . then ( cb ) ;
You can’t perform that action at this time.
0 commit comments