23 lines
740 B
Markdown
23 lines
740 B
Markdown
# Create Extension
|
|
|
|
Scaffold a modern JavaScript WordPress plugin with WooCommerce tooling.
|
|
|
|
## Includes
|
|
|
|
- [wp-scripts](https://github.com/WordPress/gutenberg/tree/master/packages/scripts)
|
|
- [WooCommerce Dependency Extraction Webpack Plugin](https://github.com/woocommerce/woocommerce/tree/trunk/packages/js/dependency-extraction-webpack-plugin)
|
|
- [WooCommerce ESLint Plugin with WordPress Prettier](https://github.com/woocommerce/woocommerce/tree/trunk/packages/js/eslint-plugin)
|
|
|
|
### Usage
|
|
|
|
```
|
|
pnpm run create-extension
|
|
```
|
|
|
|
The script will create a sibling directory by a name of your choosing. Once you change directories into the new folder, install dependencies and start a development build.
|
|
|
|
```
|
|
pnpm install
|
|
pnpm start
|
|
```
|