From 57a7462772750946a22a04d2baf8d2633ca7d804 Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Wed, 22 Oct 2014 10:13:08 -0400 Subject: [PATCH] Update gruntfile and package.json --- Gruntfile.js | 7 ++++--- config.json | 11 ----------- package.json | 9 +++++---- 3 files changed, 9 insertions(+), 18 deletions(-) delete mode 100644 config.json diff --git a/Gruntfile.js b/Gruntfile.js index c1c80a9..ec1027d 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -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'); }; \ No newline at end of file diff --git a/config.json b/config.json deleted file mode 100644 index 3e02cf8..0000000 --- a/config.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "source": { - "include": ["lib", "lib/drivers"], - "includePattern": ".+\\.js(doc)?$" - }, - "opts" : { - "template": "templates/default", - "destination": "./docs/", - "lenient": true - } -} \ No newline at end of file diff --git a/package.json b/package.json index 9952e34..e702021 100755 --- a/package.json +++ b/package.json @@ -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": "",