Created
October 7, 2015 15:35
-
-
Save remkus/ffd17f5f99472a683028 to your computer and use it in GitHub Desktop.
Gruntfile.js example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*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