wp-launchpad / launchpad

Launchpad is a framework for WordPress plugin that allows you to create a modern PHP plugin in no time.
https://wp-launchpad.gitbook.io/launchpad/
GNU General Public License v2.0
14 stars 0 forks source link

Create a module for wp cli so it is possible to generate a launchpad project from wp cli #14

Closed CrochetFeve0251 closed 2 months ago

nicomollet commented 3 months ago

Where would that WP CLI module be located? I don't see how we can avoid the first command: composer create-project wp-launchpad/launchpad my-plugin

Then inside my-plugin we could have a WP CLI custom command, yes. Is it what we was thinking of?

CrochetFeve0251 commented 3 months ago

@nicomollet the idea is to create a wp-cli module so then we can chain both commands necessary to initialize a new project:

Yes on the first usage like the cli command for Laravel or Symfony, it is more setup. However, for a person using it more regularly, it can be useful and might allow us to add more commands in the future.

Khadreal commented 2 months ago

First, we need to create a separate repo for this, while I'm not too much familiar on how we can submit this to wp to bundle as part of the built-in commands for wp cli. After building we would go ahead and submit the package on Packagist pending when it'll be available as in-built for WP-CLI.

@CrochetFeve0251 could you please create a repo for this ?