Gruntfile.js
777 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/* 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'
]);
};