Generating a new application with the lb4 app command generates a LICENSE file, whose contents are the MIT license template. This happens without user interaction!
@strongloop/loopback-devs What are your thoughts on this?
As a result:
package.json, have a license property set to empty string ("").npm install will give a warning to users about the project not having a license.LICENSE file at allThat's good catch. I didn't realize LICENSE file got generated!
IMHO, i don't think we should generate the LICENSE file for the user.
+1 on not providing a license file at all
+1
+1
There are debates on how npm init handles license. See https://github.com/npm/npm/issues/8918 and https://spdx.org/spdx-specification-21-web-version.
I suggest that we generate the following:
"license": "SEE LICENSE IN LICENSE" to package.jsonLICENSE file@raymondfeng , any reasons that we want to generate an empty LICENSE file vs not generating it at all?
Either way we go, I'd like to mark this as MVP.
@dhmlau
SPDX compliance for license in package.json. You will see warnings during npm i if license property is missing or not complying to SPDX. +1 for keeping it out and I like the idea of generating an empty LICENSE file. It won't hurt if it doesn't end up getting used.
Rejecting. Needs more clarification. Acceptance Criteria needs to address problems. Concerns / questions raised during estimation below.
npm expect for a published package? What does LoopBack 3 do?
No LICENSE file.
In package.json, "license": "UNLICENSED",
(I've tried with LB3 creating an "empty server" app)
What are the implications of an empty License file vs. not having a license field at all?
We can't shield everyone across the globe from all the legal implications. We aren't in the business of LICENSE compliance.
Questions for @jjtang1
Users should take ownership
Yes
Should CLI tell the user to add a LICENSE themselves
It wouldn't hurt. but again, question for @jjtang1
What does a npm expect for a published package?
See this link in npm documentation.
From @raymondfeng's above comment, we'll get a warning for not specifying the license attribute.
@raymondfeng @strongloop/sq-lb-apex @bajtos , are you ok with following what we do in LB3:
i.e.
package.json, use license": "UNLICENSED"LICENSE file at all
Most helpful comment
@raymondfeng @strongloop/sq-lb-apex @bajtos , are you ok with following what we do in LB3:
i.e.
package.json, uselicense": "UNLICENSED"LICENSEfile at all