Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add basic grunt file support

  • Loading branch information...
commit 5153d76d89f06bd2b7ae953395f83a4bd2250e33 1 parent 803efa0
@pdeschen pdeschen authored
Showing with 33 additions and 0 deletions.
  1. +30 −0 grunt.js
  2. +3 −0  package.json
View
30 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']);
+};
View
3  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": [{
Please sign in to comment.
Something went wrong with that request. Please try again.