mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2024-11-05 09:56:22 +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'] }
|
all: { src: ['tests/*.js'] }
|
||||||
},
|
},
|
||||||
|
|
||||||
|
clean: ['tests/sandbox'],
|
||||||
|
|
||||||
yuidoc: {
|
yuidoc: {
|
||||||
compile: {
|
compile: {
|
||||||
name: '<%= pkg.name %>',
|
name: '<%= pkg.name %>',
|
||||||
@ -46,9 +48,10 @@ module.exports = function (grunt) {
|
|||||||
grunt.loadNpmTasks('grunt-simple-mocha');
|
grunt.loadNpmTasks('grunt-simple-mocha');
|
||||||
grunt.loadNpmTasks('grunt-contrib-yuidoc');
|
grunt.loadNpmTasks('grunt-contrib-yuidoc');
|
||||||
grunt.loadNpmTasks('grunt-contrib-jshint');
|
grunt.loadNpmTasks('grunt-contrib-jshint');
|
||||||
|
grunt.loadNpmTasks('grunt-contrib-clean');
|
||||||
|
|
||||||
grunt.registerTask('test', 'Test the FluentCV library.',
|
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.',
|
grunt.registerTask('document', 'Generate FluentCV library documentation.',
|
||||||
function( config ) { grunt.task.run( ['yuidoc'] ); });
|
function( config ) { grunt.task.run( ['yuidoc'] ); });
|
||||||
grunt.registerTask('default', [ 'jshint', 'test', 'yuidoc' ]);
|
grunt.registerTask('default', [ 'jshint', 'test', 'yuidoc' ]);
|
||||||
|
@ -54,6 +54,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"chai": "*",
|
"chai": "*",
|
||||||
"grunt": "*",
|
"grunt": "*",
|
||||||
|
"grunt-contrib-clean": "^0.7.0",
|
||||||
"grunt-contrib-jshint": "^0.11.3",
|
"grunt-contrib-jshint": "^0.11.3",
|
||||||
"grunt-contrib-yuidoc": "^0.10.0",
|
"grunt-contrib-yuidoc": "^0.10.0",
|
||||||
"grunt-simple-mocha": "*",
|
"grunt-simple-mocha": "*",
|
||||||
|
Loading…
Reference in New Issue
Block a user