scaffold-package-command icon indicating copy to clipboard operation
scaffold-package-command copied to clipboard

Generate LICENSE file when scaffolding a new command

Open danielbachhuber opened this issue 8 years ago • 3 comments

We should make sure each scaffolded package includes a proper LICENSE file

From https://github.com/wp-cli/restful/issues/97

danielbachhuber avatar Feb 23 '17 14:02 danielbachhuber

Similarly, we should include mention of the license in the README

danielbachhuber avatar Mar 08 '17 13:03 danielbachhuber

How do you envision this being implemented?

Should templates for common licenses be bundled? Or maybe use an API like GitHub Licenses?

Should a name/author option be added for licenses like MIT? Or should the license be added as-is, allowing the author to replace the various placeholders on their own?

What about cases where some obscure/unsupported license is requested by the user? A blank license file that they have to manually fill in? Or no license file at all?

It might be nice to add this functionality to the primary scaffold-command as well for plugins and themes.

ssnepenthe avatar Dec 04 '17 18:12 ssnepenthe

How do you envision this being implemented?

I don't have any strong opinions at this point, other than to generally follow the pattern of other commands.

Should templates for common licenses be bundled? Or maybe use an API like GitHub Licenses?

Probably bundled. We don't need to support that many, and they don't change very often.

Should a name/author option be added for licenses like MIT? Or should the license be added as-is, allowing the author to replace the various placeholders on their own?

No strong preference.

What about cases where some obscure/unsupported license is requested by the user? A blank license file that they have to manually fill in? Or no license file at all?

No license file at all, I think.

danielbachhuber avatar Dec 04 '17 19:12 danielbachhuber