Awesome
gulp-wp-pot
Information
Package | gulp-wp-pot |
---|---|
Description | Gulp wrapper for wp-pot. Generates pot files for WordPress plugins and themes. |
Like my work and want to say thanks?
Do it here:
<a href="https://www.buymeacoffee.com/rasmus" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: auto !important;width: auto !important;" ></a>
Install
$ npm install --save-dev gulp-wp-pot
Example usage with Gulp
var gulp = require('gulp');
var wpPot = require('gulp-wp-pot');
gulp.task('default', function () {
return gulp.src('src/*.php')
.pipe(wpPot( {
domain: 'domain',
package: 'Example project'
} ))
.pipe(gulp.dest('file.pot'));
});
wpPot({options})
See available options in the wp-pot readme, https://github.com/wp-pot/wp-pot#options
All options except src and writeFile is passed to wp-pot.
Related
- wp-pot - API for this module
- wp-pot-cli - Run wp-pot via cli command
License
MIT © Rasmus Bengtsson | Initial work by Willy Bahuaud