Gruntfile.js 777 Bytes
/* jshint node:true */
module.exports = function( grunt ){
	'use strict';

	grunt.initConfig({
		pot: {
			options:{
				text_domain: 'woothemes-updater',
				encoding: 'UTF-8',
				dest: 'languages/',
				exclude: [ 'node_modules/**', ],
				keywords: [
					'__:1',
					'_e:1',
					'_x:1,2c',
					'esc_html__:1',
					'esc_html_e:1',
					'esc_html_x:1,2c',
					'esc_attr__:1',
					'esc_attr_e:1',
					'esc_attr_x:1,2c',
					'_ex:1,2c',
					'_n:1,2',
					'_nx:1,2,4c',
					'_n_noop:1,2',
					'_nx_noop:1,2,3c'
				],
			},
			files:{
				src:  [
					'**/*.php',
				], //Parse all php files
				expand: true,
			}
		},
	});

	// Load NPM tasks to be used here
	grunt.loadNpmTasks('grunt-pot');

	// Register tasks
	grunt.registerTask( 'default', [
		'pot'
	]);
};