From 29315f03f7ce4b30ebf3d151360eb990599df4b2 Mon Sep 17 00:00:00 2001 From: Andrew Miner Date: Sun, 10 Apr 2016 13:36:25 -0700 Subject: [PATCH] Clear screen after running tests during wait --- Gruntfile.coffee | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Gruntfile.coffee b/Gruntfile.coffee index 8e70d230a..a8cde4a76 100644 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -179,7 +179,7 @@ module.exports = (grunt)-> tasks: ['sass'] test: files: ['./src/**/*.coffee', './src/**/*.js', './test/**/*.coffee'] - tasks: ['test'] + tasks: ['script:clear', 'test'] # Compound Tasks ################################################################################################### @@ -266,6 +266,10 @@ module.exports = (grunt)-> # Script Tasks ##################################################################################################### + grunt.registerTask 'script:clear', "clear the current terminal buffer", -> + done = this.async() + grunt.util.spawn cmd:'clear', opts:{stdio:'inherit'}, (error)-> done(error) + grunt.registerTask 'script:deploy:prod', "deploy code by copying to the production branch", -> done = this.async() grunt.util.spawn cmd:'./scripts/deploy', args:['--prod'], opts:{stdio:'inherit'}, (error)-> done(error)