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

View File

@ -1,6 +1,6 @@
{ {
"name": "ci-node-query", "name": "ci-node-query",
"version": "2.1.0", "version": "2.2.0",
"description": "A query builder for node based on the one in CodeIgniter", "description": "A query builder for node based on the one in CodeIgniter",
"author": "Timothy J Warren <tim@timshomepage.net>", "author": "Timothy J Warren <tim@timshomepage.net>",
"engines": { "engines": {
@ -36,7 +36,6 @@
"es6-shim": "*", "es6-shim": "*",
"getargs": "", "getargs": "",
"grunt-istanbul": "*", "grunt-istanbul": "*",
"jsdoc": "*",
"mysql": "^2.9.0", "mysql": "^2.9.0",
"mysql2": "^0.15.8", "mysql2": "^0.15.8",
"node-firebird": "^0.7.0", "node-firebird": "^0.7.0",
@ -48,12 +47,12 @@
"pg": "*" "pg": "*"
}, },
"devDependencies": { "devDependencies": {
"nodeunit": "^0.9.0", "nodeunit": "",
"grunt": "", "grunt": "",
"grunt-cli": "", "grunt-cli": "",
"grunt-contrib-clean": "^0.6.0", "grunt-contrib-clean": "^0.6.0",
"grunt-contrib-nodeunit": "^0.4.1", "grunt-contrib-nodeunit": "^0.4.1",
"grunt-istanbul": "^0.4.0", "grunt-istanbul": "",
"grunt-jsdoc": ">=0.6.1", "grunt-jsdoc": ">=0.6.1",
"jsdoc": "" "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 // Set up the test base
testBase._setUp(qb, function(test, err, result) { testBase._setUp(qb, function(test, err, result) {
if (err != null) { if (err) {
console.error('SQL syntax error', err); console.error('SQL syntax error', err);
} }