3 ms·
TIL about cloc! Thank you good sir. It seems as though this is because he had node_modules checked into source control on the frontend part. npm basically likes
by headcanon 12y ago
TIL about cloc! Thank you good sir.
It seems as though this is because he had node_modules checked into source control on the frontend part. npm basically likes to download the whole internet when you run npm install, so these stats do not suprise me. Checking in that directory is generally discouraged, but its possible he wanted to avoid adding the node dependency in order to ease installation.
- jsaxton86 12y agoYou are correct. Here are the revised numbers after excluding public/scripts/node_modules: ------------------------------------------------------------------------------- Language files blank comment code ------------------------------------------------------------------------------- PHP 36 330 1048 597 Javascript 9 101 86 362 SASS 6 4 4 127 XML 1 0 0 18 CSS 1 0 0 1 ------------------------------------------------------------------------------- SUM: 53 435 1138 1105 -------------------------------------------------------------------------------
- joshschreuder 12y agoNPM actually encourages you to check the directory in when building something deployable like a website or app: https://www.npmjs.org/doc/faq.html#Should-I-check-my-node_modules-folder-into-git https://www.npmjs.org/doc/faq.html#Should-I-check-my-node_mo...