Code Monkey home page Code Monkey logo

multiple-blocks-plugin's Introduction

Multiple blocks plugin

This is an implementation of the fantastic @wordpress/create-block package, with some restructuring to support multiple blocks in a single WordPress plugin.

I strongly recommend to read the official guide, the docs, and check out the article from it's creator Greg Ziółkowski.

Follow the tutorial

This project was built to support the tutorial found here - which uses the WordPress recommended way of creating a block plugin and teaches you how to add additional blocks should you need them.

If you prefer not to follow along, you can continue with the standard setup:

Installation

  1. Clone the project to your desired location

  2. Open the command line in the project folder and install the packages:

    npm install
  3. Grab a coffee

Usage

Run the scripts for the included buy-button block

npm run start:buy-button
npm run build:buy-button

Run the scripts for the included hero block

npm run start:hero
npm run build:hero

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

GPL2 or Later

multiple-blocks-plugin's People

Contributors

rmorse avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.