woocommerce/plugins/woocommerce-admin
Moon 350ffe3f32 Update insight inbox message and add no option (https://github.com/woocommerce/woocommerce-admin/pull/6555)
* Update insight inbox message and add no option

* Add changelog.
2021-03-17 02:14:47 -07:00
..
.github Fix CI issues (https://github.com/woocommerce/woocommerce-admin/pull/6576) 2021-03-12 14:14:35 +13:00
bin Hook Reference: Automate a reference resource (https://github.com/woocommerce/woocommerce-admin/pull/6454) 2021-03-17 13:27:26 +13:00
client Improve WC Shipping & Tax logic (https://github.com/woocommerce/woocommerce-admin/pull/6547) 2021-03-17 01:22:33 -07:00
config Update/6487 target audience of business feature step (https://github.com/woocommerce/woocommerce-admin/pull/6508) 2021-03-08 10:23:39 -04:00
docker Add docker setup using WP-ENV (https://github.com/woocommerce/woocommerce-admin/pull/6448) 2021-03-02 13:13:21 -08:00
docs Fix wrong filename for feature config (https://github.com/woocommerce/woocommerce-admin/pull/6557) 2021-03-11 08:40:26 +08:00
images Store profiler: Business Details steps changes (https://github.com/woocommerce/woocommerce-admin/pull/6503) 2021-03-09 15:00:34 -03:00
includes Fixed the Add First Product email note checks (https://github.com/woocommerce/woocommerce-admin/pull/6260) 2021-02-03 17:15:43 -03:00
languages Master -> main. (https://github.com/woocommerce/woocommerce-admin/pull/4618) 2020-06-17 13:39:41 -04:00
packages Improve WC Shipping & Tax logic (https://github.com/woocommerce/woocommerce-admin/pull/6547) 2021-03-17 01:22:33 -07:00
src Update insight inbox message and add no option (https://github.com/woocommerce/woocommerce-admin/pull/6555) 2021-03-17 02:14:47 -07:00
storybook Migrate the devdocs examples to Storybook CSF stories (https://github.com/woocommerce/woocommerce-admin/pull/5271) 2020-10-15 14:55:55 +13:00
tests Improve WC Shipping & Tax logic (https://github.com/woocommerce/woocommerce-admin/pull/6547) 2021-03-17 01:22:33 -07:00
.browserslistrc
.distignore Add Feature Flags (https://github.com/woocommerce/woocommerce-admin/pull/1500) 2019-02-12 15:02:02 -05:00
.editorconfig Align WooCommerce javascript code standards/linting/styles with WordPress core. (https://github.com/woocommerce/woocommerce-admin/pull/3674) 2020-02-14 15:23:21 +13: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 Hook Reference: Automate a reference resource (https://github.com/woocommerce/woocommerce-admin/pull/6454) 2021-03-17 13:27:26 +13:00
.gitattributes Add Line-Ending Normalization to Text Files in Git (https://github.com/woocommerce/woocommerce-admin/pull/5917) 2021-01-07 13:00:22 +13:00
.gitignore Add docker setup using WP-ENV (https://github.com/woocommerce/woocommerce-admin/pull/6448) 2021-03-02 13:13:21 -08:00
.nvmrc Add nvmrc for newest lts release (https://github.com/woocommerce/woocommerce-admin/pull/1108) 2018-12-18 16:06:27 -06:00
.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
.stylelintrc.json Align WooCommerce javascript code standards/linting/styles with WordPress core. (https://github.com/woocommerce/woocommerce-admin/pull/3674) 2020-02-14 15:23:21 +13:00
.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 README.md and CONTRIBUTING.md (https://github.com/woocommerce/woocommerce-admin/pull/5772) 2020-12-07 08:33:08 +08:00
Gruntfile.js Align WooCommerce javascript code standards/linting/styles with WordPress core. (https://github.com/woocommerce/woocommerce-admin/pull/3674) 2020-02-14 15:23:21 +13:00
LICENSE.md update to consistent license 2019-05-16 13:14:03 -03:00
README.md Add docker setup using WP-ENV (https://github.com/woocommerce/woocommerce-admin/pull/6448) 2021-03-02 13:13:21 -08:00
TESTING-INSTRUCTIONS.md Update insight inbox message and add no option (https://github.com/woocommerce/woocommerce-admin/pull/6555) 2021-03-17 02:14:47 -07:00
babel.config.js Apply IE fix for Array.flat (https://github.com/woocommerce/woocommerce-admin/pull/6068) 2021-01-14 10:01:35 +13: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.2.0-dev (https://github.com/woocommerce/woocommerce-admin/pull/6417) 2021-02-26 11:48:52 +08:00
composer.lock Build: Update Jetpack Autoloader dependency. (https://github.com/woocommerce/woocommerce-admin/pull/6325) 2021-02-12 13:23:19 +13: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 Align WooCommerce javascript code standards/linting/styles with WordPress core. (https://github.com/woocommerce/woocommerce-admin/pull/3674) 2020-02-14 15:23:21 +13:00
license.txt include license.txt and update component package.json files 2019-05-18 01:19:20 -03:00
lint-staged.config.js Improve the pre-commit hook setup for wc-admin (https://github.com/woocommerce/woocommerce-admin/pull/5233) 2020-10-02 17:38:13 +13:00
package-lock.json Hook Reference: Automate a reference resource (https://github.com/woocommerce/woocommerce-admin/pull/6454) 2021-03-17 13:27:26 +13:00
package.json Hook Reference: Automate a reference resource (https://github.com/woocommerce/woocommerce-admin/pull/6454) 2021-03-17 13:27:26 +13:00
phpcs.xml.dist Add PSR-4 naming checks to PHP linting (https://github.com/woocommerce/woocommerce-admin/pull/5512) 2020-11-02 14:47:00 -05:00
phpunit.xml.dist Update PHPUnit to version 7 (https://github.com/woocommerce/woocommerce-admin/pull/3571) 2020-01-16 10:03:44 -04:00
readme.txt Update insight inbox message and add no option (https://github.com/woocommerce/woocommerce-admin/pull/6555) 2021-03-17 02:14:47 -07: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 Add tilde (~) option for client root directory (https://github.com/woocommerce/woocommerce-admin/pull/6517) 2021-03-10 11:11:37 -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 Use Route based code splitting to optimize bundle size (https://github.com/woocommerce/woocommerce-admin/pull/4094) 2020-04-29 12:01:27 -06:00
webpack.config.js Add tilde (~) option for client root directory (https://github.com/woocommerce/woocommerce-admin/pull/6517) 2021-03-10 11:11:37 -04:00
woocommerce-admin.php Bump Version to 2.2.0-dev (https://github.com/woocommerce/woocommerce-admin/pull/6417) 2021-02-26 11:48:52 +08: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)

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 have their own Docker container to run the WordPress server. Start the server using:

npm run docker:up

Run tests using:

npm run test:e2e-dev

or in headless mode:

npm run test:e2e

Run a single test by adding the file name:

npm run test:e2e-dev complete-onboarding-wizard.test.js

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