Skip to content

Commit

Permalink
Update Grunt and remove unused package
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbachhuber committed Dec 1, 2020
1 parent 580e109 commit 3fa8428
Show file tree
Hide file tree
Showing 3 changed files with 1,807 additions and 32 deletions.
31 changes: 1 addition & 30 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,11 @@
module.exports = function( grunt ) {

'use strict';
var banner = '/**\n * <%= pkg.homepage %>\n * Copyright (c) <%= grunt.template.today("yyyy") %>\n * This file is generated automatically. Do not edit.\n */\n';
// Project configuration
grunt.initConfig( {

pkg: grunt.file.readJSON( 'package.json' ),

addtextdomain: {
options: {
textdomain: 'wp-saml-auth',
},
target: {
files: {
src: [ '*.php', '**/*.php', '!node_modules/**', '!php-tests/**', '!bin/**' ]
}
}
},

wp_readme_to_markdown: {
your_target: {
files: {
Expand All @@ -26,27 +14,10 @@ module.exports = function( grunt ) {
},
},

makepot: {
target: {
options: {
domainPath: '/languages',
mainFile: 'wp-saml-auth.php',
potFilename: 'wp-saml-auth.pot',
potHeaders: {
poedit: true,
'x-poedit-keywordslist': true
},
type: 'wp-plugin',
updateTimestamp: true
}
}
},
} );

grunt.loadNpmTasks( 'grunt-wp-i18n' );
grunt.loadNpmTasks( 'grunt-wp-readme-to-markdown' );
grunt.registerTask( 'default', ['i18n', 'readme'] );
grunt.registerTask( 'i18n', ['addtextdomain', 'makepot'] );
grunt.registerTask( 'default', ['readme'] );
grunt.registerTask( 'readme', ['wp_readme_to_markdown'] );

grunt.util.linefeed = '\n';
Expand Down
Loading

0 comments on commit 3fa8428

Please sign in to comment.