hiq-create-block

1.0.4 • Public • Published

HiQ Create WP Block

A cli interface to create wordpress blocks for gutenberg editor.

Created by: Anton Evald, HiQ Mälardalen.

Description

This CLI was made in order to easier create blocks using the same setup. When run it creats a block using the following structure:

  • template.php - This is the template for the block.
  • fields.php - This is the settings for the block. Uses ACF Builder.
  • app/ - If using vue this is the vue installation.

ToC

  1. Prerequisites
  2. Installing
  3. Commands
    1. Options

Prerequisites

To create blocks using vue it is required to install @vue/cli before.

Install it with:

$ npm install -g @vue/cli

Installing

This package should be installed globally.

Using npm:

$ npm install -g hiq-create-block

Commands

$ hiq-create-block

Options

  • -V or --version => Outputs the version number
  • --vue => Creats a block using vue
  • --vuex => Creats a block using vue and vuex
  • --react => Creats a block using react
  • -h => Get a printout of available commands.

Readme

Keywords

Package Sidebar

Install

npm i hiq-create-block

Weekly Downloads

0

Version

1.0.4

License

ISC

Unpacked Size

33.6 kB

Total Files

35

Last publish

Collaborators

  • antonevaldhiq