Update gruntfile and package.json

This commit is contained in:
Timothy Warren 2014-10-22 10:13:08 -04:00
parent d75bb728c2
commit 57a7462772
3 changed files with 9 additions and 18 deletions

View File

@ -1,15 +1,15 @@
module.exports = function(grunt) {
'use strict';
var exec = require('child_process').exec;
// Project configuration
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jsdoc: {
dist: {
src: ['lib/**/*.js', 'README.md'],
src: ['lib/*.js', 'lib/drivers/*.js', 'README.md'],
options: {
template: 'node_modules/grunt-jsdoc/node_modules/ink-docstrap/template',
configure: 'node_modules/grunt-jsdoc/node_modules/ink-docstrap/template/jsdoc.conf.json',
destination: 'docs'
}
}
@ -25,4 +25,5 @@ module.exports = function(grunt) {
grunt.registerTask('default', ['nodeunit','jsdoc']);
grunt.registerTask('tests', 'nodeunit');
grunt.registerTask('docs', 'jsdoc');
};

View File

@ -1,11 +0,0 @@
{
"source": {
"include": ["lib", "lib/drivers"],
"includePattern": ".+\\.js(doc)?$"
},
"opts" : {
"template": "templates/default",
"destination": "./docs/",
"lenient": true
}
}

View File

@ -12,14 +12,15 @@
},
"main": "lib/node-query.js",
"dependencies": {
"async": ""
"async": "^0.9.0",
"getargs": ""
},
"devDependencies": {
"grunt": "^0.4.5",
"grunt-contrib-nodeunit": "^0.4.1",
"grunt-jsdoc": "^0.6.1",
"jsdoc": "^3.2.2",
"nodeunit": "*"
"grunt-jsdoc": ">=0.6.1",
"jsdoc": "^3.3.0-alpha9",
"nodeunit": "^0.9.0"
},
"peerDependencies": {
"mysql": "",