From 2b9b1bf0bed2dc3ffb8eb09efd3f36bb583f9d93 Mon Sep 17 00:00:00 2001 From: Remco Tolsma <869674+remcotolsma@users.noreply.github.com> Date: Thu, 30 Nov 2023 12:19:11 +0100 Subject: [PATCH] Remove Grunt. --- Gruntfile.js | 70 ---------------------------------------------------- package.json | 7 ------ 2 files changed, 77 deletions(-) delete mode 100644 Gruntfile.js diff --git a/Gruntfile.js b/Gruntfile.js deleted file mode 100644 index 338314d..0000000 --- a/Gruntfile.js +++ /dev/null @@ -1,70 +0,0 @@ -/** - * Grunt tasks. - * - * @author Pronamic - * @copyright 2005-2023 Pronamic - * @license GPL-3.0-or-later - * @package Pronamic\WordPress\Pay\Extensions\MemberPress - */ - -module.exports = function( grunt ) { - require( 'load-grunt-tasks' )( grunt ); - - // Project configuration. - grunt.initConfig( { - // Package. - pkg: grunt.file.readJSON( 'package.json' ), - - // JSHint. - jshint: { - all: [ 'Gruntfile.js', 'composer.json', 'package.json' ] - }, - - // PHP Code Sniffer. - phpcs: { - application: { - src: [ - '**/*.php', - '!node_modules/**', - '!vendor/**', - '!wordpress/**', - '!wp-content/**' - ] - }, - options: { - bin: 'vendor/bin/phpcs', - standard: 'phpcs.xml.dist', - showSniffCodes: true - } - }, - - // PHPLint. - phplint: { - all: [ 'src/**/*.php' ] - }, - - // PHP Mess Detector. - phpmd: { - application: { - dir: 'src' - }, - options: { - bin: 'vendor/bin/phpmd', - exclude: 'node_modules', - reportFormat: 'xml', - rulesets: 'phpmd.xml.dist' - } - }, - - // PHPUnit. - phpunit: { - options: { - bin: 'vendor/bin/phpunit' - }, - application: {} - } - } ); - - // Default task(s). - grunt.registerTask( 'default', [ 'jshint', 'phplint', 'phpmd', 'phpcs', 'phpunit' ] ); -}; diff --git a/package.json b/package.json index 8483eb0..7ad32dd 100644 --- a/package.json +++ b/package.json @@ -33,13 +33,6 @@ "homepage": "http://www.wp-pay.org/extensions/memberpress/", "devDependencies": { "@wordpress/env": "^5.2.0", - "grunt": "^1.3.0", - "grunt-contrib-jshint": "^3.0.0", - "grunt-phpcs": "^0.4.0", - "grunt-phplint": "0.1.0", - "grunt-phpmd": "^0.1.1", - "grunt-phpunit": "^0.3.6", - "load-grunt-tasks": "^5.1.0", "npm-run-all": "^4.1.5" }, "scripts": {