Clear screen after running tests during wait

This commit is contained in:
Andrew Miner
2016-04-10 13:36:25 -07:00
parent 5877a3234f
commit 29315f03f7
+5 -1
View File
@@ -179,7 +179,7 @@ module.exports = (grunt)->
tasks: ['sass'] tasks: ['sass']
test: test:
files: ['./src/**/*.coffee', './src/**/*.js', './test/**/*.coffee'] files: ['./src/**/*.coffee', './src/**/*.js', './test/**/*.coffee']
tasks: ['test'] tasks: ['script:clear', 'test']
# Compound Tasks ################################################################################################### # Compound Tasks ###################################################################################################
@@ -266,6 +266,10 @@ module.exports = (grunt)->
# Script Tasks ##################################################################################################### # 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", -> grunt.registerTask 'script:deploy:prod', "deploy code by copying to the production branch", ->
done = this.async() done = this.async()
grunt.util.spawn cmd:'./scripts/deploy', args:['--prod'], opts:{stdio:'inherit'}, (error)-> done(error) grunt.util.spawn cmd:'./scripts/deploy', args:['--prod'], opts:{stdio:'inherit'}, (error)-> done(error)