UNPKG

funcunit

Version:
42 lines (36 loc) 989 B
module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), exec_jshint: { all: ['Gruntfile.js', 'src/**/*.js', 'test/**/*.js'] }, mocha_debug: { options: { reporter: 'dot', check: ['src/**/*.js', 'test/**/*.js'] }, nodejs: { options: { src: ['src/**/*.js', 'test/**/*.js'] } } }, watch: { options: { nospawn: true }, all: { files: ['Gruntfile.js', 'src/**/*.js', 'test/**/*.js'], tasks: ['test'] } } }); grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadNpmTasks('grunt-exec-jshint'); grunt.loadNpmTasks('grunt-mocha-debug'); grunt.loadNpmTasks('grunt-newer'); grunt.loadNpmTasks('grunt-release'); grunt.registerTask('test', ['newer:exec_jshint', 'mocha_debug']); grunt.registerTask('publish', ['mocha_debug', 'release']); grunt.registerTask('default', ['test', 'watch']); };