pubsubhubbub/wordpress-pubsubhubbub

View on GitHub
Gruntfile.js

Summary

Maintainability
A
0 mins
Test Coverage
module.exports = function(grunt) {
    grunt.initConfig({
        wp_readme_to_markdown: {
            target: {
                files: {
                    'readme.md': 'readme.txt'
                },
            },
            options: {
                screenshot_url: 'https://ps.w.org/pubsubhubbub/trunk/{screenshot}.png'
            },
        },
        makepot: {
            target: {
                options: {
                    mainFile: 'pubsubhubbub.php',
                    potFilename: 'pubsubhubbub.pot',
                    type: 'wp-plugin',
                    updateTimestamp: true
                }
            }
        }
    });

    grunt.loadNpmTasks('grunt-wp-readme-to-markdown');
    grunt.loadNpmTasks('grunt-wp-i18n');

    // Default task(s).
    grunt.registerTask('default', ['wp_readme_to_markdown', 'makepot']);
};