mstenta / farm_client_module_template

Template for building a farmOS Field Module project.
GNU General Public License v2.0
0 stars 0 forks source link

Automatically generate PHP files #2

Open mstenta opened 4 years ago

mstenta commented 4 years ago

There are some standard PHP files that are needed to create a Drupal module.

On Drupal 7, these are:

On Drupal 8, you only need:

It would be helpful if these could be automatically generated in the GitHub action for creating a release, since they are not really necessary to have in source control otherwise.

The only reason you might want them in source control is if you are implementing Drupal hooks in [modulename].module. So perhaps we auto-generate these ONLY IF they do not already exist. This would allow devs to provide them if they want to.