A cli interface to create wordpress blocks for gutenberg editor.
Created by: Anton Evald, HiQ Mälardalen.
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.
To create blocks using vue it is required to install @vue/cli
before.
Install it with:
$ npm install -g @vue/cli
This package should be installed globally.
Using npm:
$ npm install -g hiq-create-block
$ hiq-create-block
-
-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.