4 ms·
> It has zero dependencies (other than React) Well, if you’re gonna draw the line there... React alone and the tooling it requires already gives you about 1400
by jiofih 6y ago
> It has zero dependencies (other than React)
Well, if you’re gonna draw the line there... React alone and the tooling it requires already gives you about 1400 dependencies. That is not what people mean by “zero dependencies”, especially choosing the framework that is one of the worst offenders.
- Arathorn 6y agosigh the point is that the interesting bit is the Matrix client, and we are not cheating and using some preexisting Matrix SDK but doing it all raw so people can see how it works. The web framework is irrelevant.
- akx 6y ago> React alone and the tooling it requires already gives you about 1400 dependencies When you throw around FUD like this, can you please also give us some credible sources? You can use cdnjs to get react and react-dom in exactly 2 .js files.
- progval 6y ago$ npm install https://github.com/matrix-org/cerulean [71 lines of logs] added 2371 packages from 808 contributors in 62.487s
- dstaley 6y agoOnce built, the only frontend dependency is React. Most of those packages are tooling related to the build process.
- progval 6y ago> Most of those packages are tooling related to the build process. So? jiofih's claim was about "React alone and the tooling".
- deleted 6y ago[deleted]
- Arathorn 6y agoheh, that’s because the dev dependencies (prettier and the test suite) have been accidentally added as runtime deps. but seriously, the amount of deps react has is really not the point i was making on the blog post... waves arms helplessly
- Arathorn 6y ago> heh, that’s because the dev dependencies (prettier and the test suite) have been accidentally added as runtime deps. fixed - thanks akx (and congrats on the first PR to cerulean :D)! https://github.com/matrix-org/cerulean/pull/30 https://github.com/matrix-org/cerulean/pull/30
- homarp 6y agosee https://www.netlify.com/blog/2018/08/23/how-to-easily-visualize-a-projects-dependency-graph-with-dependency-cruiser/#visualizing-massive-projects https://www.netlify.com/blog/2018/08/23/how-to-easily-visual...
- akx 6y agoThat is visualizing source files _within_ a package, not cross-package dependencies. Entirely different beasts.