Skip to content

Commit

Permalink
add basic grunt file support
Browse files Browse the repository at this point in the history
  • Loading branch information
pdeschen committed Nov 1, 2012
1 parent 803efa0 commit 5153d76
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
30 changes: 30 additions & 0 deletions grunt.js
Original file line number Diff line number Diff line change
@@ -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']);
};
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
},
"devDependencies": {
"mocha": "1.3.0",
"grunt": "0.3.17",
"grunt-simple-mocha": "*",
"grunt-mocha": "*",
"should": "1.2.0"
},
"licenses": [{
Expand Down

0 comments on commit 5153d76

Please sign in to comment.