/*global module:false*/
module.exports = function (grunt) {
    // Project configuration.
    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),

        exec: {
            removeDocs: "rm -rf docs/*",
            createDocs: 'coddoc -f multi-html -d ./lib --dir ./docs'
        },

        jshint: {
            file: "./lib/*.js",
            options: {
                jshintrc: '.jshintrc'
            }
        },

        it: {
            all: {
                src: 'test/**/*.test.js',
                options: {
                    timeout: 3000, // not fully supported yet
                    reporter: 'spec'
                }
            }
        },
        'gh-pages': {
            options: {
                base: 'docs'
            },
            src: ['**']
        }
    });

    // Default task.
    grunt.registerTask('default', ['jshint', 'it', "exec"]);
    grunt.loadNpmTasks('grunt-it');
    grunt.loadNpmTasks('grunt-contrib-jshint');
    grunt.loadNpmTasks('grunt-exec');
    grunt.loadNpmTasks('grunt-gh-pages');

    grunt.registerTask("benchmark", "run benchmarks", function () {
        var done = this.async();
        require("./benchmark/benchmark")(function (err) {
            if (err) {
                grunt.log.error(err.stack);
                done(false)
            } else {
                grunt.log.ok("Done running benchmarks");
                done();
            }
        });
    });

};

/*global module:false*/
module.exports = function (grunt) {
    // Project configuration.
    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),

        exec: {
            removeDocs: "rm -rf docs/*",
            createDocs: 'coddoc -f multi-html -d ./lib --dir ./docs'
        },

        jshint: {
            file: "./lib/*.js",
            options: {
                jshintrc: '.jshintrc',
                reporterOutput: '',
            }
        },

        it: {
            all: {
                src: 'test/**/*.test.js',
                options: {
                    timeout: 3000, // not fully supported yet
                    reporter: 'spec'
                }
            }
        },
        'gh-pages': {
            options: {
                base: 'docs'
            },
            src: ['**']
        }
    });

    // Default task.
    grunt.registerTask('default', ['jshint', 'it', "exec"]);
    grunt.loadNpmTasks('grunt-it');
    grunt.loadNpmTasks('grunt-contrib-jshint');
    grunt.loadNpmTasks('grunt-exec');
    grunt.loadNpmTasks('grunt-gh-pages');

    grunt.registerTask("benchmark", "run benchmarks", function () {
        var done = this.async();
        require("./benchmark/benchmark")(function (err) {
            if (err) {
                grunt.log.error(err.stack);
                done(false)
            } else {
                grunt.log.ok("Done running benchmarks");
                done();
            }
        });
    });

};

Fix grunt errors in node > 6
Fix grunt errors in node > 6
