diff --git a/grunt.js b/grunt.js new file mode 100644 index 0000000..4ad9b32 --- /dev/null +++ b/grunt.js @@ -0,0 +1,30 @@ + +module.exports = function(grunt) { + + // Project configuration. + grunt.initConfig({ + lint: { + all: ['src/**/*.js', 'test/**/*.js'] + }, + jshint: { + options: { + browser: true + } + }, + simplemocha: { + all: { + src: 'test/run.js', + options: { + globals: ['should'], + timeout: 3000, + ignoreLeaks: false, + ui: 'bdd' + } + } + } + }); + + grunt.loadNpmTasks('grunt-simple-mocha'); + + grunt.registerTask('default', ['simplemocha', 'lint']); +}; diff --git a/package.json b/package.json index 8306ef8..9302a75 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,9 @@ }, "devDependencies": { "mocha": "1.3.0", + "grunt": "0.3.17", + "grunt-simple-mocha": "*", + "grunt-mocha": "*", "should": "1.2.0" }, "licenses": [{