Make watch:test work and clear screen

This commit is contained in:
Andrew Miner
2016-04-13 16:41:47 -07:00
parent 870b151666
commit 690e42a1ce
+6 -2
View File
@@ -43,9 +43,9 @@ module.exports = (grunt)->
] ]
watch: watch:
data_files: test:
files: ['./data/**/*.cg'] files: ['./data/**/*.cg']
tasks: ['mochaTest'] tasks: ['script:clear', 'mochaTest']
# Compound Tasks ################################################################################################### # Compound Tasks ###################################################################################################
@@ -75,6 +75,10 @@ module.exports = (grunt)->
# Script Tasks ##################################################################################################### # 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', -> grunt.registerTask 'script:s3_upload:prod', 'uploads all static content to S3', ->
done = this.async() done = this.async()
grunt.util.spawn cmd:'./scripts/s3_upload', args:['--prod'], opts:{stdio:'inherit'}, (error)-> done(error) grunt.util.spawn cmd:'./scripts/s3_upload', args:['--prod'], opts:{stdio:'inherit'}, (error)-> done(error)