Skip to content

Commit

Permalink
options.include for makepot admin task
Browse files Browse the repository at this point in the history
Added an `includes` option for the `makepot` task to specify which files should be scanned.
`grunt-wp-i18n` has now support for [options.include](https://github.com/blazersix/grunt-wp-i18n#optionsinclude)
  • Loading branch information
shivapoudel committed Aug 21, 2014
1 parent c829788 commit 099b861
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ module.exports = function( grunt ) {
admin: {
options: {
potFilename: 'woocommerce-admin.pot',
exclude: [
'^(?!includes\/admin).*'
include: [
'includes/admin/.*'
],
processPot: function ( pot ) {
pot.headers['project-id-version'] += ' Admin';
Expand Down

0 comments on commit 099b861

Please sign in to comment.