I am looking for a way to count the total number of line of code for my front-end project.
At the moment I am using the gulp-sloc
gulp.task('sloc', function () {
gulp.src(folders)
.pipe(sloc());
});
But the CSS code is not included in the count.
Do I miss some special configuration?
Do you know any other similar
plugin?
I am looking for a way to count the total number of line of code for my front-end project.
At the moment I am using the gulp-sloc
gulp.task('sloc', function () {
gulp.src(folders)
.pipe(sloc());
});
But the CSS code is not included in the count.
Do I miss some special configuration?
Do you know any other similar
plugin?
javascript
css
gulp
Share
Improve this question
asked Nov 18, 2015 at 7:46
GibboKGibboK74k148148 gold badges451451 silver badges674674 bronze badges
Add a ment
|
2 Answers
2
Reset to default
5
Perhaps you are using source control? In case that source control is Git, you can count the amount of code in the repo like this – no extra tools required.
For a more detailed breakdown, cloc may be helpful – have a look at this answer then. cloc doesn't depend on Git, or any other type of source control.
In windows OS there is also a gui tool http://www.locmetrics./ which you can use to count lines of code (LOC), blank lines of code (BLOC), ment lines of code (CLOC).