WP Manifestindependent plugin directory
manifest / developer / wp-extended-abilities

WP Extended Abilities

Extends core abilities to allow for further AI capabilities within WordPress

by jakeaky · github.com/jake-aky/wp-extended-abilities

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/jake-aky/wp-extended-abilities/archive/refs/heads/main.zip

Readme

WP Extended Abilities

Extends the core Abilities provided by WordPress such as Taxonomy manipulation.

Template Setup Guide

You can find the guide on how to use the template here:

Installation

Using Composer

When installing to your site, add the following to your composer.json file. This will ensure that installation will use the built version of the package, and allow it to be loaded using composer in the preferred path.

{
  "repositories": [
    {
      "type": "vcs",
      "url": "git@github.com:@jakeaky/wp-extended-abilities.git"
    }
  ],
  "require": {
    "@jakeaky/wp-extended-abilities": "dev-main-built"
  },
  "extra": {
    "installer-paths": {
      "plugins/{$name}/": [
        "type:wordpress-plugin"
      ]
    }
  }
}

For Development, or for Manual Installation

Clone the repository into your plugins (or client-mu-plugins, if a WP VIP site) directory.

git clone git@github.com:@jakeaky/wp-extended-abilities.git && cd wp-extended-abilities

Install JS packages.

npm install

Build all assets - additional commands can be found in the Build Tools documentation.

npm run build:dev

Install PHP packages.

composer install

Development

Install the plugin using the manual installation method described above.

Git Hooks

This plugin includes Husky for Git Hooks to maintain repository in accordance with Big Bite's engineering processes and standards.

commit-msg

The commit-msg hook checks commit messages for conformance with Big Bite's commit standards RFC.

pre-push

The pre-push hook runs the following commands:

  • composer compat
  • composer phpcs
  • composer phpstan
  • composer phpunit
  • npm run pre-push

CLI Commands

This plugin provides several CLI commands for development.

PHP Commands

Whilst this plugin does provide automatically-installed Git Hooks to run some tools automatically on a git push, to prevent the upstream branch from receiving non-conformant code, it is worth knowing the available commands before that point, so issues can be addressed during development (rather than after development, if relying upon the Git Hook, or Circle CI).

Command Description
composer compat Runs PHPCS for PHP cross-version compatibility.
composer phpcs Runs PHPCS using Big Bite's Coding Standards.
composer lint Alias for composer phpcs.
composer phpstan Runs PHPStan for static analysis.
composer analyse Alias for composer phpstan.
composer phpunit Runs the PHPUnit test suite.
composer test Alias for composer phpunit.

JavaScript Commands

Use these scripts to transpile source code or run unit tests. Documentation for build: and watch: scripts is available on the Big Bite Engineering site. Documentation for test: scripts is available on the Gutenberg GitHub repo.

Command Description
npm run build:dev Runs a development build of all assets once.
npm run build:prod Runs a production build of all assets once.
npm run watch:dev Runs a development build of all assets, watching for changes.
npm run watch:prod Runs a production build of all assets, watching for changes.
npm run test:unit Runs the unit test suite once.
npm run test:unit:help Outputs help and usage documentation for the unit test runner (Jest).
npm run test:unit:watch Runs the unit test suite, watching for changes.
npm run test:unit:debug Runs the unit test suite in debug mode.
npm run env Interacts with the wp-env Docker-based testing environment.
npm run test:e2e Runs the e2e test suite once.
npm run test:e2e:ui Runs the e2e test suite in interactive mode via the Playwright UI.
npm run test:e2e:help Prints all available options for configuring the e2e test runner.
npm run test:e2e:debug Runs the e2e test suite in debug mode via the Playwright UI.

Read the full README on GitHub →