Skip to content

Instantly share code, notes, and snippets.

@remkus
Created October 7, 2015 15:35
Show Gist options
  • Save remkus/ffd17f5f99472a683028 to your computer and use it in GitHub Desktop.
Save remkus/ffd17f5f99472a683028 to your computer and use it in GitHub Desktop.
Gruntfile.js example
/*global node:true */
module.exports = function( grunt ) {
'use strict';
require('matchdep').filterDev('grunt-*').forEach( grunt.loadNpmTasks );
grunt.initConfig({
makepot: {
plugin: {
options: {
mainFile: 'plugin.php',
domainPath: 'languages', // Where to save the POT file.
exclude: ['v1-legacy/*'],
potHeaders: {
poedit: true
},
type: 'wp-plugin',
updateTimestamp: false
}
}
},
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment