2db29164f9
* Update to pnpm 9.1 and fix a mini css bug * Add changefile(s) from automation for the following project(s): @woocommerce/tracks, @woocommerce/product-editor, @woocommerce/onboarding, @woocommerce/number, @woocommerce/notices, @woocommerce/navigation, @woocommerce/internal-js-tests, @woocommerce/extend-cart-checkout-block, @woocommerce/expression-evaluation, @woocommerce/explat, @woocommerce/experimental, @woocommerce/eslint-plugin, @woocommerce/dependency-extraction-webpack-plugin, @woocommerce/date, @woocommerce/data, @woocommerce/customer-effort-score, @woocommerce/currency, @woocommerce/csv-export, @woocommerce/create-woo-extension, @woocommerce/create-product-editor-block, @woocommerce/components, @woocommerce/api, @woocommerce/ai, @woocommerce/admin-e2e-tests, woocommerce-blocks, woocommerce-beta-tester, woocommerce, woo-ai * temporarily disable swallowing build output to diagnose issue with perf workflow * Ignore some type issues that commonly resurface when deps slightly change * Fix persistent type issues that have recurred many times * Add more ignores * Fix lint issue * Revert change to swallow build error * Improve access of the config that needs updated build dir. --------- Co-authored-by: github-actions <github-actions@github.com> |
||
---|---|---|
.. | ||
changelog | ||
src | ||
$slug-blocks-integration.php.mustache | ||
$slug.php.mustache | ||
.editorconfig.mustache | ||
.eslintignore.mustache | ||
.eslintrc.js.mustache | ||
.gitignore | ||
.gitignore.mustache | ||
.nvmrc.mustache | ||
.wp-env.json.mustache | ||
CHANGELOG.md | ||
README.md | ||
README.md.mustache | ||
composer.json | ||
composer.lock | ||
index.js | ||
package.json | ||
webpack.config.js.mustache |
README.md
@woocommerce/extend-cart-checkout-block
This is a template to be used with @wordpress/create-block
to create a WooCommerce Blocks extension starting point.
Installation
From your plugins
directory run:
npx @wordpress/create-block -t @woocommerce/extend-cart-checkout-block your_extension_name
When this has completed, go to your WordPress plugins page and activate the plugin.
Add some items to your cart and visit the Checkout block, notice there is additional data on the block that this template has added.
Installing wp-prettier
(optional)
WooCommerce Blocks uses wp-prettier
to format the JS files. If you want to use wp-prettier
, you will need to run the following command:
nvm use && npm i --D "prettier@npm:wp-prettier@latest"
Installing wp-env
(optional)
wp-env
lets you easily set up a local WordPress environment for building and testing your extension. If you want to use wp-env
, you will need to run the following command:
nvm use && npm i -D @wordpress/env && npm set-script wp-env "wp-env"