nystudio107 / generator-craftplugin

generator-craftplugin is a Yeoman generator for Craft CMS plugins
MIT License
73 stars 30 forks source link

[FR] Don't recreate deleted files when adding new components to an existing plugin #55

Open OscarBarrett opened 6 years ago

OscarBarrett commented 6 years ago

For internal/private plugins I often delete some of the generated files that I don't want to keep, such as:

These files will get recreated again if I use the generator to add a new component. IMO if a new component is being added to an existing plugin, only the requested files should be created.

khalwat commented 6 years ago

In an ideal world, that's what would happen. It's unfortunately a bit more complicated under the hood with the Yeoman engine that it's using.

I'll see if I can't figure something out... but PRs are always welcome as well.

khalwat commented 4 years ago

The PR looks good, but I'm going to need to do some testing with it