flosse / sloc

simple tool to count SLOC (source lines of code)
MIT License
944 stars 84 forks source link

added jsx as known file extension #53

Closed capaj closed 8 years ago

capaj commented 8 years ago

so that we can count lines in our react projects as well

flosse commented 8 years ago

thx!

jonrh commented 8 years ago

Any ETA on when this will be available on npm?

flosse commented 8 years ago

as soon #49 is fixed ;-)

jonrh commented 8 years ago

Ahh got ya. What I did in the meantime was making a copy of my project and renaming all .jsx files to .js. Verified one sample JSX file and the numbers matched up. Stellar, keep up the good work!

flosse commented 8 years ago

What I did in the meantime was making a copy of my project and renaming all .jsx files to .js.

what about using the --alias option?

jonrh commented 8 years ago

I tried sloc -a jsx=js (--alias too). It yielded the same results as simply running sloc without parameters.