Skip to content

Yo commands could group generated content into 'components' using a folder structure. #130

@aubreypwd

Description

@aubreypwd

Right now when you use a command such as yo plugin-wp:include <include-name> you end up with a class-<prefix>-<thing).php file in the includes/class...php folder. It would be nicer to create a folder when this happens:

includes/
    <component>/
        class-<prefix>-<thing>.php

This would allow us to create other sub-classes under a 'component' folder w/out having to do some funky changes to make that possible. This way I can easily create another includes folder in the 'component' folder, which can contain other classes, files, etc that I can include separately.

includes/
    <component>/
        class-<prefix>-<component>.php
            includes/
                 class-<prefix>-<component>-another-thing.php
                 template-tag.php
                 extras.php

Would also like to get some feedback before I attempt this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions