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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With