gulp-spellcheck

How do I output gulp results to console?

£可爱£侵袭症+ 提交于 2019-11-30 08:15:12
I want to put my spellcheck results out to the console instead of to a file and I think this should work since as I understand it gulp returns a stream. Instead I get an error: TypeError: Object #<Stream> has no method 'read' Here is my code gulp.task('spellcheck', function() { var patterns = [{ // Strip tags from HTML pattern: /(<([^>]+)>)/ig, replacement: '' }]; var spellSuggestions = [{ pattern: / [^ ]+? \(suggestions:[A-z, ']+\)/g, replacement: function(match) { return '<<<' + match + '>>>'; } }]; var nonSuggestions = [{ pattern: /<<<.+>>>|([^\s]+[^<]+)/g, replacement: function(match) { if

How do I output gulp results to console?

时光总嘲笑我的痴心妄想 提交于 2019-11-29 11:18:47
问题 I want to put my spellcheck results out to the console instead of to a file and I think this should work since as I understand it gulp returns a stream. Instead I get an error: TypeError: Object #<Stream> has no method 'read' Here is my code gulp.task('spellcheck', function() { var patterns = [{ // Strip tags from HTML pattern: /(<([^>]+)>)/ig, replacement: '' }]; var spellSuggestions = [{ pattern: / [^ ]+? \(suggestions:[A-z, ']+\)/g, replacement: function(match) { return '<<<' + match + '>>