Update some metadata config files

This commit is contained in:
Timothy Warren 2015-11-19 14:17:01 -05:00
parent 40d356d264
commit 002d21b25f
6 changed files with 23 additions and 14 deletions

1
.gitignore vendored
View File

@ -1,4 +1,3 @@
build
build/*
coverage
coverage/*

9
.istanbul.yml Normal file
View File

@ -0,0 +1,9 @@
reporting:
reports:
- lcov
- clover
- text-summary
- lcovonly
report-config:
clover: {file: ../build/clover.xml}
lcovonly: {file: ../build/lcov.info}

View File

@ -4,16 +4,14 @@ module.exports = function(grunt) {
// Project configuration
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
/*jsdoc: {
jsdoc: {
dist: {
src: ['lib/*.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'
}
}
},*/
},
nodeunit: {
all: ['tests/**/*_test.js'],
options: {
@ -22,12 +20,11 @@ module.exports = function(grunt) {
}
});
//grunt.loadNpmTasks('grunt-jsdoc');
grunt.loadNpmTasks('grunt-jsdoc');
grunt.loadNpmTasks('grunt-contrib-nodeunit');
//grunt.registerTask('default', ['nodeunit','jsdoc']);
grunt.registerTask('default', 'nodeunit');
grunt.registerTask('default', ['nodeunit','jsdoc']);
grunt.registerTask('tests', 'nodeunit');
//grunt.registerTask('docs', 'jsdoc');
grunt.registerTask('docs', 'jsdoc');
};

View File

@ -1,6 +1,6 @@
{
"name": "ci-node-query",
"version": "2.1.0",
"version": "2.2.0",
"description": "A query builder for node based on the one in CodeIgniter",
"author": "Timothy J Warren <tim@timshomepage.net>",
"engines": {
@ -36,7 +36,6 @@
"es6-shim": "*",
"getargs": "",
"grunt-istanbul": "*",
"jsdoc": "*",
"mysql": "^2.9.0",
"mysql2": "^0.15.8",
"node-firebird": "^0.7.0",
@ -48,12 +47,12 @@
"pg": "*"
},
"devDependencies": {
"nodeunit": "^0.9.0",
"nodeunit": "",
"grunt": "",
"grunt-cli": "",
"grunt-contrib-clean": "^0.6.0",
"grunt-contrib-nodeunit": "^0.4.1",
"grunt-istanbul": "^0.4.0",
"grunt-istanbul": "",
"grunt-jsdoc": ">=0.6.1",
"jsdoc": ""
},

5
sonar-project.properties Normal file
View File

@ -0,0 +1,5 @@
sonar.projectKey=node-query
sonar.projectName=NodeJS Query Builder
sonar.projectVersion=1.0
sonar.sources=lib
sonar.javascript.lcov.reportPath=build/lcov.info

View File

@ -27,7 +27,7 @@ var qb = nodeQuery.init('pg', connection);
// Set up the test base
testBase._setUp(qb, function(test, err, result) {
if (err != null) {
if (err) {
console.error('SQL syntax error', err);
}