UNPKG

memcache-plus

Version:
33 lines (29 loc) 853 B
module.exports = function (grunt) { var js_files = ['Gruntfile.js', 'lib/**/*.js', 'test/**/*.js']; grunt.initConfig({ jshint: { options: { jshintrc: '.jshintrc', reporter: require('jshint-stylish') }, all: js_files }, mochaTest: { test: { options: { reporter: 'spec' }, src: ['test/**/*.js'] } }, watch: { files: js_files, tasks: ['jshint', 'mochaTest'] } }); grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadNpmTasks('grunt-mocha-test'); grunt.registerTask('default', ['watch']); grunt.registerTask('test', ['jshint', 'mochaTest']); };