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

Distribute Robo commands via Packagist [4h] #568

Open
AronNovak opened this issue Sep 5, 2023 · 7 comments
Open

Distribute Robo commands via Packagist [4h] #568

AronNovak opened this issue Sep 5, 2023 · 7 comments
Assignees

Comments

@AronNovak
Copy link
Member

We have some client projects where we compose custom code via composer. It has a number of benefits:

  • versioned properly
  • easy to upgrade / downgrade
  • coherent with other contrib code

We have this thing that we copy-paste Robo commands from Drupal Starter. From some projects, we diverge so much from the origin that we can't do better. But many projects are really really similar to Starter when it comes to tooling, but yet, each one is a little bit different.

If we'd try to publish a composer package that holds our commands, we would be able to upgrade (let's say to have the latest release notes generation or fixes in the deploy flow) via composer, just like as we upgrade Drupal core.

@AronNovak
Copy link
Member Author

^^ @amitaibu Worth to try?

@AronNovak
Copy link
Member Author

AronNovak commented Sep 5, 2023

https://chat.openai.com/share/0ba365e8-13dc-4282-9f02-ac7b591b4034

The local RoboFile would look like something like this:

class RoboFile extends DrupalStarterTasks {
    // local tasks can also be added here
}

So we would be able to override things for project-specifics.

@amitaibu
Copy link
Member

amitaibu commented Sep 6, 2023

Sounds like a great idea. And a great demo for AI assistance 👌

@AronNovak AronNovak self-assigned this Sep 21, 2023
@AronNovak AronNovak changed the title Distribute Robo commands via Packagist Distribute Robo commands via Packagist [4h] Sep 21, 2023
@AronNovak
Copy link
Member Author

@AronNovak
Copy link
Member Author

@AronNovak
Copy link
Member Author

@AronNovak
Copy link
Member Author

We have all the packages here: https://packagist.org/packages/gizra/

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

No branches or pull requests

2 participants