This node pack will help you create Wp plugin with single command.
npm install wp-simple-setupbash
$ npm install -g wp-simple-setup
`To Create Plugin :white_check_mark:
`bash
$ npx wp-simple-setup --type=plugin
$ cd wp-simple-setup
`To Create Theme :x:
`bash
$ npx wp-simple-setup --type=theme
$ cd wp-simple-setup
`To Create WP CMS :white_check_mark:
`bash
$ npx wp-simple-setup --type=cms
$ cd wp-simple-setup
`As of this version we only support
- :white_check_mark: Plugin creation
- :white_check_mark: CMS creation
- :x: Theme creation.$3
- -t, --type Project Type, allowed values: "cms", "plugin", "theme"
- -n, --name Project Name, Default value : --slug parameter
- -s, --slug Project Slug
- -ns, --namespace NameSpace
- -a, --author Project Author
- -arl, --author_url Author Url
- -phpv, --phpversion PHP VERSION, Default value : 8.0
- -wpv, --wpversion WP VERSION, Default value : 6.3
- -pv, --pluginversion Plugin VERSION, Default value : 1.0.0
- -idp, --installDependency Installs Dependency after project clone, Default value: true.
- -fp, --fingerprint Circle Ci Footprint to build package, Default value: true.
- -cicd, --circleci Required circleCi, Default value: true.
- -gwf, --gitworkflow Required Git Work Flow ci?, Default value: true.
- -dkr, --docker Required docker?, Default value: true.
- -cyp, --cypress Required Cypress?, Default value: true.
Troubleshoot:
If you have below issue with docker
open /Users/{USER}/.docker/buildx/current: permission denied
Run the follwoing
`bash
sudo chmod -r g+rw "$HOME/.docker"
``- Added auto generated build package for all the branches that were created in git ( Example : test branch will have a built package of test-built branch ).
- Provide flexibility in adding additional components like CICD, CYPRESS, git work flows, dokcer based on requirement.
- - -fp, --fingerprint Circle Ci Footprint to build package, Default value: true.
- - -cicd, --circleci Required circleCi, Default value: true.
- - -gwf, --gitworkflow Required Git Work Flow ci?, Default value: true.
- - -dkr, --docker Required docker?, Default value: true.
- - -cyp, --cypress Required Cypress?, Default value: true.
- Fix Cypress tests for plugin activation check.
- Add Cypress automation on Circle CI
- Fix phpcs linting : exclude cypress and wp cypress config file excluded
- Added new flag --installDependency to install dependency after project setup.