Clears your command line


Clears your command line. Automate all the things.

Install this grunt plugin next to your project's Gruntfile with: npm install grunt-clear

Then add this line to your project's Gruntfile:


Turn your console output into a live dashboard by clearing it before displaying new results. Add this task as the first item of your watch task:

watch: {
  clear: {
    //clear terminal on any watch task. beauty. 
    files: ['**/*'], //or be more specific 
    tasks: ['clear']

The watch task will run things in order, so make sure clear is very first otherwise your console will clear the output of other tasks you are probably interested in.

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.

Write tests Make sure it works on linux Do screencast

Copyright (c) 2012 Dave Geddes
Licensed under the MIT license.