diff --git a/README.md b/README.md index a1508dd..623df23 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,12 @@ WordPress Feature flags plugin allow developers to configure features in plugins/themes behind the feature flags on both the server (PHP) and client (JS/TS) side. +## Installation + +`composer require codeb/wp-feature-flags` + +Packagist: https://packagist.org/packages/codeb/wp-feature-flags + ## Hooks ### PHP filters @@ -88,11 +94,11 @@ CSS ### PHP -- Run `./local` from your preferred CLI. Ensure you have Docker installed and running. -- The setup will automatically ssh into the container. -- To run unit tests `composer run test:unit` -- To run integrations tests `composer run test:integration` -- To run integrations tests as multisite `composer run test:multisite` +The WordPress unit and integration tests depends on `wp-env` setup. Ensure you run `yarn wp-env:coverage` before running the tests. + +- To run unit tests `yarn php:unit` +- To run integrations tests `yarn php:integration` +- To run integrations tests as multisite `yarn php:multisite` ### JS diff --git a/package.json b/package.json index 870faa0..d95b31b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "codeb-feature-flags", - "version": "0.3.1", + "version": "0.3.2", "description": "Allows developers to enable / disable features based on flags.", "license": "ISC", "author": "Mohan Raj ", @@ -60,5 +60,9 @@ "jest-environment-jsdom": "^29.7.0", "prettier": "^3.2.5" }, - "keywords": [] + "keywords": [ + "feature flags", + "wordpress", + "plugin" + ] } diff --git a/plugin.php b/plugin.php index 0beac5a..6b174a6 100644 --- a/plugin.php +++ b/plugin.php @@ -9,7 +9,7 @@ * Plugin Name: Feature Flags * Plugin URI: https://github.com/codebtech/wp-feature-flags * Description: Allows developers to enable / disable features based on flags. - * Version: 0.3.1 + * Version: 0.3.2 * Requires at least: 6.4 * Requires PHP: 8.1 * Author: Mohan Raj