Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-include
addtextdomain
functionality via Grunt for the moment (#5526
) * Re-add a Gruntfile so we can automate adding textdomains. * Add in omitted textdomains. * Add Gruntfile.js to .svnignore to avoid deploying with release. * Added yarn scripts and gulp-cli to be able to run them locally.
- Loading branch information
1 parent
0fa10d4
commit 45dbeac
Showing
6 changed files
with
240 additions
and
11 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* global module, require */ | ||
|
||
module.exports = function(grunt) { | ||
var path = require( 'path' ), | ||
cfg = { | ||
pkg: grunt.file.readJSON('package.json'), | ||
makepot: { | ||
jetpack: { | ||
options: { | ||
domainPath: '/languages', | ||
exclude: [ | ||
'node_modules', | ||
'tests', | ||
'tools' | ||
], | ||
mainFile: 'jetpack.php', | ||
potFilename: 'jetpack.pot' | ||
} | ||
} | ||
}, | ||
addtextdomain: { | ||
jetpack: { | ||
options: { | ||
textdomain: 'jetpack' | ||
}, | ||
files: { | ||
src: [ | ||
'*.php', | ||
'**/*.php', | ||
'!node_modules/**', | ||
'!tests/**', | ||
'!tools/**' | ||
] | ||
} | ||
} | ||
} | ||
}; | ||
|
||
grunt.initConfig( cfg ); | ||
|
||
grunt.loadNpmTasks('grunt-wp-i18n'); | ||
}; |
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
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
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
Oops, something went wrong.