Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate LICENSE file when scaffolding a new command #84

Open
danielbachhuber opened this issue Feb 23, 2017 · 3 comments
Open

Generate LICENSE file when scaffolding a new command #84

danielbachhuber opened this issue Feb 23, 2017 · 3 comments

Comments

@danielbachhuber
Copy link
Member

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

From wp-cli/restful#97

@danielbachhuber
Copy link
Member Author

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

@ssnepenthe
Copy link

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.

@danielbachhuber
Copy link
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants