Your IP : 216.73.216.215


Current Path : /home/flapst5/ekmtoronto.com/wp-content/plugins/wp-defender/extra/shared-tasks/
Upload File :
Current File : /home/flapst5/ekmtoronto.com/wp-content/plugins/wp-defender/extra/shared-tasks/wpmudev_makepot.js

module.exports = function (grunt, wpmudev) {
	'use strict';

	grunt.registerTask('wpmudev_makepot', function () {
		var exclusions = wpmudev.files.not_meta(),
			files = [],
			filename = grunt.template.process('<%= pkg.textdomain %>') || grunt.template.process('<%= pkg.name %>')
		;
		grunt.file.expand({filter: 'isFile' }, wpmudev.files.get('all').concat(exclusions)).forEach(function (path) {
			files.push(path);
		});

		grunt.config.set('makepot', {
			wpmudev: {
				options: {
					domainPath: 'languages/',
					type: 'wp-plugin',
					include: files,
					potFilename: filename + '.pot'
				},
				dest: filename
			}
		});

		grunt.task.run('makepot:wpmudev');
	});
};