UNPKG

pdfmake

Version:

Client/server side PDF printing in pure JavaScript

35 lines (29 loc) 599 B
module.exports = function(grunt) { grunt.initConfig({ mochacov: { test: { options: { reporter: '<%= (grunt.option("cc") ? "html-cov" : "spec") %>', }, src: ['tests/**/*.js'], } }, jsdoc: { dist: { src: ['src/*.js'], options: { destination: 'doc', a: 'true' } } }, jshint: { all: [ 'src/**/*.js' ] } }); grunt.loadNpmTasks('grunt-mocha-cov'); grunt.loadNpmTasks('grunt-jsdoc'); grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.registerTask('test', [ 'jshint', 'mochacov' ]); grunt.registerTask('default', [ 'test' ]); };