woocommerce/plugins/woocommerce-admin/client/wp-admin-scripts
Daniel Bitzer d8098d6fd7 Adds `@woocommerce/tracks` package (https://github.com/woocommerce/woocommerce-admin/pull/5017)
* Add @woocommerce/tracks package.json

* Add @woocommerce/tracks .npmrc

* Move lib/tracks.js in to tracks package

* Add tracks package debug dependency

* Add readme for tracks package

* Add changelog for tracks package

* Add info about debugging and opt-ins to tracks package readme

* Load tracks package script

* Add tracks package to packages readme

* Add tracks package to webpack config

* Add tracks package external to starter-pack

* Replace lib/tracks uses with @woocommerce/tracks

* Update package-lock.json
2020-08-20 14:29:52 +09:30
..
marketing-coupons Add Coupon feature (https://github.com/woocommerce/woocommerce-admin/pull/4526) 2020-06-16 12:00:41 +09:30
onboarding-homepage-notice Adds `@woocommerce/tracks` package (https://github.com/woocommerce/woocommerce-admin/pull/5017) 2020-08-20 14:29:52 +09:30
onboarding-product-import-notice Fix dependency declarations (https://github.com/woocommerce/woocommerce-admin/pull/4972) 2020-08-13 14:05:22 +12:00
onboarding-product-notice Fix dependency declarations (https://github.com/woocommerce/woocommerce-admin/pull/4972) 2020-08-13 14:05:22 +12:00
onboarding-tax-notice Fix dependency declarations (https://github.com/woocommerce/woocommerce-admin/pull/4972) 2020-08-13 14:05:22 +12:00
print-shipping-label-banner Adds `@woocommerce/tracks` package (https://github.com/woocommerce/woocommerce-admin/pull/5017) 2020-08-20 14:29:52 +09:30
README.md Onboarding: Add return to task list after saving taxes (https://github.com/woocommerce/woocommerce-admin/pull/3170) 2019-11-07 08:17:46 +08:00

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' ) );