4cd14f5137
* switch block-settings alias to settings and fix mapped external * don’t force compilation of externals to `this` scope. * update various meta data in package related files (changelog etc) * update starter pack 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