Skip to content

Instantly share code, notes, and snippets.

@shyim
Created August 3, 2023 06:54
Show Gist options
  • Save shyim/998b494fb8f5c3c7ae6cbde115f6ab52 to your computer and use it in GitHub Desktop.
Save shyim/998b494fb8f5c3c7ae6cbde115f6ab52 to your computer and use it in GitHub Desktop.

Plugin Create Command

To improve the Developer experience we want to improve the already existing plugin:create command and invest some more love there.

The tasks here are:

  • Make the composer.json configureable using Command flags / ask the user
  • Create a services.yaml instead of services.xml and enable Autowire by default for the Plugin.
parameters:

services:
    _defaults:
        autowire: true
        autoconfigure: true
    Extension\Namespace:
        resource: './src/'
  • Create a CHANGELOG.md in root for changelogs with an initial entry

  • Create a src/Resources/config/plugin.png

  • Write Unit tests to test the command

  • Think about some utilities/abstractions for the files and assets that could be used here and in other "maker" style commands

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment