woocommerce/plugins/woocommerce-admin
Joshua T Flowers 16e7c8cd55 Add free extensions data store (https://github.com/woocommerce/woocommerce-admin/pull/7420)
* Add free extensions to onboarding data store

* Hook up extensions list to onboarding data store
2021-08-02 17:12:29 -04:00
..
.github use Jetpack Changelogger for changelog management (https://github.com/woocommerce/woocommerce-admin/pull/6870) 2021-07-08 19:03:51 -07:00
bin Allow packages to be built in isolation. (https://github.com/woocommerce/woocommerce-admin/pull/7286) 2021-07-14 16:38:57 -04:00
changelogs Separate installed plugins from plugin lists (https://github.com/woocommerce/woocommerce-admin/pull/7419) 2021-08-02 16:42:59 -04:00
client Add free extensions data store (https://github.com/woocommerce/woocommerce-admin/pull/7420) 2021-08-02 17:12:29 -04:00
config Remove unused WC Pay feature flags (https://github.com/woocommerce/woocommerce-admin/pull/7273) 2021-07-06 10:15:18 +12:00
docker Update docker test suite readme (https://github.com/woocommerce/woocommerce-admin/pull/6783) 2021-04-12 17:04:06 -03:00
docs Fix Google Analytics tracking for static docs site. (https://github.com/woocommerce/woocommerce-admin/pull/7439) 2021-07-30 15:25:59 +12:00
images Add PayU to default payment gateway suggestions (https://github.com/woocommerce/woocommerce-admin/pull/7279) 2021-07-05 17:40:48 -04:00
includes Fix use of feature checks and remove deprecated method calls (https://github.com/woocommerce/woocommerce-admin/pull/6687) 2021-03-26 13:00:05 -04:00
languages Master -> main. (https://github.com/woocommerce/woocommerce-admin/pull/4618) 2020-06-17 13:39:41 -04:00
packages Add free extensions data store (https://github.com/woocommerce/woocommerce-admin/pull/7420) 2021-08-02 17:12:29 -04:00
src Add additional countries to WCPay for business features and payment task fallback (https://github.com/woocommerce/woocommerce-admin/pull/7436) 2021-08-02 14:21:44 +08:00
storybook Allow packages to be built in isolation. (https://github.com/woocommerce/woocommerce-admin/pull/7286) 2021-07-14 16:38:57 -04:00
tests Attempt to fix broken test in PHP 7 + WC latest + Composer 1.10.19 (https://github.com/woocommerce/woocommerce-admin/pull/7404) 2021-07-22 15:09:57 -07:00
typings Fix some minor inbox panel issues, left over from re-factor (https://github.com/woocommerce/woocommerce-admin/pull/7125) 2021-06-09 16:38:22 -03:00
.browserslistrc
.distignore Create E2E package (https://github.com/woocommerce/woocommerce-admin/pull/7084) 2021-07-13 16:38:05 -03:00
.editorconfig Remove Trailing Whitespace in `readme.txt` (https://github.com/woocommerce/woocommerce-admin/pull/6940) 2021-05-11 13:41:45 +08:00
.eslintignore Add initial end to end test suite (https://github.com/woocommerce/woocommerce-admin/pull/5028) 2020-09-04 14:31:09 +12:00
.eslintrc.js Add eslint rule to prevent missing createElement imports. (https://github.com/woocommerce/woocommerce-admin/pull/7424) 2021-07-27 08:53:03 -06:00
.gitattributes Update Paths to Exclude from Composer (https://github.com/woocommerce/woocommerce-admin/pull/6642) 2021-04-09 07:50:59 +08:00
.gitignore Allow packages to be built in isolation. (https://github.com/woocommerce/woocommerce-admin/pull/7286) 2021-07-14 16:38:57 -04:00
.nvmrc
.prettierrc.js Update @wordpress/eslint-plugin dependency to latest version. (https://github.com/woocommerce/woocommerce-admin/pull/5856) 2021-01-26 13:24:28 +13:00
.stylelintignore CSS Linting: Exclude Storybook CSS (https://github.com/woocommerce/woocommerce-admin/pull/6785) 2021-04-13 10:03:44 +12:00
.stylelintrc.json
.wp-env.json Add docker setup using WP-ENV (https://github.com/woocommerce/woocommerce-admin/pull/6448) 2021-03-02 13:13:21 -08:00
CONTRIBUTING.md Update changelog info in the contributing doc (https://github.com/woocommerce/woocommerce-admin/pull/7400) 2021-07-23 09:42:12 -03:00
Gruntfile.js
LICENSE.md
README.md Publish storybook docs, remove react docgen based docs (https://github.com/woocommerce/woocommerce-admin/pull/7055) 2021-06-02 15:54:00 +12:00
SECURITY.md Add a security doc based on other woocommerce repos (https://github.com/woocommerce/woocommerce-admin/pull/6931) 2021-05-06 09:20:41 +12:00
TESTING-INSTRUCTIONS.md Match stock status value in CSV download to the table (https://github.com/woocommerce/woocommerce-admin/pull/7284) 2021-07-27 13:11:16 -07:00
babel.config.js Add Typescript and page objects to E2E suite (https://github.com/woocommerce/woocommerce-admin/pull/6582) 2021-03-17 16:22:09 -03:00
changelog.txt Changelogs: Add 2.5.0 (https://github.com/woocommerce/woocommerce-admin/pull/7320) 2021-07-15 14:12:21 +12:00
chunk-src-version-param.js Remove dynamic content hash from chunk names. (https://github.com/woocommerce/woocommerce-admin/pull/5229) 2020-10-06 08:58:15 -04:00
composer.json bump version to 2.6.0-dev (https://github.com/woocommerce/woocommerce-admin/pull/7440) 2021-07-29 18:34:44 -03:00
composer.lock use Jetpack Changelogger for changelog management (https://github.com/woocommerce/woocommerce-admin/pull/6870) 2021-07-08 19:03:51 -07:00
docker-compose.yaml Add initial end to end test suite (https://github.com/woocommerce/woocommerce-admin/pull/5028) 2020-09-04 14:31:09 +12:00
lerna.json
license.txt
lint-staged.config.js Allow packages to be built in isolation. (https://github.com/woocommerce/woocommerce-admin/pull/7286) 2021-07-14 16:38:57 -04:00
package-lock.json bump version to 2.6.0-dev (https://github.com/woocommerce/woocommerce-admin/pull/7440) 2021-07-29 18:34:44 -03:00
package.json bump version to 2.6.0-dev (https://github.com/woocommerce/woocommerce-admin/pull/7440) 2021-07-29 18:34:44 -03:00
phpcs.xml.dist Bump PHP test version to 7.0 in PHPCS config (https://github.com/woocommerce/woocommerce-admin/pull/6706) 2021-03-31 07:42:56 +08:00
phpunit.xml.dist
readme.txt bump version to 2.6.0-dev (https://github.com/woocommerce/woocommerce-admin/pull/7440) 2021-07-29 18:34:44 -03:00
renovate.json Adjust renovate to automerge devDependencies. (https://github.com/woocommerce/woocommerce-admin/pull/4979) 2020-08-14 13:11:09 +12:00
tsconfig.json Fix TSC config and package build script. (https://github.com/woocommerce/woocommerce-admin/pull/7361) 2021-07-15 10:38:34 -04:00
uninstall.php Fix usage of "package" tag in file headers (https://github.com/woocommerce/woocommerce-admin/pull/4940) 2020-08-11 16:18:47 -03:00
unminify.js
webpack.config.js Allow packages to be built in isolation. (https://github.com/woocommerce/woocommerce-admin/pull/7286) 2021-07-14 16:38:57 -04:00
woocommerce-admin.php bump version to 2.6.0-dev (https://github.com/woocommerce/woocommerce-admin/pull/7440) 2021-07-29 18:34:44 -03:00

README.md

WooCommerce Admin

This is a feature plugin for a modern, javascript-driven WooCommerce Admin experience.

Prerequisites

WordPress 5.4 or greater and WooCommerce 4.8.0 or greater should be installed prior to activating the WooCommerce Admin feature plugin.

For better debugging, it's also recommended you add define( 'SCRIPT_DEBUG', true ); to your wp-config. This will load the unminified version of all libraries, and specifically the development build of React.

Development

After cloning the repo, install dependencies:

  • npm install to install JavaScript dependencies.
  • composer install to gather PHP dependencies.

Now you can build the files using one of these commands:

  • npm run build : Build a production version
  • npm run dev : Build a development version
  • npm start : Build a development version, watch files for changes
  • npm run build:release : Build a WordPress plugin ZIP file (woocommerce-admin.zip will be created in the repository root)
  • DRY_RUN=1 npm run build:release : Builds a Wordpress plugin ZIP without pushing it to Github and creating a release.

For more helper scripts see here

For some debugging tools/help see here

For local development setup using Docker see here

Testing

End-to-end tests

Tests live in ./tests/e2e. An existing build is required prior running, please refer to the section above for steps. E2E tests use the @woocommerce/e2e-environment package which hosts a Docker container for testing, by default the container can be accessed at http://localhost:8084

All the commands from @woocommerce/e2e-environment can be run through npx.

# Set up the e2e environment
npm i
npx wc-e2e docker:up

Run tests using:

npx wc-e2e test:e2e-dev

or in headless mode:

npx wc-e2e test:e2e

Run a single test by adding the path to the file name:

npx wc-e2e test:e2e-dev tests/e2e/specs/activate-and-setup/complete-onboarding-wizard.test.ts

Documentation

There is documentation in 2 forms available in the repo. A static set of documentation supported by docsify and also a Storybook containing component documentation for @woocommerce/components.

To view the docsify docs locally you can do:

npm install
cd docs
npx docsify serve

When deployed the docsify docs also host an embedded version of the storybook docs. To generate that and test it locally in docsify you'll need to run:

npm install
npm run docs
cd docs
npx docsify serve

Then navigate to Components from the left hand menu in the docs.

If you would like to view the storybook docs hosted standalone, then you can run:

npm install
npm run storybook

Common Issues

If you're encountering any issue setting things up, chances are we have been there too. Please have a look at our wiki for a list of common problems.

Privacy

If you have enabled WooCommerce usage tracking ( option woocommerce_allow_tracking ) then, in addition to the tracking described in https://woocommerce.com/usage-tracking/, this plugin also sends information about the actions that site administrators perform to Automattic - see https://automattic.com/privacy/#information-we-collect-automatically for more information.

Contributing

There are many ways to contribute reporting bugs, adding translations, feature suggestions and fixing bugs. For full details, please see CONTRIBUTING.md