Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@woocommerce/create-product-editor-block
Advanced tools
A template to be used with `@wordpress/create-block` to create a Product Editor block.
Create Product Editor Block scaffolds a fully functional modern development environment for developing block-based extensions to the new block-based product editor in WooCommerce.
You can use the built-in wp-env support to easily get a local WordPress environment up and running. It is configured to load the latest released version of WordPress, the latest WooCommerce nightly build and the latest version of the WooCommerce Beta Tester.
If you want to change which version of WordPress and WooCommerce are used, you can do so by modifying the .wp-env.override.json
file.
Tooling support for linting, code formatting, and compilation are configured by default.
If you already have a local WordPress development environment configured, you can map the generated project folder under your plugins
folder.
npx @wordpress/create-block --template @woocommerce/create-product-editor-block my-extension-name
cd my-extension-name
npx wp-env start # Start Wordpress environment
By default, the wp-env
environment created will have the new block-based product editor enabled. You can disable this by using the WooCommerce Beta Tester (disable the product-block-editor
feature).
Navigate to http://localhost:8888/wp-admin/admin.php?page=wc-admin&path=%2Fadd-product to check out your new block!
cd my-extension-name
npm install # Install dependencies
npm run build # Build the javascript
For development of this tool itself, you can also point to a local directory when creating a product editor block:
npx @wordpress/create-block --template ./path/to/woocommerce/packages/js/create-product-editor-block my-extension-name
This tool is a template to be used with @wordpress/create-block
to create a WooCommerce Product Editor Block starting point.
FAQs
A template to be used with `@wordpress/create-block` to create a Product Editor block.
The npm package @woocommerce/create-product-editor-block receives a total of 3 weekly downloads. As such, @woocommerce/create-product-editor-block popularity was classified as not popular.
We found that @woocommerce/create-product-editor-block demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 20 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.