4210b6f0a8
* update @wordpress/eslint-plugin dependency to latest version * local prettier config isn’t needed anymore because of fix in upstream package * add jsdoc config to use typescript format for jsdocs * update changelog * update packages and include .prettierrc.js back in for code editor support of prettier * add docs * minor prettier fix in test file * Convert all new eslint rules throwing errors to warnings temporarily to be handled in separate prs * updated changelog * fix package-lock.json * prettier auto-fixes * add prettier dependency at root * sigh prettier is being finicky * version bump Co-authored-by: Paul Sealock <psealock@gmail.com> |
||
---|---|---|
.. | ||
src | ||
._eslintrc.js | ||
._gitignore | ||
._prettierrc.json | ||
README.md | ||
_README.md | ||
_main.php | ||
_package.json | ||
_webpack.config.js | ||
starter-pack.js |
README.md
Create Extension
Scaffold a modern JavaScript WordPress plugin with WooCommerce tooling.
Includes
- wp-scripts
- WooCommerce Dependency Extraction Webpack Plugin
- WooCommerce ESLint Plugin with WordPress Prettier
Usage
At the root of a WooCommerce Admin installation, run the create extension command.
npm run create-wc-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.
npm install
npm start