woocommerce/plugins/woocommerce-admin
Albert Juhé Lluveras f80880b80c Add PHP autofix to pre-commit hook (https://github.com/woocommerce/woocommerce-admin/pull/2022)
* Add PHP autofix to pre-commit hook

* Remove unnecesary 'dev/null' output path

* Add error message if PHP_CodeSniffer is not installed

* Add periods to comments

* Fix comment
2019-04-11 09:05:59 +02:00
..
.github Add Accessibility section to the PR template (https://github.com/woocommerce/woocommerce-admin/pull/1133) 2018-12-19 17:33:02 -05:00
bin Add PHP autofix to pre-commit hook (https://github.com/woocommerce/woocommerce-admin/pull/2022) 2019-04-11 09:05:59 +02:00
client Hook up leaderboards endpoint to dashboard (https://github.com/woocommerce/woocommerce-admin/pull/2004) 2019-04-11 10:53:05 +08:00
config Add onboarding task list to dashboard (https://github.com/woocommerce/woocommerce-admin/pull/1929) 2019-03-28 14:09:44 +08:00
docs Calendar: update to Gutenberg's isInvalidDate 2019-04-10 07:59:27 +12:00
images Clean up SVG code 2018-09-27 15:41:12 -07:00
includes Hook up leaderboards endpoint to dashboard (https://github.com/woocommerce/woocommerce-admin/pull/2004) 2019-04-11 10:53:05 +08:00
languages Update text domain. (https://github.com/woocommerce/woocommerce-admin/pull/1795) 2019-03-13 11:14:02 -06:00
lib Hook up leaderboards endpoint to dashboard (https://github.com/woocommerce/woocommerce-admin/pull/2004) 2019-04-11 10:53:05 +08:00
packages Calendar: update to Gutenberg's isInvalidDate 2019-04-10 07:59:27 +12:00
tests Make customer name extendable (https://github.com/woocommerce/woocommerce-admin/pull/1976) 2019-04-09 11:39:39 +08:00
.browserslistrc Add CSS autoprefixer (https://github.com/woocommerce/woocommerce-admin/pull/244) 2018-07-30 10:05:22 -04:00
.distignore Add Feature Flags (https://github.com/woocommerce/woocommerce-admin/pull/1500) 2019-02-12 15:02:02 -05:00
.editorconfig Initial commit of plugin scaffold 2018-04-17 17:04:17 -04:00
.eslintignore Docs Project: Add documentation parser + inline documentation (https://github.com/woocommerce/woocommerce-admin/pull/336) 2018-08-31 13:27:21 -04:00
.eslintrc Set eslint react version to 'detect' (https://github.com/woocommerce/woocommerce-admin/pull/1300) 2019-01-17 10:25:08 +01:00
.gitignore Update text domain. (https://github.com/woocommerce/woocommerce-admin/pull/1795) 2019-03-13 11:14:02 -06:00
.nvmrc Add nvmrc for newest lts release (https://github.com/woocommerce/woocommerce-admin/pull/1108) 2018-12-18 16:06:27 -06:00
.stylelintrc.json Makes stylelint config match prettier settings (https://github.com/woocommerce/woocommerce-admin/pull/733) 2018-11-01 17:03:00 -04:00
.travis.yml Update text domain. (https://github.com/woocommerce/woocommerce-admin/pull/1795) 2019-03-13 11:14:02 -06:00
CONTRIBUTING.md Update text domain. (https://github.com/woocommerce/woocommerce-admin/pull/1795) 2019-03-13 11:14:02 -06:00
Gruntfile.js Update text domain. (https://github.com/woocommerce/woocommerce-admin/pull/1795) 2019-03-13 11:14:02 -06:00
LICENSE.md Add GPL License (https://github.com/woocommerce/woocommerce-admin/pull/1440) 2019-02-01 10:22:05 -05:00
README.md update requirements in GH readme, plugin header 2019-04-01 13:16:13 -03:00
babel.config.js Update text domain. (https://github.com/woocommerce/woocommerce-admin/pull/1795) 2019-03-13 11:14:02 -06:00
composer.json Update text domain. (https://github.com/woocommerce/woocommerce-admin/pull/1795) 2019-03-13 11:14:02 -06:00
composer.lock Pin dependency composer/installers to 1.6.0 (https://github.com/woocommerce/woocommerce-admin/pull/1714) 2019-03-06 09:39:04 -06:00
lerna.json Try: Add Lerna to split out utility packages (https://github.com/woocommerce/woocommerce-admin/pull/678) 2018-10-30 14:57:48 -04:00
package-lock.json Merge pull request woocommerce/woocommerce-admin#2031 from woocommerce/renovate/node-watch-0.x 2019-04-10 17:39:02 -06:00
package.json Merge pull request woocommerce/woocommerce-admin#2031 from woocommerce/renovate/node-watch-0.x 2019-04-10 17:39:02 -06:00
phpcs.xml.dist Update text domain. (https://github.com/woocommerce/woocommerce-admin/pull/1795) 2019-03-13 11:14:02 -06:00
phpunit.xml.dist Initial setup for unit tests. 2018-09-20 16:20:04 +02:00
postcss.config.js Load RTL CSS files (https://github.com/woocommerce/woocommerce-admin/pull/1781) 2019-03-14 11:18:54 +01:00
readme.txt Update Link in readme to Proper Location (https://github.com/woocommerce/woocommerce-admin/pull/2026) 2019-04-09 07:47:14 -07:00
renovate.json Change renovate to a once-weekly schedule (https://github.com/woocommerce/woocommerce-admin/pull/1076) 2018-12-13 12:20:36 -05:00
webpack.config.js Minify in safe mode for RTL styles to prevent stripping z-index (https://github.com/woocommerce/woocommerce-admin/pull/1838) 2019-03-20 10:55:43 +08:00
woocommerce-admin.php Add a mobile app note (https://github.com/woocommerce/woocommerce-admin/pull/2008) 2019-04-10 11:49:02 -04:00

README.md

WooCommerce Admin

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


⚠️ This project is in active development, and is not ready for general use. You can follow the features in development by looking at the project's issues. We do not recommend running this on production sites.


Prerequisites

WordPress 5.0 or greater and WooCommerce 3.5.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 with npm install. Now you can build the files using one of these commands:

  • npm run build : Build a production 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)

There are also some helper scripts:

  • npm run lint : Run eslint over the javascript files
  • npm run i18n : A multi-step process, used to create a pot file from both the JS and PHP gettext calls. First it runs i18n:js, which creates a temporary .pot file from the JS files. Next it runs i18n:php, which converts that .pot file to a PHP file. Lastly, it runs i18n:pot, which creates the final .pot file from all the PHP files in the plugin (including the generated one with the JS strings).
  • npm test : Run the JS test suite

To debug synced lookup information in the database, you can bypass the action scheduler and immediately sync order and customer information by using the woocommerce_disable_order_scheduling hook.

add_filter( 'woocommerce_disable_order_scheduling', '__return_true' );

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, feature suggestions and fixing bugs. For full details, please see CONTRIBUTING.md