Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wp-pot/gulp-wp-pot

Gulp plugin to generate pot file for WordPress plugins and themes
https://github.com/wp-pot/gulp-wp-pot

gulp hacktoberfest poedit pot translator wordpress wp-pot

Last synced: 13 days ago
JSON representation

Gulp plugin to generate pot file for WordPress plugins and themes

Awesome Lists containing this project

README

        

# gulp-wp-pot

## Information

[![npm version](https://badge.fury.io/js/gulp-wp-pot.svg)](https://www.npmjs.com/package/gulp-wp-pot) [![GitHub Workflow Status](https://img.shields.io/github/workflow/status/wp-pot/gulp-wp-pot/Node%20CI/master)](https://github.com/wp-pot/gulp-wp-pot/actions) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/wp-pot/gulp-wp-pot/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/wp-pot/gulp-wp-pot/?branch=master) [![Code Coverage](https://scrutinizer-ci.com/g/wp-pot/gulp-wp-pot/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/wp-pot/gulp-wp-pot/?branch=master)

| Package | gulp-wp-pot |
| ----------- | ---------------------------------------------------- |
| Description | Gulp wrapper for [wp-pot](https://github.com/wp-pot/wp-pot). Generates pot files for WordPress plugins and themes. |

## Like my work and want to say thanks?
Do it here:
Buy Me A Coffee

## Install

```
$ npm install --save-dev gulp-wp-pot
```

## Example usage with [Gulp](http://github.com/gulpjs/gulp)

```js
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](https://github.com/wp-pot/wp-pot) - API for this module
- [wp-pot-cli](https://github.com/wp-pot/wp-pot-cli) - Run wp-pot via cli command

## License

MIT © [Rasmus Bengtsson](https://github.com/rasmusbe) | Initial work by [Willy Bahuaud](https://github.com/willybahuaud)