teapot-server
Version:
An Express.js Web server that handles teapot requests according to RFC 2324.
47 lines (44 loc) • 819 B
JavaScript
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
eslint: {
target: [
'*.js',
'test/*_spec.js'
]
},
mochaTest: {
options: {
reporter: 'spec'
},
test: {
src: ['test/*_spec.js']
}
},
nsp: {
package: grunt.file.readJSON('package.json')
},
watch: {
js: {
files: ['*.js'],
tasks: 'build'
},
pkg: {
files: 'package.json',
tasks: 'build'
},
readme: {
files: 'README.md',
tasks: 'build'
}
}
});
// Tasks
grunt.loadNpmTasks('grunt-eslint');
grunt.loadNpmTasks('grunt-mocha-test');
grunt.loadNpmTasks('grunt-nsp');
grunt.loadNpmTasks('grunt-contrib-watch');
// Aliases
grunt.registerTask('test', ['eslint', 'mochaTest', 'nsp']);
grunt.registerTask('default', ['test']);
};