项目作者: WebDevStudios

项目描述 :
A library of Gutenberg blocks.
高级语言: JavaScript
项目地址: git://github.com/WebDevStudios/wds-blocks.git
创建时间: 2018-01-19T15:15:04Z
项目社区:https://github.com/WebDevStudios/wds-blocks

开源协议:

下载


WDS Blocks

WebDevStudios library of Gutenberg blocks.

WebDevStudios. Your Success is Our Mission.

Current blocks

  • Accordion
  • Carousel

Table of Contents


Use as WordPress Plugin

  1. Download WDS Blocks
  2. Extract wds-blocks-main.zip into your project’s /plugins directory
  3. Activate the plugin in the WordPress Dashboard

Plugin Development

If you’re interested in using WDS Blocks to get started building your own blocks, follow the instructions below:

Requirements

Install

Clone the repo with Git:

  1. git clone git@github.com:WebDevStudios/wds-blocks.git

Install dependencies:

  1. npm i --legacy-peer-deps
  1. composer install

Development

WDS Blocks using @wordpress/scripts to handle compiling assets and watching for changes.

See the Official Gutenberg Developer Documentation for extensive tutorials, documentation, and API references.

NPM Scripts

Use the following commands to get started:

Watch for changes:

  1. npm start

Build a production version of WDS Blocks:

  1. npm run build

Linting

Lint the codebase:

  1. npm run lint

Format the codebase with Prettier:

  1. npm run format

Webpack Config (optional)

The optional webpack.config.js file includes the @wordpress/scripts defaults, along with an entry path for /src/frontend.js. The frontend entry path is conditionally included and is not a requirement. It can be safely deleted.


Contributing and Support

Your contributions and support tickets are welcome. Please see our guidelines before submitting a pull request.