woocommerce/packages/js/create-woo-extension
Ron Rennick 4fa2e3822c
Update the monorepo to node v20 (#45148)
* test bumping node to v18

* remove community contributor condition from review assignment

* Add changefile(s) from automation for the following project(s): @woocommerce/tracks, @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/admin-e2e-tests, woocommerce-blocks, woocommerce-beta-tester, woocommerce, woo-ai

* bump node to v20

* Add changefile(s) from automation for the following project(s): @woocommerce/tracks, @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/admin-e2e-tests, packages/php/remote-specs-validation, woocommerce-blocks, woocommerce-beta-tester, woocommerce, woo-ai

* Add changefile(s) from automation for the following project(s): @woocommerce/tracks, @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/admin-e2e-tests, woocommerce-blocks, woocommerce-beta-tester, woocommerce, woo-ai

* add blocks eslint-plugin-woocommerce to project workspace

* add e2e-environment as a peer to e2e-utils

* restore version on @woocommerce/api

* update lock file

* move e2e-environment to devDependencies

* add undefined location check to admin js test

---------

Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
Co-authored-by: github-actions <github-actions@github.com>
2024-04-12 13:49:55 -03:00
..
changelog Update the monorepo to node v20 (#45148) 2024-04-12 13:49:55 -03:00
includes/admin Dev/create woo extension/php cleanup (#36017) 2022-12-26 07:07:11 -08:00
languages Update Woo.com references to WooCommerce.com (#46259) 2024-04-09 09:50:15 +01:00
src Dev/woo ext/components (#36328) 2023-01-06 14:04:08 -08:00
tests Rename package from create-extension to create-woo-extension (#35947) 2022-12-15 17:45:28 +13:00
$slug.php.mustache Update Woo.com references to WooCommerce.com (#46259) 2024-04-09 09:50:15 +01:00
.editorconfig.mustache Rename package from create-extension to create-woo-extension (#35947) 2022-12-15 17:45:28 +13:00
.eslintrc.js.mustache Rename package from create-extension to create-woo-extension (#35947) 2022-12-15 17:45:28 +13:00
.gitignore.mustache Rename package from create-extension to create-woo-extension (#35947) 2022-12-15 17:45:28 +13:00
.prettierrc.json.mustache Rename package from create-extension to create-woo-extension (#35947) 2022-12-15 17:45:28 +13:00
.wp-env.json.mustache Create-woo-extension: Update WC version (#44107) 2024-01-29 21:29:37 +00:00
CHANGELOG.md Prepare Packages for Release (#44211) 2024-01-31 18:58:06 +13:00
README.md Create Woo Extension: Update Readme (#36156) 2023-01-03 07:03:44 +13:00
README.md.mustache Create Woo Extension: Update Readme (#36156) 2023-01-03 07:03:44 +13:00
composer.json bump php version in packages/js/*/composer.json (#42020) 2024-01-04 10:18:34 -04:00
composer.json.mustache Rename package from create-extension to create-woo-extension (#35947) 2022-12-15 17:45:28 +13:00
composer.lock Update changelogger to 3.3.0 to support PR number capturing with merge (#36266) 2023-01-05 14:42:51 +05:30
index.js Dev/woo ext/components (#36328) 2023-01-06 14:04:08 -08:00
package.json Update the monorepo to node v20 (#45148) 2024-04-12 13:49:55 -03:00
webpack.config.js.mustache Rename package from create-extension to create-woo-extension (#35947) 2022-12-15 17:45:28 +13:00

README.md

@woocommerce/create-woo-extension

Create Woo Extension scaffolds a fully functional modern development environment for integrating with WooCommerce. Use it to build extensions leveraging the power of WooCommerce.

Configuration Free

With build tooling already configured, getting started developing modern Javascript screens requires no effort. Create Woo Extension adds a React page integrating with WooCommerce Admin. Also included are PHP and Javascript unit testing, linting, and Prettier IDE confguration for WooCommerce and WordPress.

Add a project inside of your favorite environment setup or use the built in wp-env for easily setting up a local WordPress environment for building and testing plugins and themes. wp-env is configured to load the latest WooCommerce to easily start developing with a single command.

Usage

npx @wordpress/create-block -t @woocommerce/create-woo-extension my-extension-name

Navigate to the newly created folder and get started.

cd my-extension-name
npm install # Install dependencies
npm run build # Build the javascript
npm -g i @wordpress/env # If you don't already have wp-env
wp-env start # Start Wordpress environment

See the new plugin activated from the WordPress plugins page and navigate to http://localhost:8888/wp-admin/admin.php?page=wc-admin&path=%2Fmy-extension-name to check it out.

Development

For development on this tool itself, you can also install from a local directory.

npx @wordpress/create-block -t ./path/to/woocommerce/packages/js/create-woo-extension my-extension-name

This is a template to used with @wordpress/create-block to create a WooCommerce Extension starting point.