Re-work to be component/feature organized
aubreypwd opened this issue · 3 comments
aubreypwd commented
This was an idea given to me by a coworker, e.g.:
feature-name/
assets/
js/
css/
class-feature-name.php
vendor/
The idea is that the folder feature-name
could be moved around to other plugins using this same platform. E.g. bug-spray
could be easily added to another project just by copying the folder (which has all it's things) to the plugin on another projects and loaded into the class-app.php
and run it's hooks/etc.
Maybe hooks could be auto loaded now which would do all the things.
aubreypwd commented
Let's also name the folder components/
instead of features/
(but also allow features/
for backwards compatibility).