UNPKG

my-prototypes

Version:

Add Array, Numbers, Object and String prototypes in your project.

38 lines (34 loc) 946 B
module.exports = function(grunt){ grunt.initConfig({ mocha_istanbul: { coverage: { src: 'test', // a folder works nicely options: { mask: '*.js' } } }, shell: { code_climate: { command:[ 'codeclimate-test-reporter < ./coverage/lcov.info' ].join('&&'), options: { stderr: false, execOptions: { cwd: '' } } } } }); grunt.event.on('coverage', function(lcovFileContents, done){ // Check below done(); }); grunt.loadNpmTasks('grunt-shell'); grunt.loadNpmTasks('grunt-mocha-istanbul'); grunt.registerTask('coverage', [ 'mocha_istanbul:coverage', 'shell:code_climate']); };