https://github.com/emranahmed/storepress-create-plugin
Scaffold StorePress Plugin
https://github.com/emranahmed/storepress-create-plugin
storepress woocommerce-extension wordpress wordpress-plugin
Last synced: about 1 year ago
JSON representation
Scaffold StorePress Plugin
- Host: GitHub
- URL: https://github.com/emranahmed/storepress-create-plugin
- Owner: EmranAhmed
- Created: 2024-06-08T18:04:30.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-27T13:58:20.000Z (over 1 year ago)
- Last Synced: 2025-03-27T22:36:53.369Z (over 1 year ago)
- Topics: storepress, woocommerce-extension, wordpress, wordpress-plugin
- Language: Mustache
- Homepage: https://www.npmjs.com/package/@storepress/create-plugin
- Size: 140 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# @storepress/create-plugin
This is a template for [`@wordpress/create-block`](https://developer.wordpress.org/block-editor/reference-guides/packages/packages-create-block/) to create StorePress Plugin.
## Usage
This template can be used by running the following command:
```bash
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
```
## Development
For development on this tool itself, you can also install from a local directory.
```bash
npx @wordpress/create-block@latest --template ./path/to/storepress/create-plugin my-extension-name
```
### Add Tests
Please check [Base Plugin](https://github.com/EmranAhmed/storepress-base-plugin/) to add `test` and others.
This is a template to used with [`@wordpress/create-block`](https://developer.wordpress.org/block-editor/reference-guides/packages/packages-create-block/) to create a StorePress Plugin starting point.