http-rewrite-middleware
Version:
Nginx-inspired (RegExp-based) HTTP Rewrite Middleware for the Connect and Express webservers.
37 lines (31 loc) • 830 B
JavaScript
/*
* http-rewrite-middleware
* https://github.com/viart/http-rewrite-middleware
*
* Copyright (c) 2013 Artem Vitiuk
* Licensed under the MIT license.
*/
;
module.exports = function (grunt) {
// Project configuration.
grunt.initConfig({
jshint: {
all: [
'Gruntfile.js',
'index.js',
'<%= nodeunit.tests %>'
],
options: {
jshintrc: '.jshintrc',
}
},
nodeunit: {
tests: ['test/*_test.js']
}
});
// These plugins provide necessary tasks.
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-nodeunit');
grunt.registerTask('test', ['nodeunit']);
grunt.registerTask('default', ['jshint', 'test']);
};