r/javascript • u/[deleted] • Mar 26 '16
You Have Ruined Build Systems
http://you-have-ruined-build-systems.surge.sh/5
u/ninth_reddit_account Mar 27 '16
I feel articles like this are misguided. These build tools aren't ruined, nor are they bad. They just might not be suitable for your use case.
Want a tiny scaffold for your projects? Just shove it up in a git repo, and start each project by cloning it. Want to 'bundle' all your scripts up? Just concat the files.
As your project and needs grow, you'll probably start to run into problems or identify optimisations that can be made. Chances are others thought the same, and there's tools out there to solve them.
0
Mar 27 '16
What does Brunch allow to do you can't do with just Grunt, Gulp or plain NPM runscripts? I honestly don't see any added value brought up with such a tool.
Want a tiny scaffold for your projects? Just shove it up in a git repo, and start each project by cloning it.
For my next project, I already did this. See z5-skel which is a next-gen version of z9-kickstart sans 999.css :), even includes a simple server (not with a watcher though) and is entirely runscript-based.
1
u/Cody_Chaos Mar 27 '16
Why complicate all things instead of letting scripts load just in the order they appear?
Because modules are a vastly more robust solution?
We can discuss the quality of the tools; I'd even agree with a lot of your criticisms of, eg, brunch. But arguing against modules as a language feature seems a bit odd, firstly because they're already here and not going away, and secondly because they work really well.
13
u/wreckedadvent Yavascript Mar 26 '16
I feel like this betrays a lack of experience in trying to organize medium-to-large-sized javascript apps. We didn't make things like requireJs or webpack because it was just a Fun Thing To Do, but there was a real problem being solved in terms of trying to organize larger applications. It simply just doesn't scale to manually organize your files when you've got a non-trivial application, and encourages you to make very very large files just so that you don't have to do this, among other unpleasantness (like relying on gobals, since that's the only way to organize code without modules).
Also, the "CommonJS/AMD intervention" was standardized: it's called ES6 modules. It's pretty ballsy to say the platform wasn't intended for module-based organization at this point.