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.
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.
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).