mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2024-11-05 01:56:21 +00:00
Auto-clean tests folder.
This commit is contained in:
parent
92128da381
commit
5fe90517e7
@ -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' ]);
|
||||
|
@ -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": "*",
|
||||
|
Loading…
Reference in New Issue
Block a user