@blueion/wp-codegen
v1.0.5
Published
This project is based on [plop.js](https://plopjs.com/), a tool which makes it easy to create new files and templates.
Downloads
6
Readme
Blue Ion WP Code Generator
This project is based on plop.js, a tool which makes it easy to create new files and templates.
This particular project was built to avoid unnecessary boilerplate in new Wordpress projects, while also modeling correct accessibility roles and aria-attributes.
It has the potential to increase productivity and reduce accessibility errors.
- Uses the wp template parts system to generate the components.
- Assumes ACF sub-fields are available to each component.
- Has basic icon library for play/pause buttons (hopefully social icons soon).
Installation
Via global npm install:
npm install -g @blueion/wp-codegen
Usage
To see the available components (global install):
biwp
Via npx:
npx @blueion/wp-codegen
To create a new card
Make sure to run this command in your theme root, otherwise it may cause issues
Via global install:
biwp card
Via npx:
npx @blueion/wp-codegen card
Available components (in-progress)
- Card
- Hero
- FAQs
- Expander
- Card Grid
- Card Carousel
- Split Content/Image
- CTAs
- Modal (not done yet)
- Search (not done)
- Socials (not done)