woocommerce/plugins/woo-ai/DEVELOPMENT.md

1.8 KiB

Woo AI

Woo AI is a WooCommerce plugin that utilizes the power of artificial intelligence to enhance your eCommerce experience. With features like AI-powered product title optimization and automated product description generation, Woo AI is designed to boost your store's efficiency and sales potential.

Getting Started

Please refer to the Getting Started section of the WooCommerce Core README.md for a general-purpose guide on getting started. The rest of this document will assume that you've installed all of the prerequisites and setup described there.

Plugin Development Environments

The plugin makes use of the @wordpress/env package. This supplies convenient commands for creating, destroying, cleaning, and testing WordPress environments.

# Make sure you are in the working directory of the plugin you are interested in setting up the environment for
cd plugins/woo-ai
# Start will create the environment if necessary or start an existing one
pnpm -- wp-env start
# Stop will, well, stop the environment
pnpm -- wp-env stop
# Destroy will remove all of the environment's files.
pnpm -- wp-env destroy

Development

To enable Live(Hot) Reload when code is changed, run the following commands:

pnpm install
pnpm start

To build the /woo-ai/ plugin directory (when loading the plugin via symlink), run:

pnpm install
pnpm build

To build the plugin ZIP file, run:

pnpm install
pnpm build:zip

See wp-scripts for more usage information.

License

This plugin is licensed under the GPL v3 or later.