All Projects → Gmulti → skeleton-plugin-blocks-gutenberg

Gmulti / skeleton-plugin-blocks-gutenberg

Licence: other
No description or website provided.

Programming Languages

PHP
23972 projects - #3 most used programming language
javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to skeleton-plugin-blocks-gutenberg

jarvis
A speedy Gutenberg ready theme
Stars: ✭ 50 (+233.33%)
Mutual labels:  gutenberg
block-options
EditorsKit — a toolkit for the Gutenberg block editor.
Stars: ✭ 248 (+1553.33%)
Mutual labels:  gutenberg
editor-blocks
A unique collection of Gutenberg blocks for the new WordPress editor.
Stars: ✭ 28 (+86.67%)
Mutual labels:  gutenberg
wp-block-description-list
A wordpress gutenberg block plugin for description lists.
Stars: ✭ 17 (+13.33%)
Mutual labels:  gutenberg
qubely
Qubely Blocks – Full-fledged Gutenberg Toolkit
Stars: ✭ 76 (+406.67%)
Mutual labels:  gutenberg
getwid-style-kit
This boilerplate is designed for WordPress theme developers who are interested in developing themes with the new WordPress 5.x Block Editor - Gutenberg.
Stars: ✭ 33 (+120%)
Mutual labels:  gutenberg
tei2html
XSLT stylesheets to convert TEI to HTML and ePub format.
Stars: ✭ 29 (+93.33%)
Mutual labels:  gutenberg
Gutenberg
The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
Stars: ✭ 7,409 (+49293.33%)
Mutual labels:  gutenberg
visual-portfolio
Portfolio layouts visual editor with Gutenberg support
Stars: ✭ 31 (+106.67%)
Mutual labels:  gutenberg
graphql-gutenblock-example
Example Gutenberg Block using WPGraphQL to populate the data
Stars: ✭ 17 (+13.33%)
Mutual labels:  gutenberg
block-loader
Automatic WordPress Gutenberg block loader based on template files
Stars: ✭ 21 (+40%)
Mutual labels:  gutenberg
averroes
A Gutenberg compatible markdown editor. Write in Markdown, edit in Markdown and preview in HTML.
Stars: ✭ 15 (+0%)
Mutual labels:  gutenberg
gutenberg-metadata
Metadata from Project Gutenberg
Stars: ✭ 24 (+60%)
Mutual labels:  gutenberg
Gutenberg
Gutenberg for October CMS
Stars: ✭ 52 (+246.67%)
Mutual labels:  gutenberg
gutenberg-i18n-block
Gutenberg block to demo internationalization functionality.
Stars: ✭ 35 (+133.33%)
Mutual labels:  gutenberg
block-navigation
Sidebar with the current post blocks and some tools to facilitate the editing process in the Gutenberg editor.
Stars: ✭ 16 (+6.67%)
Mutual labels:  gutenberg
eightshift-docs
A documentation website for Eightshift open source projects
Stars: ✭ 44 (+193.33%)
Mutual labels:  gutenberg
StrapPress
Bootstrap 4 WordPress Starter Theme that is Gutenberg Compatible
Stars: ✭ 55 (+266.67%)
Mutual labels:  gutenberg
Create Guten Block
📦 A zero-configuration #0CJS developer toolkit for building WordPress Gutenberg block plugins.
Stars: ✭ 3,040 (+20166.67%)
Mutual labels:  gutenberg
ultimate-addons-for-gutenberg
Power-up the Gutenberg editor with advanced and powerful blocks that help you build websites in minutes!
Stars: ✭ 166 (+1006.67%)
Mutual labels:  gutenberg

Skeleton plugin blocks Gutenberg

Contribution

Getting started 🚀

Install skeleton-plugin-blocks-gutenberg

cd wp-content/plugins
git clone https://github.com/Gmulti/skeleton-plugin-blocks-gutenberg.git

Warning: The public and vendor folders do not exist if you do not prepare the plugin.

Prepare your plugin.

cd wp-content/plugins/skeleton-plugin-blocks-gutenberg
php scripts/prepare-plugin.php -n "Plugin Name"

You do not want to use this script?

Use :

  • composer update (create vendor directory)
  • npm install or yarn (install node_modules)
  • brunch w (compile files and create public directory)

Plugin architecture

This is a non-exhaustive representation of the plugin folder architecture with the essential parts:

skeleton-plugin-blocks-gutenberg
├── readme.txt
├── plugin.php
├── node_modules
├── config
├── package.json
├── composer.json
├── .gitignore
├── .brunch-config.json
└── app
    └── javascripts
        └── blocks
            └── documentation
                └── components
                    └── CustomBlock
                        └── index.spec.js
                        └── index.js
                └── index.js
            └── hello
                └── index.js
                └── index.scss
            └── index.js
        └── index.js
└── languages
└── scripts
    └── deploy.php
    └── prepare-plugin.php
    └── test.js
└── src
    └── PluginReplaceEnqueue.php

What is the purpose of this project

Kickstart your next WordPress plugin featuring Gutenberg blocks

This projects comes with:

  • ready-to-use Brunch Js
  • a PHP script to prepare your plugin package
  • CSS Modules
  • ES7 + Decorators
  • Jest setup for unit testing
  • Composer for classes autoloading
  • 2 Gutenberg example blocks

PHP Scripts

Warning: these scripts usent the global version of yarn. If you don't already have it, type: npm install -g yarn in your CLI

php scripts/prepare-plugin.php

This script is used to prepare your plugin. It will work only once. You'll need to specify your plugin name.

php scripts/prepare-plugin.php -n "Plugin Name"

-n : Your plugin name. The script automatically setup the rest

php scripts/deploy.php

Use this script to prepare your plugin package. You need to specify the plugin version.

php scripts/deploy.php -v 1.0.0

-v : Plugin version

Compile files

This project uses Brunch JS You can use whatever feature offered by Brunch JS in your project.

To install Brunch JS in global : npm install -g brunch

brunch watch

This command build the project and listen to files changes. You can also use the brunch w shorthand

brunch build

This command build the project You can also use brunch b

brunch build --production

This command build the project in production mode. CSS and JS will be minified and everything will be production ready. You can also use brunch b --production

Create a block

You need to work in the app/javascripts/blocks folder

Create a folder containing your block code.

In app/javascripts/blocks/index.js, you'll need to import your new block

import Hello from "./hello"
import Documentation from "./documentation"
import MyBlock from "./myblock" // Your new block

export default {
    Hello,
    Documentation,
    MyBlock
}

Running tests

Filename Conventions Jest will look for test files with any of the following popular naming conventions:

Files with .js suffix in tests folders. Files with .spec.js suffix. The .spec.js files (or the tests folders) can be located at any depth under the app top level folder.

npm run test

Decorators

You can see a decorator @readonly example in: app/javascripts/blocks/documentation/components/CustomBlock/index.js It prevent the cantChange var changes You can test with the Documentation block

License

MIT © Thomas Deneulin

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].