1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | export = function (grunt: IGrunt) { grunt.loadNpmTasks('grunt-text-replace'); return { addIstanbulIgnore: { src: [ '<%= devDirectory %>/**/*.js' ], overwrite: true, replacements: [ { from: /^(var __(?:extends|decorate|param) = )/gm, to: '$1/* istanbul ignore next */ ' }, { from: /^(\()(function \(deps, )/m, to: '$1/* istanbul ignore next */ $2' } ] } }; }; |