UNPKG

@natlibfi/melinda-api-client

Version:

JS client for using Melinda API (Union catalogue of the National library of Finland)

52 lines (44 loc) 869 B
'use strict'; module.exports = function(grunt) { grunt.initConfig({ jshint: { options: { jshintrc: '.jshintrc' }, gruntfile: { src: 'Gruntfile.js' }, lib: { src: ['lib/**/*.js'] }, }, mochaTest: { test: { options: { reporter: 'spec' }, src: [ 'test/*spec.js' ] } }, mocha_istanbul: { coveralls: { src: ['test/*spec.js'], options: { check: { lines: 90, statements: 90, branches: 80, functions: 95 } } } }, }); grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-mocha-test'); grunt.loadNpmTasks('grunt-mocha-istanbul'); grunt.registerTask('lint', ['jshint']); grunt.registerTask('test', ['mochaTest']); grunt.registerTask('coverage', ['mocha_istanbul']); grunt.registerTask('default', ['lint', 'test', 'coverage']); };