gulp-wc
A gulp plugin to just count lines of code passed from stream.
Usage
First of all, install the gulp-wc
plugin:
npm install gulp-wc
Furthurmore, add the plugin to your gulpfile.js
:
var wc = ; gulp;
This would show the output like below:
-------------gulp-wc output start-------------js/all.js :58 linesjs/test.js :29 linesjs2/all.js :58 linesjs2/test.js :29 linesjs3/all.js :58 linesjs3/test.js :29 linesjs4/all.js :58 linesjs4/test.js :29 linesjs5/all.js :58 linesjs5/test.js :29 linescss/all.css :10 linescss/test.css :9 linesTotal :454 lines
The output related to different parent directory, like "js" or "js2" in the example above, would be displayed with different color.
You can put this plugin's function in the middle of pipe chaining to see how many lines of code each file has before being processed.