3 ms·
If you generate a typical react app with create-react-app, you get ~1000 dependencies in node_modules: `npx create-react-app some-app-name --typescript` (it w
by throwaway_bad 7y ago
If you generate a typical react app with create-react-app, you get ~1000 dependencies in node_modules:
`npx create-react-app some-app-name --typescript`
(it was actually exactly 1000 dependencies which is freaking me out because the number was so round. wondering if it am counting lines wrong `ls | wc -l`)
- codecurve 7y agoAnd 997 of those are development tooling dependencies that are not included in the application that you eventually deploy. Don't get me wrong, I would rather there were fewer development dependencies too, but they are tooling abstractions that you are _opting-in_ to. If that is still a cognitive burden, then there's nothing to stop you using React a build step through a CDN.
- mister_hn 7y agoAnd you just need 1 to fail to break the whole chain (think to backdoored / taken over npm packages)
- tqkxzugoaupvwqr 7y agoYour ls command may create columns. To list one item per line and count the lines: `ls -1 | wc -l`
- helb 7y agols usually switches to one column automatically when it's output is piped: https://i.vgy.me/cNfMzV.png https://i.vgy.me/cNfMzV.png
- schwartzworld 7y agoMost of those don't wind up in production.