rus-diff
Version:
MongoDB compatible JSON diff.
36 lines (28 loc) • 800 B
text/coffeescript
module.exports = (grunt) ->
grunt.loadNpmTasks 'grunt-mocha-test'
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.loadNpmTasks 'grunt-codo'
grunt.initConfig
pkg: grunt.file.readJSON("package.json")
coffee:
compile:
files:
'lib/index.js': 'src/index.coffee'
watch:
coffee:
files: [ 'src/index.coffee' ]
tasks: [ 'coffee' ]
mochaTest:
test:
options:
reporter: 'spec'
require: [
'coffee-script'
'babel/polyfill'
]
src: ['spec/**/*.coffee']
grunt.registerTask 'doc', ['codo']
grunt.registerTask 'test', ['mochaTest']
grunt.registerTask "compile", ["coffee"]
grunt.registerTask "default", ["compile"]