hiq-create-block
v1.0.4
Published
A block-template-creator for WP (Gutenberg) blocks
Downloads
1
Readme
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
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.