UNPKG

redis-dns

Version:

Simple DNS server configured using redis. Based on iriscouche's dnsd: https://github.com/iriscouch/dnsd

52 lines (47 loc) 1.2 kB
module.exports = function(grunt) { // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), nodeunit: { all: ['test/test_*.js'] }, watch: { files: '<config:lint.files>', tasks: 'default' }, jshint: { files: ['./*.js', 'lib/js/helpers.js', 'lib/js/simpleAsync.js', 'test/**/*.js'], options: { curly: true, eqeqeq: true, immed: true, latedef: true, newcap: true, noarg: true, sub: true, undef: true, boss: true, eqnull: true, node: true }, globals: { exports: true } }, uglify: { options: { banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n' }, build: { src: ['./server.js'], dest: 'build/<%= pkg.name %>.js' } } }); // Load the plugin that provides the "uglify" task. grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-contrib-nodeunit'); // Default task(s). grunt.registerTask('default', ['jshint', 'nodeunit', 'uglify']); };