33c5b41e3f
* align code styles with the same configuration as Woo-Blocks * initial pass of reformat-files * applies manual fixes to various new linting errors surfaced by the configuration change. * Fix state mutation in image-upload * remove unused pre-commit-hook.js * requestAnimationFrame -> window.requestAnimationFrame * wc-api eslint changes * eslint fixes on client/lib and client/settings * client/header eslint changes * fixes for client/dashboard part 1 * fixes client/dashboard part 2 of 2 * client/analytics part 1 * client/analytics continued * client/analytics, last batch * rename __mock__ directory * pass in useEffect, useState from React component or function * remove '+' from sprintf string argument * use ref instead of findDOMNode * reformat and repaply package.json changes * install deps before running linter in Travis * useGetCountryStateAutofill * counryStateAutofill * countryStateAutofill Co-authored-by: Paul Sealock <psealock@gmail.com> |
||
---|---|---|
.. | ||
onboarding-homepage-notice | ||
onboarding-product-import-notice | ||
onboarding-product-notice | ||
onboarding-tax-notice | ||
README.md |
README.md
Scripts located in this directory are meant to be loaded on wp-admin pages outside the context of WooCommerce Admin, such as the post editor. Adding the script name to wpAdminScripts
in the Webpack config will automatically build these scripts.
Scripts must be manually enqueued with any neccessary dependencies. For example, onboarding-homepage-notice
uses the WooCommerce navigation package:
wp_enqueue_script( 'onboarding-homepage-notice', Loader::get_url( 'wp-scripts/onboarding-homepage-notice.js' ), array( 'wc-navigation' ) );