MrDHat / generator-node-mocha

Create a Node.js module with yo, including Mocha unit tests.
MIT License
7 stars 7 forks source link

add LICENSE file #6

Closed thanpolas closed 7 years ago

MrDHat commented 10 years ago

The type of license (if used) depends highly on the type of project. For eg: you wouldn't need to add a license if you are building a web app which isn't going to be open-sourced. I don't think that we should force a license through the generator.

thanpolas commented 10 years ago

I'll prompt the user with the option...

Next pass i'll integrate yeoman's store API so i'll revisit this PR then

MrDHat commented 10 years ago

Since, yeoman asks for a license during the initialization process, hence, we should grab the license from there and generate the license file accordingly.

thanpolas commented 10 years ago

So i run the generator today, and noticed that we DO ask for LICENSE:

The name of your project shouldn't contain "node" or "js" and should be a unique ID not already in use at search.npmjs.org. [?] Module Name: noddd [?] Description: The best module ever. [?] Homepage: [?] License: MIT

Didn't look any deeper though, how do you handle this?

MrDHat commented 10 years ago

yo (or generator-generator) handles this internally.

thanpolas commented 10 years ago

great news then, i'll have a deeper look when i have some time

MrDHat commented 10 years ago

It might be a nice idea to add a license automatically based on the selection (in generator-generator or yo wherever the license is prompted).