1.0.5 • Published 9 months ago

@blueion/wp-codegen v1.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
9 months ago

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)
1.0.5

9 months ago

1.0.4

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago