Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI command to create a sprinkle #729

Closed
lcharette opened this issue Jun 4, 2017 · 2 comments
Closed

CLI command to create a sprinkle #729

lcharette opened this issue Jun 4, 2017 · 2 comments
Assignees
Labels
bakery Related to the Bakery feature
Milestone

Comments

@lcharette
Copy link
Member

The goal of this command is to create an empty Sprinkle and setup everything automatically.

A sprinkle-skeleton repo could be used as a base for a new sprinkle. This repo should contain the basic folder structure.

The workflow of the create-sprinkle command would be :

  • Clone skeleton repo using composer create-project command (requires composer php class)
  • Setup the sprinkle composer.json with the name and such
  • Add the new sprinkle to sprinkles.json (This will requires CLI command to manage sprinkle  #728)
  • composer update then bakery bake

The command would ask, if not already defined using optional options:

  • Sprinkle name
  • Sprinkle vendor
  • Sprinkle folder name

Different skeleton repo could also be used depending what the dev wants to create.

@lcharette lcharette added the bakery Related to the Bakery feature label Jun 4, 2017
@lcharette lcharette added this to the 4.1.x milestone Jun 4, 2017
@lcharette lcharette self-assigned this Jun 4, 2017
@alexweissman
Copy link
Member

We could definitely use this sooner rather than later. We're seeing a lot of people in chat who are getting hung up issues related to in-adherence to the naming conventions. This command would ensure that directories and namespaces are being named properly and probably save every newbie hours of headache.

@lcharette
Copy link
Member Author

UF5 is now created with a skeleton repo; It doesn't require a bakery command, as it's done via composer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bakery Related to the Bakery feature
Projects
None yet
Development

No branches or pull requests

2 participants