1.0.4 • Published 8 months ago

hiq-create-block v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
8 months ago

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.
1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago