elm-typescript-interop icon indicating copy to clipboard operation
elm-typescript-interop copied to clipboard

Add license to use this project

Open MikeTschudi opened this issue 6 years ago • 3 comments
trafficstars

Please consider adding a license to this work, and output the license statement in the generated index.d.ts file.

I'm only permitted to use works with an Apache 2.0 compatible license or an Apache 2.0 compatible public domain license; I hope that that will be possible for you.

Thank you.

MikeTschudi avatar Apr 04 '19 20:04 MikeTschudi

Hello! I added a license to the repo: https://github.com/dillonkearns/elm-typescript-interop/blob/master/LICENSE.

I had a license specified in the package.json, but it's a good practice to include it in the repo as well.

What would be a good way to describe the license in the generated file? Should I link to the license file, or link to the repo maybe? And mention that it is BSD-3?

dillonkearns avatar Apr 09 '19 18:04 dillonkearns

Thank you, @dillonkearns!

I've seen many variations of license; I don't know what is legally best. Here are some examples from some major open-source providers, however:

/*! jQuery v3.3.1 | (c) JS Foundation and other contributors | jquery.org/license */
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.10/esri/copyright.txt for details.
/**
 * @license RequireJS 2.3.6 Copyright jQuery Foundation and other contributors.
 * Released under MIT license, https://github.com/requirejs/requirejs/blob/master/LICENSE
 */
/*
	Copyright (c) 2004-2016, The JS Foundation All Rights Reserved.
	Available via Academic Free License >= 2.1 OR the modified BSD license.
	see: http://dojotoolkit.org/license for details
*/
/*
 | Copyright 2018 Esri
 |
 | Licensed under the Apache License, Version 2.0 (the "License");
 | you may not use this file except in compliance with the License.
 | You may obtain a copy of the License at
 |
 |    http://www.apache.org/licenses/LICENSE-2.0
 |
 | Unless required by applicable law or agreed to in writing, software
 | distributed under the License is distributed on an "AS IS" BASIS,
 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | See the License for the specific language governing permissions and
 | limitations under the License.
 */

MikeTschudi avatar Apr 09 '19 18:04 MikeTschudi

Wow, perfect, thanks for all those examples! 💯 That's super helpful.

dillonkearns avatar Apr 10 '19 19:04 dillonkearns