woocommerce/plugins/woocommerce-blocks
Mike Jolley 093ec68061 Fix/extension data conflicts (https://github.com/woocommerce/woocommerce-blocks/pull/8354)
* Update __internalSetExtensionData to require namespaces

* Test coverage for __internalSetExtensionData

* Rename of select is no longer needed

* Update doc
2023-02-03 11:18:18 +00:00
..
.github Move notices to corresponding context (https://github.com/woocommerce/woocommerce-blocks/pull/8228) 2023-01-24 11:58:30 +07:00
.sources
.vscode
.wordpress-org
assets Fix/extension data conflicts (https://github.com/woocommerce/woocommerce-blocks/pull/8354) 2023-02-03 11:18:18 +00:00
bin Create Store Breadcrumbs Block (https://github.com/woocommerce/woocommerce-blocks/pull/8222) 2023-01-27 18:31:13 +01:00
docs Fix/extension data conflicts (https://github.com/woocommerce/woocommerce-blocks/pull/8354) 2023-02-03 11:18:18 +00:00
images
packages Expose cart errors as notices (https://github.com/woocommerce/woocommerce-blocks/pull/8162) 2023-01-19 16:40:52 +00:00
patches
patterns Product Button: Transition from using CSS margin to Global Styles (https://github.com/woocommerce/woocommerce-blocks/pull/8239) 2023-01-20 16:23:00 +01:00
src Sale Badge: Add support for text settings and margin (https://github.com/woocommerce/woocommerce-blocks/pull/8334) 2023-02-03 11:09:12 +01:00
storybook Expose cart errors as notices (https://github.com/woocommerce/woocommerce-blocks/pull/8162) 2023-01-19 16:40:52 +00:00
templates Make `Products by category/tag/attribute` fallback to the `Product catalog` template (https://github.com/woocommerce/woocommerce-blocks/pull/7712) 2022-11-24 16:45:39 +01:00
tests Fix `catalog sorting` and `checkout` tests (https://github.com/woocommerce/woocommerce-blocks/pull/8292) 2023-01-27 20:52:10 +01:00
.distignore
.editorconfig Update MD editor config (https://github.com/woocommerce/woocommerce-blocks/pull/7968) 2022-12-19 12:06:48 +00:00
.env
.eslintignore Disable ESLint for the interactivity package (https://github.com/woocommerce/woocommerce-blocks/pull/8301) 2023-01-26 14:13:53 +01:00
.eslintrc.js
.gitattributes
.gitignore
.markdownlint.json
.markdownlintignore
.nvmrc
.prettierignore
.prettierrc.js
.stylelintrc.json
.wp-env.json
LICENSE
README.md Fix "Writing Your First Block Type" tutorial link in docs (https://github.com/woocommerce/woocommerce-blocks/pull/8231) 2023-01-18 21:04:20 +04:00
babel.config.js
checkstyle.xml Remove old cart notices before showing new ones (https://github.com/woocommerce/woocommerce-blocks/pull/7363) 2023-01-12 04:44:26 -08:00
composer.json
composer.lock Bump automattic/jetpack-autoloader from 2.11.12 to 2.11.14 (https://github.com/woocommerce/woocommerce-blocks/pull/8036) 2023-01-04 17:52:55 -03:00
docker-compose.yml
global.d.ts
package-lock.json Bump version to 9.6.0-dev 2023-02-01 16:33:27 +01:00
package.json Bump version to 9.6.0-dev 2023-02-01 16:33:27 +01:00
phpcs.xml Release: 9.5.0 (https://github.com/woocommerce/woocommerce-blocks/pull/8330) 2023-02-01 16:24:50 +01:00
phpunit.xml.dist
postcss.config.js
readme.txt Bump version to 9.6.0-dev 2023-02-01 16:33:27 +01:00
tsconfig.base.json Add the Interactivity API runtime to WooCommerce blocks (https://github.com/woocommerce/woocommerce-blocks/pull/8220) 2023-01-26 12:39:25 +01:00
tsconfig.json Include the types of Jest customer matchers for unit tests 2022-12-30 16:36:37 +01:00
webpack.config.js Add the Interactivity API runtime to WooCommerce blocks (https://github.com/woocommerce/woocommerce-blocks/pull/8220) 2023-01-26 12:39:25 +01:00
woocommerce-gutenberg-products-block.php Bump version to 9.6.0-dev 2023-02-01 16:33:27 +01:00

README.md

WooCommerce Blocks

Latest Tag View JavaScript and CSS Linting PHP Coding Standards Automated tests

This is the feature plugin for WooCommerce + Gutenberg. This plugin serves as a space to iterate and explore new Blocks and updates to existing blocks for WooCommerce, and how WooCommerce might work with the block editor.

Use this plugin if you want access to the bleeding edge of available blocks for WooCommerce. However, stable blocks are bundled into WooCommerce, and can be added from the "WooCommerce" section in the block inserter.

Table of Contents

Documentation

To find out more about the blocks and how to use them, check out the documentation on WooCommerce.com.

If you want to see what we're working on for future versions, or want to help out, read on.

Code Documentation

  • Blocks - Documentation for specific Blocks.
  • Editor Components - Shared components used in WooCommerce blocks for the editor (Gutenberg) UI.
  • WooCommerce Blocks Handbook - Documentation for designers and developers on how to extend or contribute to blocks, and how internal developers should handle new releases.
  • WooCommerce Blocks Storybook - Contains a list and demo of components used in the plugin.

Installing the plugin version

We release a new version of WooCommerce Blocks onto WordPress.org every few weeks, which can be used as an easier way to preview the features.

Note: The plugin follows a policy of supporting the "L0" strategy for version support. What this means is that the plugin will require the most recent version of WordPress, and the most recent version of WooCommerce core at the time of a release. You can read more about this policy here.

  1. Make sure you have the latest available versions of WordPress and WooCommerce on your site.
  2. The plugin version is available on WordPress.org. Download the plugin version here.
  3. Activate the plugin.

Installing the development version

  1. Make sure you have the latest versions of WordPress and WooCommerce on your site.
  2. Get a copy of this plugin using the green "Clone or download" button on the right.
  3. Make sure you're using Node.js v16.
  4. npm install to install the dependencies.
  5. composer install to install core dependencies.
  6. To compile the code, run any of the following commands
    1. npm run build (production build).
    2. npm run dev (development build).
    3. npm start (development build + watching for changes).
  7. Activate the plugin.

The source code is in the assets/ folder and the compiled code is built into build/.

Getting started with block development

Run through the "Writing Your First Block Type" tutorial for a quick course in block-building.

For deeper dive, try looking at the core blocks code, or see what components are available.

To begin contributing to the WooCommerce Blocks plugin, see our getting started guide and developer handbook.

Other useful docs to explore:

Long-term vision

WooCommerce Blocks are the easiest, most flexible way to build your store user interface and showcase your products.