From 9264cc34382922063a2cee41ddb34e0e30614242 Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Mon, 3 Nov 2014 16:50:40 -0500 Subject: [PATCH] Simplify grunt file and update .gitignore --- .gitignore | 4 +++- Gruntfile.js | 34 +--------------------------------- 2 files changed, 4 insertions(+), 34 deletions(-) diff --git a/.gitignore b/.gitignore index e279081..a19d54d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ build build/* coverage -coverage/* \ No newline at end of file +coverage/* +npm-debug.log +tests/FB_TEST_DB.FDB \ No newline at end of file diff --git a/Gruntfile.js b/Gruntfile.js index 4fe9c41..29655db 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -1,14 +1,9 @@ module.exports = function(grunt) { 'use strict'; - var tests = 'tests/**/*_test.js'; - var src = 'lib/**/*.js'; - var reportDir = 'coverage'; - // Project configuration grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), - clean: [ 'build' ], jsdoc: { dist: { src: ['lib/*.js', 'README.md'], @@ -20,45 +15,18 @@ module.exports = function(grunt) { } }, nodeunit: { - all: [tests], + all: ['tests/**/*_test.js'], options: { reporter: 'verbose' } - }, - watch: { - files: [src, tests], - tasks: 'default' - }, - instrument: { - files: src, - options: { - lazy: true, - basePath : 'build/instrument/' - } - }, - storeCoverage : { - options : { - dir: reportDir - } - }, - makeReport: { - src: 'build/reports/**/*.json', - options: { - type: ['lcov', 'html'], - dir: reportDir, - print: 'detail' - } } }); grunt.loadNpmTasks('grunt-jsdoc'); - grunt.loadNpmTasks('grunt-contrib-clean'); grunt.loadNpmTasks('grunt-contrib-nodeunit'); - grunt.loadNpmTasks('grunt-istanbul'); grunt.registerTask('default', ['nodeunit','jsdoc']); grunt.registerTask('tests', 'nodeunit'); grunt.registerTask('docs', 'jsdoc'); - grunt.registerTask('cover', ['clean', 'instrument', 'tests', 'storeCoverage', 'makeReport']); }; \ No newline at end of file