Re:Ask HN: What are the essential components of your front-e...
by Kiro on Sunday July 27, 2014 @02:46PM
(#8093583)
You should replace bower with npm/browserify and grunt with gulp. Trust me.
Re:Ask HN: What are the essential components of your front-e...
by jamesbritt on Sunday July 27, 2014 @03:36PM
(#8093730)
Can you offer a bit more reason than "trust me"?
Re:Ask HN: What are the essential components of your front-e...
by ehutch79 on Sunday July 27, 2014 @03:39PM
(#8093741)
i'm not sure how browserify replaces bower?
Re:Ask HN: What are the essential components of your front-e...
by sehr on Sunday July 27, 2014 @04:14PM
(#8093848)
It (or something like it) is a requirement for using node modules in the browser
Re:Ask HN: What are the essential components of your front-e...
by thebigkick on Sunday July 27, 2014 @02:26PM
(#8093502)
I used Grunt for a little while until I discovered Gulp. Thought I'd post another option if anyone is interested. Much easier to get up and going. Although it doesn't have as large a community of tools. I'm confident it will get there.
Both are great work horses.
Re:Ask HN: What are the essential components of your front-e...
by HeyImAlex on Sunday July 27, 2014 @03:45PM
(#8093758)
Gulp needs a bunch of work IMO, too much emphasis on streams and not enough composability. Most of my tasks are gulp-esque through streams, and I use a lot of things from the gulp ecosystem, but gulp itself doesn't do a whole lot for me. For anyone using it I recommend lazypipe and runtasks, they've been indispensable in making my tasks work the way I want.
Bower is fantastic for dependency management. This is apparent as soon as you use it to manage the reqs for your project, but becomes even more awesome when you start publishing your own code, even if it's something not many other people use. Right now I have a bootstrap like Sass framework that I built and use between five or six projects. Not too big, but each one of those projects is pretty popular and actively edited. I needed a way to make sure everything updated well and could be temporarily stalled while I worked on better releases. Bower does all that.
Grunt is just my workhorse. Bower may install my files, but I need them moved around into certain folders in my project. Grunt handles that with a line or two. I also use it to watch my sass files and rebuild my static sites when changes to the templates or JS files occur. Since I publish some of my code to github I have grunt commands to auto tag and version my git repo and build, merge and publish a gh-pages branch so my documentation is kept up to speed. It also minifies whatever files I need minified/uglified and adds some license and documentation to the top of the files.
Almost all of these things I used to do manually or hand separate processes for.