Skip to content

Commit f6b9074

Browse files
sapphi-redbluwy
andauthored
chore(create-vite): mark template files as CC0 (vitejs#18366)
Co-authored-by: Bjorn Lu <[email protected]>
1 parent 105ca12 commit f6b9074

File tree

3 files changed

+249
-1
lines changed

3 files changed

+249
-1
lines changed

packages/create-vite/LICENSE

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,127 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2323
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2424
SOFTWARE.
2525

26+
# License of the files in the directories starting with "template-" in create-vite
27+
The files in the directories starting with "template-" in create-vite and files
28+
generated from those files are licensed under the CC0 1.0 Universal license:
29+
30+
CC0 1.0 Universal
31+
32+
Statement of Purpose
33+
34+
The laws of most jurisdictions throughout the world automatically confer
35+
exclusive Copyright and Related Rights (defined below) upon the creator and
36+
subsequent owner(s) (each and all, an "owner") of an original work of
37+
authorship and/or a database (each, a "Work").
38+
39+
Certain owners wish to permanently relinquish those rights to a Work for the
40+
purpose of contributing to a commons of creative, cultural and scientific
41+
works ("Commons") that the public can reliably and without fear of later
42+
claims of infringement build upon, modify, incorporate in other works, reuse
43+
and redistribute as freely as possible in any form whatsoever and for any
44+
purposes, including without limitation commercial purposes. These owners may
45+
contribute to the Commons to promote the ideal of a free culture and the
46+
further production of creative, cultural and scientific works, or to gain
47+
reputation or greater distribution for their Work in part through the use and
48+
efforts of others.
49+
50+
For these and/or other purposes and motivations, and without any expectation
51+
of additional consideration or compensation, the person associating CC0 with a
52+
Work (the "Affirmer"), to the extent that he or she is an owner of Copyright
53+
and Related Rights in the Work, voluntarily elects to apply CC0 to the Work
54+
and publicly distribute the Work under its terms, with knowledge of his or her
55+
Copyright and Related Rights in the Work and the meaning and intended legal
56+
effect of CC0 on those rights.
57+
58+
1. Copyright and Related Rights. A Work made available under CC0 may be
59+
protected by copyright and related or neighboring rights ("Copyright and
60+
Related Rights"). Copyright and Related Rights include, but are not limited
61+
to, the following:
62+
63+
i. the right to reproduce, adapt, distribute, perform, display, communicate,
64+
and translate a Work;
65+
66+
ii. moral rights retained by the original author(s) and/or performer(s);
67+
68+
iii. publicity and privacy rights pertaining to a person's image or likeness
69+
depicted in a Work;
70+
71+
iv. rights protecting against unfair competition in regards to a Work,
72+
subject to the limitations in paragraph 4(a), below;
73+
74+
v. rights protecting the extraction, dissemination, use and reuse of data in
75+
a Work;
76+
77+
vi. database rights (such as those arising under Directive 96/9/EC of the
78+
European Parliament and of the Council of 11 March 1996 on the legal
79+
protection of databases, and under any national implementation thereof,
80+
including any amended or successor version of such directive); and
81+
82+
vii. other similar, equivalent or corresponding rights throughout the world
83+
based on applicable law or treaty, and any national implementations thereof.
84+
85+
2. Waiver. To the greatest extent permitted by, but not in contravention of,
86+
applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and
87+
unconditionally waives, abandons, and surrenders all of Affirmer's Copyright
88+
and Related Rights and associated claims and causes of action, whether now
89+
known or unknown (including existing as well as future claims and causes of
90+
action), in the Work (i) in all territories worldwide, (ii) for the maximum
91+
duration provided by applicable law or treaty (including future time
92+
extensions), (iii) in any current or future medium and for any number of
93+
copies, and (iv) for any purpose whatsoever, including without limitation
94+
commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes
95+
the Waiver for the benefit of each member of the public at large and to the
96+
detriment of Affirmer's heirs and successors, fully intending that such Waiver
97+
shall not be subject to revocation, rescission, cancellation, termination, or
98+
any other legal or equitable action to disrupt the quiet enjoyment of the Work
99+
by the public as contemplated by Affirmer's express Statement of Purpose.
100+
101+
3. Public License Fallback. Should any part of the Waiver for any reason be
102+
judged legally invalid or ineffective under applicable law, then the Waiver
103+
shall be preserved to the maximum extent permitted taking into account
104+
Affirmer's express Statement of Purpose. In addition, to the extent the Waiver
105+
is so judged Affirmer hereby grants to each affected person a royalty-free,
106+
non transferable, non sublicensable, non exclusive, irrevocable and
107+
unconditional license to exercise Affirmer's Copyright and Related Rights in
108+
the Work (i) in all territories worldwide, (ii) for the maximum duration
109+
provided by applicable law or treaty (including future time extensions), (iii)
110+
in any current or future medium and for any number of copies, and (iv) for any
111+
purpose whatsoever, including without limitation commercial, advertising or
112+
promotional purposes (the "License"). The License shall be deemed effective as
113+
of the date CC0 was applied by Affirmer to the Work. Should any part of the
114+
License for any reason be judged legally invalid or ineffective under
115+
applicable law, such partial invalidity or ineffectiveness shall not
116+
invalidate the remainder of the License, and in such case Affirmer hereby
117+
affirms that he or she will not (i) exercise any of his or her remaining
118+
Copyright and Related Rights in the Work or (ii) assert any associated claims
119+
and causes of action with respect to the Work, in either case contrary to
120+
Affirmer's express Statement of Purpose.
121+
122+
4. Limitations and Disclaimers.
123+
124+
a. No trademark or patent rights held by Affirmer are waived, abandoned,
125+
surrendered, licensed or otherwise affected by this document.
126+
127+
b. Affirmer offers the Work as-is and makes no representations or warranties
128+
of any kind concerning the Work, express, implied, statutory or otherwise,
129+
including without limitation warranties of title, merchantability, fitness
130+
for a particular purpose, non infringement, or the absence of latent or
131+
other defects, accuracy, or the present or absence of errors, whether or not
132+
discoverable, all to the greatest extent permissible under applicable law.
133+
134+
c. Affirmer disclaims responsibility for clearing rights of other persons
135+
that may apply to the Work or any use thereof, including without limitation
136+
any person's Copyright and Related Rights in the Work. Further, Affirmer
137+
disclaims responsibility for obtaining any necessary consents, permissions
138+
or other rights required for any use of the Work.
139+
140+
d. Affirmer understands and acknowledges that Creative Commons is not a
141+
party to this document and has no duty or obligation with respect to this
142+
CC0 or use of the Work.
143+
144+
For more information, please see
145+
<http://creativecommons.org/publicdomain/zero/1.0/>
146+
26147
# Licenses of bundled dependencies
27148
The published create-vite artifact additionally contains code with the following licenses:
28149
ISC, MIT

packages/create-vite/build.config.ts

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,132 @@ export default defineBuildConfig({
2828
path.resolve(__dirname, './LICENSE'),
2929
'create-vite license',
3030
'create-vite',
31+
'# License of the files in the directories starting with "template-" in create-vite\n' +
32+
'The files in the directories starting with "template-" in create-vite and files\n' +
33+
'generated from those files are licensed under the CC0 1.0 Universal license:\n\n' +
34+
cc0LicenseText +
35+
'\n\n',
3136
),
3237
]
3338
},
3439
},
3540
})
41+
42+
const cc0LicenseText = `
43+
CC0 1.0 Universal
44+
45+
Statement of Purpose
46+
47+
The laws of most jurisdictions throughout the world automatically confer
48+
exclusive Copyright and Related Rights (defined below) upon the creator and
49+
subsequent owner(s) (each and all, an "owner") of an original work of
50+
authorship and/or a database (each, a "Work").
51+
52+
Certain owners wish to permanently relinquish those rights to a Work for the
53+
purpose of contributing to a commons of creative, cultural and scientific
54+
works ("Commons") that the public can reliably and without fear of later
55+
claims of infringement build upon, modify, incorporate in other works, reuse
56+
and redistribute as freely as possible in any form whatsoever and for any
57+
purposes, including without limitation commercial purposes. These owners may
58+
contribute to the Commons to promote the ideal of a free culture and the
59+
further production of creative, cultural and scientific works, or to gain
60+
reputation or greater distribution for their Work in part through the use and
61+
efforts of others.
62+
63+
For these and/or other purposes and motivations, and without any expectation
64+
of additional consideration or compensation, the person associating CC0 with a
65+
Work (the "Affirmer"), to the extent that he or she is an owner of Copyright
66+
and Related Rights in the Work, voluntarily elects to apply CC0 to the Work
67+
and publicly distribute the Work under its terms, with knowledge of his or her
68+
Copyright and Related Rights in the Work and the meaning and intended legal
69+
effect of CC0 on those rights.
70+
71+
1. Copyright and Related Rights. A Work made available under CC0 may be
72+
protected by copyright and related or neighboring rights ("Copyright and
73+
Related Rights"). Copyright and Related Rights include, but are not limited
74+
to, the following:
75+
76+
i. the right to reproduce, adapt, distribute, perform, display, communicate,
77+
and translate a Work;
78+
79+
ii. moral rights retained by the original author(s) and/or performer(s);
80+
81+
iii. publicity and privacy rights pertaining to a person's image or likeness
82+
depicted in a Work;
83+
84+
iv. rights protecting against unfair competition in regards to a Work,
85+
subject to the limitations in paragraph 4(a), below;
86+
87+
v. rights protecting the extraction, dissemination, use and reuse of data in
88+
a Work;
89+
90+
vi. database rights (such as those arising under Directive 96/9/EC of the
91+
European Parliament and of the Council of 11 March 1996 on the legal
92+
protection of databases, and under any national implementation thereof,
93+
including any amended or successor version of such directive); and
94+
95+
vii. other similar, equivalent or corresponding rights throughout the world
96+
based on applicable law or treaty, and any national implementations thereof.
97+
98+
2. Waiver. To the greatest extent permitted by, but not in contravention of,
99+
applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and
100+
unconditionally waives, abandons, and surrenders all of Affirmer's Copyright
101+
and Related Rights and associated claims and causes of action, whether now
102+
known or unknown (including existing as well as future claims and causes of
103+
action), in the Work (i) in all territories worldwide, (ii) for the maximum
104+
duration provided by applicable law or treaty (including future time
105+
extensions), (iii) in any current or future medium and for any number of
106+
copies, and (iv) for any purpose whatsoever, including without limitation
107+
commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes
108+
the Waiver for the benefit of each member of the public at large and to the
109+
detriment of Affirmer's heirs and successors, fully intending that such Waiver
110+
shall not be subject to revocation, rescission, cancellation, termination, or
111+
any other legal or equitable action to disrupt the quiet enjoyment of the Work
112+
by the public as contemplated by Affirmer's express Statement of Purpose.
113+
114+
3. Public License Fallback. Should any part of the Waiver for any reason be
115+
judged legally invalid or ineffective under applicable law, then the Waiver
116+
shall be preserved to the maximum extent permitted taking into account
117+
Affirmer's express Statement of Purpose. In addition, to the extent the Waiver
118+
is so judged Affirmer hereby grants to each affected person a royalty-free,
119+
non transferable, non sublicensable, non exclusive, irrevocable and
120+
unconditional license to exercise Affirmer's Copyright and Related Rights in
121+
the Work (i) in all territories worldwide, (ii) for the maximum duration
122+
provided by applicable law or treaty (including future time extensions), (iii)
123+
in any current or future medium and for any number of copies, and (iv) for any
124+
purpose whatsoever, including without limitation commercial, advertising or
125+
promotional purposes (the "License"). The License shall be deemed effective as
126+
of the date CC0 was applied by Affirmer to the Work. Should any part of the
127+
License for any reason be judged legally invalid or ineffective under
128+
applicable law, such partial invalidity or ineffectiveness shall not
129+
invalidate the remainder of the License, and in such case Affirmer hereby
130+
affirms that he or she will not (i) exercise any of his or her remaining
131+
Copyright and Related Rights in the Work or (ii) assert any associated claims
132+
and causes of action with respect to the Work, in either case contrary to
133+
Affirmer's express Statement of Purpose.
134+
135+
4. Limitations and Disclaimers.
136+
137+
a. No trademark or patent rights held by Affirmer are waived, abandoned,
138+
surrendered, licensed or otherwise affected by this document.
139+
140+
b. Affirmer offers the Work as-is and makes no representations or warranties
141+
of any kind concerning the Work, express, implied, statutory or otherwise,
142+
including without limitation warranties of title, merchantability, fitness
143+
for a particular purpose, non infringement, or the absence of latent or
144+
other defects, accuracy, or the present or absence of errors, whether or not
145+
discoverable, all to the greatest extent permissible under applicable law.
146+
147+
c. Affirmer disclaims responsibility for clearing rights of other persons
148+
that may apply to the Work or any use thereof, including without limitation
149+
any person's Copyright and Related Rights in the Work. Further, Affirmer
150+
disclaims responsibility for obtaining any necessary consents, permissions
151+
or other rights required for any use of the Work.
152+
153+
d. Affirmer understands and acknowledges that Creative Commons is not a
154+
party to this document and has no duty or obligation with respect to this
155+
CC0 or use of the Work.
156+
157+
For more information, please see
158+
<http://creativecommons.org/publicdomain/zero/1.0/>
159+
`.trim()

packages/vite/rollupLicensePlugin.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export default function licensePlugin(
88
licenseFilePath: string,
99
licenseTitle: string,
1010
packageName: string,
11+
additionalSection?: string,
1112
): Plugin {
1213
return license({
1314
thirdParty(dependencies) {
@@ -95,7 +96,9 @@ export default function licensePlugin(
9596
`# ${licenseTitle}\n` +
9697
`${packageName} is released under the MIT license:\n\n` +
9798
coreLicense +
98-
`\n# Licenses of bundled dependencies\n` +
99+
`\n` +
100+
(additionalSection || '') +
101+
`# Licenses of bundled dependencies\n` +
99102
`The published ${packageName} artifact additionally contains code with the following licenses:\n` +
100103
`${licenses.join(', ')}\n\n` +
101104
`# Bundled dependencies:\n` +

0 commit comments

Comments
 (0)