The JavaScript task runner, configured with a Gruntfile
open sourceMITfree
Grunt is a task runner for JavaScript projects: you describe repetitive jobs such as minification, compilation, unit tests and linting in a Gruntfile, and it runs them for you and your team. Hundreds of plugins on npm cover most tasks, the Grunt team's own grunt-contrib plugins among them, and you can write and publish your own. The grunt-cli package puts a grunt command on your path that runs the Grunt installed next to each project's Gruntfile, so several versions can live on one machine. It's an OpenJS Foundation project.
Ways to install
Package managers
Problems it solves
- automate minifying, concatenating and linting my JavaScript before a release
- run my lint, test and build steps with one command
- an old project uses a Gruntfile and I need to understand how it builds
- a task runner for my front-end build with lots of ready-made plugins
Features
- Gruntfile configuration of tasks and targets
- hundreds of plugins on npm, including the grunt-contrib set
- write and publish your own plugins
- grunt-cli runs the project-local Grunt, so versions can differ per project
Limitations
- Only the latest version (1.6) gets security and bug fixes; older versions are end of life.3
Alternatives
The same job
These do what Grunt does.
- just Just a command runner
- Task A fast, cross-platform build tool inspired by Make, designed for modern workflows.
- gulp A toolkit to automate and enhance your workflow
- gulp-sourcemaps Source map support for gulp builds
