Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/hizzle-co/hizzle/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
HizzleWP Monorepo
A monorepo containing shared packages for WordPress plugin development.
Packages
Check out the packages the directory for information on each package and how to create/use them.
Development Setup
- Clone the repository:
git clone https://github.com/hizzle-co/hizzle.git
cd hizzle
- Install dependencies:
npm install
- Start development watcher:
npm run dev
- Build all packages:
npm run build
Usage in WordPress Plugins
- Install the HizzleWP package:
composer require hizzle/wp
- Install the required npm packages:
npm install @hizzlewp/components
npm install --save-dev @hizzlewp/dependency-extraction-webpack-plugin
- Configure your webpack build to use the dependency extraction plugin:
const HizzleWPDependencyExtractionPlugin = require('@hizzlewp/dependency-extraction-webpack-plugin');
module.exports = {
// ... other webpack config
plugins: [new HizzleWPDependencyExtractionPlugin()],
};
- Import components in your code:
import { Setting } from '@hizzlewp/components';
The imports will be automatically transformed to use the global window.hizzlewp object at runtime.
License
GPL-2.0-or-later
Release (to npm and composer)
npm run release release_type=minor
type accepts: major, minor, patch, premajor, preminor, prepatch, prerelease
This will:
- Build the packages
- Update the composer.json file with the new version
- Update the npm package version
- Generate the docs
- Commit and push the changes
- Create a new release on GitHub
- Release changed packages to npm
- Update the changelogs
- Update the composer package
NOTE:-
- You must have the GitHub CLI installed.
- You must be authenticated with sufficient permissions.