Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Add license option for plugin generator #6

Closed
ashumilova opened this issue Jul 18, 2018 · 3 comments
Closed

Add license option for plugin generator #6

ashumilova opened this issue Jul 18, 2018 · 3 comments

Comments

@ashumilova
Copy link

ashumilova commented Jul 18, 2018

As a new plugin author I should have ability to provide the license for my code, so that I will not need to change the default one to the one I need manually.
The proposed way to handle that - to have no license by default. In case user needs to provide the license - there should be advanced options, where he could input SPDX identifier or the license file location.
For SPDX licenses generation - the following library could be considered or this one or another one :-)

@benoitf
Copy link
Contributor

benoitf commented Aug 3, 2018

Assigning @mmorhun

@mmorhun
Copy link
Contributor

mmorhun commented Aug 8, 2018

I've looked for a lib for license generation on npmjs and failed to find one which fully suits for ours needs (LICENSE file in the root, headers in the source files and property in the package.json) and is compatible by license. So in case of using external lib we need at least two of them, but they always have different set of licenses.
I see two ways here:

  • Use external libs and contribute to them
  • Write code from scratch

To me the second option is preferable, because the logic is not complicated and we won't depend on third party upstream and will have code which does exactly what we need.

@mmorhun
Copy link
Contributor

mmorhun commented Aug 15, 2018

Done.
Use --license and --author to generate license for plugin.
PR is here.

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

No branches or pull requests

4 participants