3.7K
2.4K
+ 1
713

What is Grunt?

The less work you have to do when performing repetitive tasks like minification, compilation, unit testing, linting, etc, the easier your job becomes. After you've configured it, a task runner can do most of that mundane work for you鈥攁nd your team鈥攚ith basically zero effort.
Grunt is a tool in the JS Build Tools / JS Task Runners category of a tech stack.
Grunt is an open source tool with 12K GitHub stars and 1.5K GitHub forks. Here鈥檚 a link to Grunt's open source repository on GitHub

Who uses Grunt?

Companies
1013 companies reportedly use Grunt in their tech stacks, including Twitter, Mozilla, and Cloudant.

Developers
2560 developers on StackShare have stated that they use Grunt.

Grunt Integrations

BrowserStack, Yeoman, Lineman, KeyCDN, and Sails.js are some of the popular tools that integrate with Grunt. Here's a list of all 16 tools that integrate with Grunt.

Why developers like Grunt?

Here鈥檚 a list of reasons why companies and developers use Grunt
Grunt Reviews

Here are some stack decisions, common use cases and reviews by companies and developers who chose Grunt in their tech stack.

Justin Dorfman
Justin Dorfman
Developer Evangelist at StackShare | 4 upvotes 34.9K views
MaxCDN
MaxCDN
GitHub Pages
GitHub Pages
Netlify
Netlify
Let's Encrypt
Let's Encrypt
Jekyll
Jekyll
Bootstrap
Bootstrap
jQuery
jQuery
Grunt
Grunt
Fastly
Fastly
#CDN
#GoogleFonts
#StaticSiteGenerators
#Webperf

When my SSL cert MaxCDN was expiring on my personal site I decided it was a good time to revamp some things. Since GitHub Services is depreciated I can no longer have #CDN cache purges automated among other things. So I decided on the following: GitHub Pages, Netlify, Let's Encrypt and Jekyll. Staying the same was Bootstrap, jQuery, Grunt & #GoogleFonts.

What's awesome about GitHub Pages is that it has a #CDN (Fastly) built-in and anytime you push to master, it purges the cache instantaneously without you have to do anything special. Netlify is magic, I highly recommend it to anyone using #StaticSiteGenerators.

For the most part, everything went smoothly. The only things I had issues with were the following:

  • If you want to point www to GitHub Pages you need to rename the repo to www
  • If you edit something in the _config.yml you need to restart bundle exec jekyll s or changes won't show
  • I had to disable the Grunt htmlmin module. I replaced it with Jekyll layout that compresses HTML for #webperf

Last but certainly not least, I made a donation to Let's Encrypt. If you use their service consider doing it too: https://letsencrypt.org/donate/

See more
Gustavo Mu帽oz
Gustavo Mu帽oz
Web UI Developer at Globant | 4 upvotes 22.3K views
Webpack
Webpack
Grunt
Grunt
gulp
gulp
Parcel
Parcel
#Merge
#WebPackDevServer

Using Webpack is one of the best decision ever. I have used to Grunt and gulp previously, but the experience is not the same, and despite I know there are other bundlers like Parcel, Webpack gives me the perfect balance between automatization and configuration. The ecosystem of tools and loaders is amazing, and with WebPack #merge, you can modularize your build and define standard pieces to assemble different build configurations. I don't like processes where you cannot see their guts, and you have to trust in magic a little bit too much for my taste. But also I don't want to reinvent the wheel and lose too much time configuring my build processes. And of course, I love #WebPackDevServer and hot reloading.

See more
Joel Serino
Joel Serino
Senior Engineer & Team Lead at Think For Yourself | 1 upvotes 3K views
atGiftstarterGiftstarter
Grunt
Grunt

We use Grunt to automate some stuff, mostly related to tasks for the the Web App. Grunt

See more
Francois Leurent
Francois Leurent
CWO at IVS | 1 upvotes 2.6K views
atIVSIVS
Grunt
Grunt

Using ES7 async/await make the whole tooling chain "problem" disappear. No more code - no grunt tasks, no problems. We don't use grunt anymore. Grunt

See more
Chris Barnett
Chris Barnett
CTO at Promethean TV | 1 upvotes 2.6K views
atPromethean TVPromethean TV
Grunt
Grunt

Grunt is used in some of our web applications and used during the build process. Grunt

See more
whusterj
whusterj
Grunt
Grunt

Build our client-side app: process and minify LESS, AngularJS, HTML partials, etc. Grunt

See more

Grunt Alternatives & Comparisons

What are some alternatives to Grunt?
gulp
Build system automating tasks: minification and copying of all JavaScript files, static images. More capable of watching files to automatically rerun the task when a file changes.
Webpack
A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows to load parts for the application on demand. Through "loaders" modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.
npm
npm is the command-line interface to the npm ecosystem. It is battle-tested, surprisingly flexible, and used by hundreds of thousands of JavaScript developers every day.
Yarn
Yarn caches every package it downloads so it never needs to again. It also parallelizes operations to maximize resource utilization so install times are faster than ever.
Gradle
Gradle is a build tool with a focus on build automation and support for multi-language development. If you are building, testing, publishing, and deploying software on any platform, Gradle offers a flexible model that can support the entire development lifecycle from compiling and packaging code to publishing web sites.
See all alternatives

Grunt's Followers
2412 developers follow Grunt to keep up with related blogs and decisions.
Paul Celie
Venkat Susarla
Aendenne X
Lalit Nayyar
M Can Y谋lmaz
Imran Khalid
Prasad Madhbhavikar
jyjunyz
Nino Amzi
Calvin Raines