All files / options replace.ts

0% Statements 0/3
100% Branches 0/0
0% Functions 0/1
0% Lines 0/3
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'
				}
			]
		}
	};
};