gulp-json2pot

0.0.3 • Public • Published

gulp-json2pot

Information

Package gulp-json2pot
Description Gulp wrapper for json2pot. Generate pot files from JSON keyed translation files via Gulp.

Install

$ npm install --save-dev gulp-json2pot

Example usage with Gulp

var gulp = require('gulp');
var json2pot = require('gulp-json2pot');
 
gulp.task('default', function () {
    return gulp.src('src/*.php')
        .pipe(json2pot( {
            domain: 'domain',
            package: 'Example project'
        } ))
        .pipe(gulp.dest('file.pot'));
});

json2pot({options})

See available options in the json2pot readme, https://github.com/diosney/json2pot#options
All options except src and writeFile is passed to json2pot.

Related

License

MIT © Diosney Sarmiento

Thanks to Rasmus Bengtsson for its work on wp-pot which this package is heavily based on.

Package Sidebar

Install

npm i gulp-json2pot

Weekly Downloads

0

Version

0.0.3

License

MIT

Unpacked Size

4.57 kB

Total Files

4

Last publish

Collaborators

  • diosney