Browse files

Use grunt for jshint and mocha tests.

  • Loading branch information...
1 parent 496a008 commit f8963cb3abc27e587d4b1d72b465bcae6ba15bf6 @dignifiedquire dignifiedquire committed Mar 13, 2013
Showing with 46 additions and 1 deletion.
  1. +22 −0 .jshintrc
  2. +20 −0 gruntfile.coffee
  3. +4 −1 package.json
View
22 .jshintrc
@@ -0,0 +1,22 @@
+{
+ "quotmark": "single",
+ "bitwise": true,
+ "indent": 2,
+ "camelcase": true,
+ "strict": false,
+ "trailing": true,
+ "curly": true,
+ "eqeqeq": true,
+ "immed": true,
+ "latedef": true,
+ "newcap": true,
+ "noempty": true,
+ "unused": true,
+ "noarg": true,
+ "sub": true,
+ "undef": true,
+ "maxdepth": 4,
+ "maxlen": 100,
+ "node": true,
+ "es5": true
+}
View
20 gruntfile.coffee
@@ -0,0 +1,20 @@
+module.exports = (grunt) ->
+ grunt.initConfig
+ jshint:
+ all: ['index.js']
+ options:
+ jshintrc: '.jshintrc'
+ simplemocha:
+ options:
+ ui: 'bdd'
+ reporter: 'dot'
+ unit:
+ src: [
+ 'test/*.js'
+ ]
+
+
+ grunt.loadNpmTasks 'grunt-simple-mocha'
+ grunt.loadNpmTasks 'grunt-contrib-jshint'
+
+ grunt.registerTask 'default', ['jshint', 'simplemocha']
View
5 package.json
@@ -21,7 +21,10 @@
"mocha": "*",
"chai": "*",
"sinon": "*",
- "sinon-chai": "*"
+ "sinon-chai": "*",
+ "grunt-simple-mocha": "~0.3.2",
+ "grunt": "~0.4.1",
+ "grunt-contrib-jshint": "~0.2.0"
},
"peerDependencies": {
"testacular": "~0.7"

0 comments on commit f8963cb

Please sign in to comment.