1234567891011121314151617181920212223242526272829 |
- /*
- * grunt-text-replace
- * https://github.com/Yoni/grunt-4-test
- *
- * Copyright (c) 2013 Jonathan Holmes
- * Licensed under the MIT license.
- */
- var gruntTextReplace = require('../lib/grunt-text-replace');
- module.exports = function(grunt) {
- // Please see the grunt documentation for more information regarding task
- // creation: https://github.com/gruntjs/grunt/blob/devel/docs/toc.md
- grunt.registerMultiTask('replace',
- 'General purpose text replacement for grunt. Allows you to replace ' +
- 'text in files using strings, regexs or functions.',
- function () {
- gruntTextReplace.replace({
- src: this.data.src,
- dest: this.data.dest,
- overwrite: this.data.overwrite,
- replacements: this.data.replacements
- });
- });
- };
|