This is a template for @wordpress/create-block
to create StorePress Plugin.
This template can be used by running the following command:
npx @wordpress/create-block@latest --template @storepress/create-plugin my-extension-name --target-dir .
Navigate to the newly created folder and get started.
cd my-extension-name
chmod +x ./tools/package.js # Make Package JS Executable.
npm i # Install dependencies
npm start # Start developing
npx @wp-now/wp-now start # Start Wordpress environment
For development on this tool itself, you can also install from a local directory.
npx @wordpress/create-block@latest --template ./path/to/storepress/create-plugin my-extension-name
Please check Base Plugin to add test
and others.
This is a template to used with @wordpress/create-block
to create a StorePress Plugin starting point.