jqb-isarray
Version:
define if a given input is an array
61 lines (46 loc) • 784 B
JavaScript
'use strict';
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
// test runner suite
'mocha-chai-sinon': {
options: {
ui: 'bdd'
},
build: {
src: ['./specs/**/*.spec.js'],
options: {
reporter: 'spec',
require: 'coverage/blanket'
}
}
},
watch: {
build: {
files: [
'./index.js',
'./libs/**/*.js',
'./specs/**/*.js'
],
tasks: [
'default'
]
}
}
});
/**
* Load Dependencies
*/
grunt.loadNpmTasks("grunt-mocha-chai-sinon");
grunt.loadNpmTasks("grunt-contrib-watch");
/**
* Register Tasks
*/
grunt.registerTask('default', [
'mocha-chai-sinon:build'
]);
grunt.registerTask('start', [
'default',
'watch:build'
]);
};