woocommerce/plugins/woocommerce
Adrian Moldovan 85e7bb0a0c
[e2e tests] Ignore Playwright focused tests in CI (#50643)
2024-08-19 13:09:21 +02:00
..
.wordpress-org
assets Optimize large image files (#50517) 2024-08-14 12:29:03 +08:00
bin blueprint - add php package and cli commands (#49763) 2024-08-12 16:33:05 -07:00
changelog [e2e tests] Ignore Playwright focused tests in CI (#50643) 2024-08-19 13:09:21 +02:00
client Update product data meta box checkboxes UI (#50619) 2024-08-16 16:18:03 +08:00
i18n Update symbol and formatting of the XPF currency (#46960) 2024-05-15 04:50:55 +07:00
includes Logout confirmation notice missing due to global (#50720) 2024-08-16 12:18:23 +01:00
lib Re-add "mobiledetect/mobiledetectlib" library 2023-11-27 18:59:10 +01:00
packages Update Woo.com references to WooCommerce.com (#46259) 2024-04-09 09:50:15 +01:00
patterns Customer Account - Maintain the size of the icon in smaller screens (#50410) 2024-08-07 17:45:16 +02:00
sample-data Update @woo.com email addresses to @woocommerce.com (#46387) 2024-04-19 21:11:01 +00:00
src Prevent fatal error if NULL is provided in array_search under Jetpack Stats (#50696) 2024-08-16 13:53:01 +02:00
templates [Accessibility] Add scope attribute to the product attributes table (#49768) 2024-08-16 11:04:02 +02:00
tests [e2e tests] Ignore Playwright focused tests in CI (#50643) 2024-08-19 13:09:21 +02:00
.distignore Try reducing blocks build size (#43344) 2024-01-08 11:33:49 -06:00
.eslintignore Add JS lint scripts for woocommerce plugin (#46214) 2024-04-12 07:30:17 +03:00
.eslintrc.js Add JS lint scripts for woocommerce plugin (#46214) 2024-04-12 07:30:17 +03:00
.gitattributes
.gitignore Fixed Blocks INI File Path 2023-12-09 21:33:34 -08:00
.phpunit-watcher.yml Add php unit watcher and update unit test docs (#44681) 2024-02-19 16:40:29 +08:00
.wp-env.json wp-env: Update package dependency + add mysqlPort (#50568) 2024-08-12 12:56:49 -07:00
NEXT_CHANGELOG.md
README.md Update Woo.com references to WooCommerce.com (#46259) 2024-04-09 09:50:15 +01:00
composer.json blueprint - add php package and cli commands (#49763) 2024-08-12 16:33:05 -07:00
composer.lock blueprint - add php package and cli commands (#49763) 2024-08-12 16:33:05 -07:00
license.txt
package.json Fix Metrics job (#50482) 2024-08-13 11:31:39 +02:00
phpcs.xml Monorepo: PSR-4 classes naming and Strict types directive rules for CodeSniffer. (#49438) 2024-08-06 14:56:23 -07:00
phpunit.xml CI: re-introduce sharding in PHPUnit jobs (#50084) 2024-07-31 12:58:15 +02:00
readme.txt Update stable tag to 9.1.4 (#50037) 2024-07-26 19:15:52 +01:00
tsconfig.json
uninstall.php
woocommerce.php Prep trunk for 9.3 cycle (#49962) 2024-07-25 18:16:31 +00:00

README.md

WooCommerce

License WordPress.org downloads WordPress.org rating Build Status codecov

This is the WooCommerce Core plugin. Here you can browse the source and keep track of development. We recommend all developers to follow the WooCommerce development blog to stay up to date about everything happening in the project. You can also follow @DevelopWC on Twitter for the latest development updates.

If you are not a developer, please use the WooCommerce plugin page on WordPress.org.

Getting Started

Please make sure you follow the repository's getting started guide first!

# Make sure that WooCommerce Core and all of its dependencies are built
pnpm --filter=@woocommerce/plugin-woocommerce build 
# Make sure you're in the WooCommerce Core directory
cd plugins/woocommerce
# Start the development environment
pnpm -- wp-env start

You should now be able to visit http://localhost:8888/ and access WooCommerce environment.

Building Components

There are two major client-side components included in WooCommerce Core that can be built, linted, and tested independently. We've organized these components in this way to take advantage of caching to prevent unnecessarily performing expensive rebuilds when only working in one of them.

plugins/woocommerce/client/legacy

This directory contains the Classic CSS and jQuery code for WooCommerce.

# Build the assets.
pnpm --filter=@woocommerce/classic-assets build 
# Lint the assets.
pnpm --filter=@woocommerce/classic-assets lint 

plugins/woocommerce-admin

This directory contains the React-based admin interface.

# Build the React-based admin client.
pnpm --filter=@woocommerce/admin-library build 
# Lint the React-based admin client.
pnpm --filter=@woocommerce/admin-library lint 
# Test the React-based admin client.
pnpm --filter=@woocommerce/admin-library test 

plugins/woocommerce-blocks

This directory contains the client for WooCommerce + Gutenberg.

# Build the Blocks client.
pnpm run --filter=@woocommerce/block-library build 
# Lint the Blocks client.
pnpm run --filter=@woocommerce/block-library lint 
# Test the Blocks client.
pnpm run --filter=@woocommerce/block-library test 

Helper Scripts

Here is a collection of scripts that can help when developing the React-based admin interface.

# Create a develoment build of the React-based admin client.
pnpm --filter=@woocommerce/admin-library dev 
# Create and watch a development build of the React-based admin client.
pnpm --filter=@woocommerce/admin-library start 
# Watch the tests of the React-based admin client.
pnpm --filter=@woocommerce/admin-library test:watch 
# Run a type check over the React-based admin client's TypeScript files.
pnpm --filter=@woocommerce/admin-library ts:check 

Documentation

Reporting Security Issues

To disclose a security issue to our team, please submit a report via HackerOne here.