Make watch:test work and clear screen
This commit is contained in:
+6
-2
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user