node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

gulp-wp-pot

gulp-wp-pot

Information

npm version Build Status Scrutinizer Code Quality Code Coverage

Package gulp-wp-pot
Description Gulp wrapper for wp-pot. Generates pot files for WordPress plugins and themes.

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/rasmusbe/wp-pot#options
All options except src and writeFile is passed to wp-pot.

Related

License

MIT © Rasmus Bengtsson | Initial work by Willy Bahuaud