woocommerce/plugins/woocommerce
Chi-Hsuan Huang 1ca93287ca
[CYS] Fix Spotlight Tour caret is not centered vertically (#41154)
* Fix CYS Spotlight Tour caret is not centered vertically

* Add changelog
2023-11-01 16:54:53 +08:00
..
.wordpress-org
assets add: feature flag for customize your store task (#39397) 2023-08-01 20:28:39 +08:00
bin Revert changes to unrelated composer.lock files 2023-10-25 17:30:48 +02:00
changelog [CYS] Fix Spotlight Tour caret is not centered vertically (#41154) 2023-11-01 16:54:53 +08:00
client Create product-external-affiliate feature flag (#40910) 2023-10-23 09:34:24 -04:00
i18n Remove "soberano" from the VES currency name (Venezuelan bolívar) (#40424) 2023-09-28 10:37:08 +02:00
includes Add filters to Variation table (#40978) 2023-10-31 13:29:48 -04:00
lib Run composer update 2023-09-08 18:05:47 -04:00
packages
sample-data Remove id column from experimental product import sample files (#36857) 2023-02-17 14:11:43 -08:00
src Render site thumbnail in CYS intro screen (#41130) 2023-11-01 00:11:26 +08:00
templates Escape the default "Thank you" text instead of the filtered message (#40353) 2023-09-25 14:41:45 +02:00
tests Fix legacy order data PHP 8 compatibility issue (#41094) 2023-10-31 00:07:44 +01:00
.distignore Allow changelog in build zip (#40133) 2023-09-13 09:12:51 -05:00
.eslintignore
.eslintrc.js
.gitattributes Enforce LF Line Endings (#37843) 2023-04-19 08:26:19 -07:00
.gitignore Revert the .gitignore change 2023-02-17 16:48:56 +01:00
.wp-env.json Add basic e2e setup and tests for the Assembler Hub (#40235) 2023-09-20 15:59:06 +12:00
NEXT_CHANGELOG.md
README.md Remove latest stable version from README (#35056) 2022-10-14 15:22:27 -05:00
composer.json Update WooCommerce Blocks to 11.4.3 (#41134) 2023-10-31 17:21:57 +01:00
composer.lock Update WooCommerce Blocks to 11.4.3 (#41134) 2023-10-31 17:21:57 +01:00
license.txt
package.json Expand CI WooCommerce Matrix (#40882) 2023-10-19 11:55:37 -07:00
phpcs.xml Remove linting exceptions for WC Admin code. (#41016) 2023-10-26 12:42:49 +02:00
phpunit.xml Autoload test helpers and exclude from test suites. (#39586) 2023-08-09 15:48:04 -03:00
readme.txt Prep trunk for 8.4 cycle (#41009) 2023-10-25 19:11:06 -05:00
tsconfig.json
uninstall.php Prevent fatal errors during uninstall (#34469) 2022-09-14 08:44:01 -07:00
woocommerce.php Prep trunk for 8.4 cycle (#41009) 2023-10-25 19:11:06 -05: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 run --filter=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 CSS and jQuery code for WooCommerce.

# Build the assets.
pnpm run --filter=woocommerce/client/legacy build 
# Lint the assets.
pnpm run --filter=woocommerce/client/legacy lint 

plugins/woocommerce-admin

This directory contains the React-based admin interface.

# Build the React-based admin client.
pnpm run --filter=woocommerce/client/admin build 
# Lint the React-based admin client.
pnpm run --filter=woocommerce/client/admin lint 
# Test the React-based admin client.
pnpm run --filter=woocommerce/client/admin 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/client/admin dev 
# Create and watch a development build of the React-based admin client.
pnpm --filter=woocommerce/client/admin start 
# Watch the tests of the React-based admin client.
pnpm --filter=woocommerce/client/admin test:watch 
# Run a type check over the React-based admin client's TypeScript files.
pnpm --filter=woocommerce/client/admin ts:check 

Documentation

Reporting Security Issues

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