3 ms·
Bower and Grunt. Dunno how I lived without them. Bower is fantastic for dependency management. This is apparent as soon as you use it to manage the reqs for yo
by snide 12y ago
Bower and Grunt. Dunno how I lived without them.
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.
- thebigkick 12y agoI 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.
- HeyImAlex 12y agoGulp 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.
- Kiro 12y agoYou should replace bower with npm/browserify and grunt with gulp. Trust me.
- jamesbritt 12y agoCan you offer a bit more reason than "trust me"?
- ehutch79 12y agoi'm not sure how browserify replaces bower?
- sehr 12y agoIt (or something like it) is a requirement for using node modules in the browser