From 5fe90517e7f5a8faf41f44cf1b0d7b6abcd465e7 Mon Sep 17 00:00:00 2001 From: hacksalot Date: Fri, 18 Dec 2015 15:33:18 -0500 Subject: [PATCH] Auto-clean tests folder. --- Gruntfile.js | 5 ++++- package.json | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index fd9987b..ee65f40 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -17,6 +17,8 @@ module.exports = function (grunt) { all: { src: ['tests/*.js'] } }, + clean: ['tests/sandbox'], + yuidoc: { compile: { name: '<%= pkg.name %>', @@ -46,9 +48,10 @@ module.exports = function (grunt) { grunt.loadNpmTasks('grunt-simple-mocha'); grunt.loadNpmTasks('grunt-contrib-yuidoc'); grunt.loadNpmTasks('grunt-contrib-jshint'); + grunt.loadNpmTasks('grunt-contrib-clean'); grunt.registerTask('test', 'Test the FluentCV library.', - function( config ) { grunt.task.run( ['simplemocha:all'] ); }); + function( config ) { grunt.task.run( ['clean','simplemocha:all'] ); }); grunt.registerTask('document', 'Generate FluentCV library documentation.', function( config ) { grunt.task.run( ['yuidoc'] ); }); grunt.registerTask('default', [ 'jshint', 'test', 'yuidoc' ]); diff --git a/package.json b/package.json index 878cc13..3e18569 100644 --- a/package.json +++ b/package.json @@ -54,6 +54,7 @@ "devDependencies": { "chai": "*", "grunt": "*", + "grunt-contrib-clean": "^0.7.0", "grunt-contrib-jshint": "^0.11.3", "grunt-contrib-yuidoc": "^0.10.0", "grunt-simple-mocha": "*",