ft-metrics
Version:
A node module that includes helper methods/middleware for recording metrics
38 lines (30 loc) • 729 B
JavaScript
/*global module:true */
module.exports = function (grunt) {
'use strict';
grunt.initConfig({
jshint: {
all: ['main.js', 'lib/**/*.js'],
options: {
jshintrc: true
}
},
jasmine_node: {
options: {
forceExit: true,
match: '.',
matchall: false,
extensions: 'js',
specNameMatcher: 'spec',
},
all: ['spec/']
}
});
/* LOAD PLUGINS */
for (var key in grunt.file.readJSON('package.json').devDependencies) {
if (key !== 'grunt' && key.indexOf('grunt') === 0) {
grunt.loadNpmTasks(key);
}
}
/* TARGETS */
grunt.registerTask('default', ['jshint', 'jasmine_node']);
};