node-query/Gruntfile.js

32 lines
748 B
JavaScript
Raw Normal View History

2014-10-20 16:56:45 -04:00
module.exports = function(grunt) {
'use strict';
// Project configuration
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jsdoc: {
dist: {
2014-10-23 10:53:16 -04:00
src: ['lib/*.js', 'README.md'],
2014-10-20 16:56:45 -04:00
options: {
2014-10-22 10:13:08 -04:00
template: 'node_modules/grunt-jsdoc/node_modules/ink-docstrap/template',
configure: 'node_modules/grunt-jsdoc/node_modules/ink-docstrap/template/jsdoc.conf.json',
2014-10-20 16:56:45 -04:00
destination: 'docs'
}
}
},
nodeunit: {
all: ['tests/**/*_test.js'],
2014-10-23 10:53:16 -04:00
options: {
reporter: 'verbose'
}
2014-10-20 16:56:45 -04:00
}
});
grunt.loadNpmTasks('grunt-jsdoc');
grunt.loadNpmTasks('grunt-contrib-nodeunit');
grunt.registerTask('default', ['nodeunit','jsdoc']);
grunt.registerTask('tests', 'nodeunit');
2014-10-22 10:13:08 -04:00
grunt.registerTask('docs', 'jsdoc');
2014-10-20 16:56:45 -04:00
};