From 690e42a1cef6141b3e2e5ac33cac36a9a459c090 Mon Sep 17 00:00:00 2001 From: Andrew Miner Date: Wed, 13 Apr 2016 16:41:47 -0700 Subject: [PATCH] Make watch:test work and clear screen --- Gruntfile.coffee | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Gruntfile.coffee b/Gruntfile.coffee index ede6ff01..4f39593b 100644 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -43,9 +43,9 @@ module.exports = (grunt)-> ] watch: - data_files: + test: files: ['./data/**/*.cg'] - tasks: ['mochaTest'] + tasks: ['script:clear', 'mochaTest'] # Compound Tasks ################################################################################################### @@ -75,6 +75,10 @@ module.exports = (grunt)-> # Script Tasks ##################################################################################################### + grunt.registerTask 'script:clear', 'clears the terminal screen', -> + done = this.async() + grunt.util.spawn cmd:'clear', opts:{stdio:'inherit'}, (error)-> done(error) + grunt.registerTask 'script:s3_upload:prod', 'uploads all static content to S3', -> done = this.async() grunt.util.spawn cmd:'./scripts/s3_upload', args:['--prod'], opts:{stdio:'inherit'}, (error)-> done(error)