Clear screen after running tests during wait
This commit is contained in:
+5
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user