@cas-smartdesign/license-generator 1.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,8 @@
1
+ Copyright 2020 CAS Software AG
2
+
3
+ This software is confidential and proprietary information of CAS Software AG. You shall not
4
+ disclose such Confidential Information and shall use it only in accordance with the terms of
5
+ the license agreement you entered into with CAS Software AG or SmartWe World AG.
6
+
7
+ To obtain a license (e.g. by joining the partner programs of CAS Software AG or SmartWe World AG)
8
+ please contact partnerinfo@cas.de or partnerinfo@smartwe.world.
package/bin/index.js ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ "use strict";require("./license-generator").run();
@@ -0,0 +1 @@
1
+ var V=Object.create;var O=Object.defineProperty;var W=Object.getOwnPropertyDescriptor;var Y=Object.getOwnPropertyNames;var _=Object.getPrototypeOf,z=Object.prototype.hasOwnProperty;var Q=(e,n)=>{for(var o in n)O(e,o,{get:n[o],enumerable:!0})},w=(e,n,o,s)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of Y(n))!z.call(e,t)&&t!==o&&O(e,t,{get:()=>n[t],enumerable:!(s=W(n,t))||s.enumerable});return e};var k=(e,n,o)=>(o=e!=null?V(_(e)):{},w(n||!e||!e.__esModule?O(o,"default",{value:e,enumerable:!0}):o,e)),X=e=>w(O({},"__esModule",{value:!0}),e);var se={};Q(se,{run:()=>ne});module.exports=X(se);var $=k(require("path"));var J=k(require("fs")),P=k(require("path")),Z=require("resolve-pkg"),m=(e,n,o,s=!1)=>{let t=Z(n,{cwd:e}),i=[],c=f=>{i.push(f);try{return JSON.parse(J.readFileSync(f,{encoding:"utf8"}))}catch{}},a=null;return t!=null&&(a=c(P.join(e,t,o))),a==null&&(t=P.join(e,"node_modules",n),a=c(P.join(t,o))),a==null?(s||(console.error(`Failed to resolve module content from '${e}', module: ${n}, in-module path: ${o}!`),console.error("Attempts:",i)),null):{resolvedPath:t,json:a}};var x=k(require("fs")),E=k(require("path")),D=e=>x.readdirSync(e.resolvedPath,{encoding:"utf8"}).filter(s=>{let t=E.resolve(e.resolvedPath,s);if(!x.lstatSync(t).isFile())return!1;let i=s.toUpperCase();return i.indexOf("LICENSE")>-1||i.indexOf("LICENCE")>-1||i.indexOf("COPYING")>-1})[0];var L=e=>(e=e.replace("github:",""),e=e.replace("git+ssh://git@","git://"),e=e.replace("git+https://github.com","https://github.com"),e=e.replace("git://github.com","https://github.com"),e=e.replace("git@github.com:","https://github.com/"),e=e.replace(".git",""),e.indexOf("://")==-1&&(e="https://github.com/"+e),e);var F=(e,n,o)=>{let s=e.json,t=o(e),i;typeof s.repository=="object"&&s.repository.url?i=L(s.repository.url):typeof s.repository=="string"&&(i=L(s.repository)),i&&(i=i.replace("git://","https://"));let c;i&&t&&(c=i+"/raw/HEAD/"+t),!c&&s.homepage&&(c=s.homepage),c||(c=i);let a="UNKNOWN";return typeof s.license=="object"&&s.license.url?(a=s.license.type,c=L(s.license.url)):typeof s.license=="string"&&(a=s.license),{licenses:a,repository:i,licenseUrl:c,parents:[n]}};var T=(e,n,o,s)=>{let t;if(o?t=m(e,o,"package.json",!0):t={resolvedPath:e,json:require($.join(e,"package.json"))},o&&!t)return;let i=t.json;n==null&&(n=i.name);let c=i.name+"@"+i.version;if(s[c]){s[c].parents.push(n);return}s[c]=F(t,n,D);let a={...i.devDependencies||{},...i.dependencies||{}};Object.keys(a).forEach(f=>{T(e,i.name,f,s)})},y=async function(e){let n={};return T(e,void 0,void 0,n),n};var b=require("path"),B=require("fs"),d=process.cwd(),M=(e,n,o)=>{let s=JSON.parse(JSON.stringify({...n,...e}));return Object.keys(n).forEach(t=>{s[t]&&(o?s[t].parents=[...n[t].parents]:s[t].parents=Array.from(new Set(s[t].parents.concat(n[t].parents))))}),Object.keys(s).forEach(t=>{s[t].parents.sort()}),s};async function q(e){let n=b.resolve(e.root?e.root:d),o=e.excludeShared!=null,s=e.transitiveScopes||[],t=e.includeParents!=null,i=r=>["@cas-smartdesign","@smartdesign",...s].some(p=>r.indexOf(p)==0);console.warn(`Extracting licenses in ${d}`);let c=await(n==d?{}:y(n)),a=await y(d),f=M(c,a,o),h={};Object.keys(f).map(r=>{let g=/(.*)@(.*)/.exec(r),l=g[1],v=g[2];h[l]=h[l]||{},h[l][v]=f[r]});let A=(r,p)=>m(r,p,"package.json")||(n!=d?m(n,p,"package.json"):null),C=(r,p)=>m(r,p,"npm-third-party-licenses.json")?.json,N=r=>{console.log(`Resolving dependencies for ${r}`);let p=require(b.resolve(r,"package.json")),g={...p.devDependencies||{},...p.dependencies||{}},l={};return Object.keys(g).forEach(v=>{let I=A(r,v);if(I==null)return;let u=I.json,j=h[u.name];if(j==null||j[u.version]==null)console.warn(`Missing license for package ${u.name}@${u.version}`);else if(i(v)){let R=C(r,v);R&&(l={...l,...R})}else l[`${u.name}@${u.version}`]={...j[u.version]}}),l},K=n==d?[]:N(n),G=N(d);function H(r){return Object.keys(r).sort().reduce((p,g)=>{let l=r[g];return p[g]=l,p},{})}let S={...o?[]:K,...G};t||Object.keys(S).forEach(r=>{S[r].parents=void 0}),B.writeFileSync(b.resolve(d,"npm-third-party-licenses.json"),JSON.stringify(H(S),null,4))}var U=require("yargs"),ee=U.option("root",{alias:"r",description:"Directory in which the crawling process should be started in",type:"string"}).option("transitiveScopes",{alias:"ts",description:"Inherit licenses transitively from the given scopes",type:"array"}).option("excludeShared",{alias:"es",description:"Exclude shared dependencies, inherited from the workspace",type:"boolean"}).option("includeParents",{description:"Include parents property in the generated license file",type:"boolean"}).help().alias("help","h").argv;async function ne(){q(await ee)}0&&(module.exports={run});
@@ -0,0 +1,932 @@
1
+ /* ../node_modules/.pnpm/github-markdown-css@5.5.0/node_modules/github-markdown-css/github-markdown-light.css */
2
+ .markdown-body {
3
+ -ms-text-size-adjust: 100%;
4
+ -webkit-text-size-adjust: 100%;
5
+ margin: 0;
6
+ color: #1F2328;
7
+ background-color: #ffffff;
8
+ font-family:
9
+ -apple-system,
10
+ BlinkMacSystemFont,
11
+ "Segoe UI",
12
+ "Noto Sans",
13
+ Helvetica,
14
+ Arial,
15
+ sans-serif,
16
+ "Apple Color Emoji",
17
+ "Segoe UI Emoji";
18
+ font-size: 16px;
19
+ line-height: 1.5;
20
+ word-wrap: break-word;
21
+ }
22
+ .markdown-body .octicon {
23
+ display: inline-block;
24
+ fill: currentColor;
25
+ vertical-align: text-bottom;
26
+ }
27
+ .markdown-body h1:hover .anchor .octicon-link:before,
28
+ .markdown-body h2:hover .anchor .octicon-link:before,
29
+ .markdown-body h3:hover .anchor .octicon-link:before,
30
+ .markdown-body h4:hover .anchor .octicon-link:before,
31
+ .markdown-body h5:hover .anchor .octicon-link:before,
32
+ .markdown-body h6:hover .anchor .octicon-link:before {
33
+ width: 16px;
34
+ height: 16px;
35
+ content: " ";
36
+ display: inline-block;
37
+ background-color: currentColor;
38
+ -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' version='1.1' aria-hidden='true'><path fill-rule='evenodd' d='M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z'></path></svg>");
39
+ mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' version='1.1' aria-hidden='true'><path fill-rule='evenodd' d='M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z'></path></svg>");
40
+ }
41
+ .markdown-body details,
42
+ .markdown-body figcaption,
43
+ .markdown-body figure {
44
+ display: block;
45
+ }
46
+ .markdown-body summary {
47
+ display: list-item;
48
+ }
49
+ .markdown-body [hidden] {
50
+ display: none !important;
51
+ }
52
+ .markdown-body a {
53
+ background-color: transparent;
54
+ color: #0969da;
55
+ text-decoration: none;
56
+ }
57
+ .markdown-body abbr[title] {
58
+ border-bottom: none;
59
+ -webkit-text-decoration: underline dotted;
60
+ text-decoration: underline dotted;
61
+ }
62
+ .markdown-body b,
63
+ .markdown-body strong {
64
+ font-weight: 600;
65
+ }
66
+ .markdown-body dfn {
67
+ font-style: italic;
68
+ }
69
+ .markdown-body h1 {
70
+ margin: .67em 0;
71
+ font-weight: 600;
72
+ padding-bottom: .3em;
73
+ font-size: 2em;
74
+ border-bottom: 1px solid hsla(210, 18%, 87%, 1);
75
+ }
76
+ .markdown-body mark {
77
+ background-color: #fff8c5;
78
+ color: #1F2328;
79
+ }
80
+ .markdown-body small {
81
+ font-size: 90%;
82
+ }
83
+ .markdown-body sub,
84
+ .markdown-body sup {
85
+ font-size: 75%;
86
+ line-height: 0;
87
+ position: relative;
88
+ vertical-align: baseline;
89
+ }
90
+ .markdown-body sub {
91
+ bottom: -0.25em;
92
+ }
93
+ .markdown-body sup {
94
+ top: -0.5em;
95
+ }
96
+ .markdown-body img {
97
+ border-style: none;
98
+ max-width: 100%;
99
+ box-sizing: content-box;
100
+ background-color: #ffffff;
101
+ }
102
+ .markdown-body code,
103
+ .markdown-body kbd,
104
+ .markdown-body pre,
105
+ .markdown-body samp {
106
+ font-family: monospace;
107
+ font-size: 1em;
108
+ }
109
+ .markdown-body figure {
110
+ margin: 1em 40px;
111
+ }
112
+ .markdown-body hr {
113
+ box-sizing: content-box;
114
+ overflow: hidden;
115
+ background: transparent;
116
+ border-bottom: 1px solid hsla(210, 18%, 87%, 1);
117
+ height: .25em;
118
+ padding: 0;
119
+ margin: 24px 0;
120
+ background-color: #d0d7de;
121
+ border: 0;
122
+ }
123
+ .markdown-body input {
124
+ font: inherit;
125
+ margin: 0;
126
+ overflow: visible;
127
+ font-family: inherit;
128
+ font-size: inherit;
129
+ line-height: inherit;
130
+ }
131
+ .markdown-body [type=button],
132
+ .markdown-body [type=reset],
133
+ .markdown-body [type=submit] {
134
+ -webkit-appearance: button;
135
+ appearance: button;
136
+ }
137
+ .markdown-body [type=checkbox],
138
+ .markdown-body [type=radio] {
139
+ box-sizing: border-box;
140
+ padding: 0;
141
+ }
142
+ .markdown-body [type=number]::-webkit-inner-spin-button,
143
+ .markdown-body [type=number]::-webkit-outer-spin-button {
144
+ height: auto;
145
+ }
146
+ .markdown-body [type=search]::-webkit-search-cancel-button,
147
+ .markdown-body [type=search]::-webkit-search-decoration {
148
+ -webkit-appearance: none;
149
+ appearance: none;
150
+ }
151
+ .markdown-body ::-webkit-input-placeholder {
152
+ color: inherit;
153
+ opacity: .54;
154
+ }
155
+ .markdown-body ::-webkit-file-upload-button {
156
+ -webkit-appearance: button;
157
+ appearance: button;
158
+ font: inherit;
159
+ }
160
+ .markdown-body a:hover {
161
+ text-decoration: underline;
162
+ }
163
+ .markdown-body ::placeholder {
164
+ color: #6e7781;
165
+ opacity: 1;
166
+ }
167
+ .markdown-body hr::before {
168
+ display: table;
169
+ content: "";
170
+ }
171
+ .markdown-body hr::after {
172
+ display: table;
173
+ clear: both;
174
+ content: "";
175
+ }
176
+ .markdown-body table {
177
+ border-spacing: 0;
178
+ border-collapse: collapse;
179
+ display: block;
180
+ width: max-content;
181
+ max-width: 100%;
182
+ overflow: auto;
183
+ }
184
+ .markdown-body td,
185
+ .markdown-body th {
186
+ padding: 0;
187
+ }
188
+ .markdown-body details summary {
189
+ cursor: pointer;
190
+ }
191
+ .markdown-body details:not([open]) > *:not(summary) {
192
+ display: none !important;
193
+ }
194
+ .markdown-body a:focus,
195
+ .markdown-body [role=button]:focus,
196
+ .markdown-body input[type=radio]:focus,
197
+ .markdown-body input[type=checkbox]:focus {
198
+ outline: 2px solid #0969da;
199
+ outline-offset: -2px;
200
+ box-shadow: none;
201
+ }
202
+ .markdown-body a:focus:not(:focus-visible),
203
+ .markdown-body [role=button]:focus:not(:focus-visible),
204
+ .markdown-body input[type=radio]:focus:not(:focus-visible),
205
+ .markdown-body input[type=checkbox]:focus:not(:focus-visible) {
206
+ outline: solid 1px transparent;
207
+ }
208
+ .markdown-body a:focus-visible,
209
+ .markdown-body [role=button]:focus-visible,
210
+ .markdown-body input[type=radio]:focus-visible,
211
+ .markdown-body input[type=checkbox]:focus-visible {
212
+ outline: 2px solid #0969da;
213
+ outline-offset: -2px;
214
+ box-shadow: none;
215
+ }
216
+ .markdown-body a:not([class]):focus,
217
+ .markdown-body a:not([class]):focus-visible,
218
+ .markdown-body input[type=radio]:focus,
219
+ .markdown-body input[type=radio]:focus-visible,
220
+ .markdown-body input[type=checkbox]:focus,
221
+ .markdown-body input[type=checkbox]:focus-visible {
222
+ outline-offset: 0;
223
+ }
224
+ .markdown-body kbd {
225
+ display: inline-block;
226
+ padding: 3px 5px;
227
+ font:
228
+ 11px ui-monospace,
229
+ SFMono-Regular,
230
+ SF Mono,
231
+ Menlo,
232
+ Consolas,
233
+ Liberation Mono,
234
+ monospace;
235
+ line-height: 10px;
236
+ color: #1F2328;
237
+ vertical-align: middle;
238
+ background-color: #f6f8fa;
239
+ border: solid 1px rgba(175, 184, 193, 0.2);
240
+ border-bottom-color: rgba(175, 184, 193, 0.2);
241
+ border-radius: 6px;
242
+ box-shadow: inset 0 -1px 0 rgba(175, 184, 193, 0.2);
243
+ }
244
+ .markdown-body h1,
245
+ .markdown-body h2,
246
+ .markdown-body h3,
247
+ .markdown-body h4,
248
+ .markdown-body h5,
249
+ .markdown-body h6 {
250
+ margin-top: 24px;
251
+ margin-bottom: 16px;
252
+ font-weight: 600;
253
+ line-height: 1.25;
254
+ }
255
+ .markdown-body h2 {
256
+ font-weight: 600;
257
+ padding-bottom: .3em;
258
+ font-size: 1.5em;
259
+ border-bottom: 1px solid hsla(210, 18%, 87%, 1);
260
+ }
261
+ .markdown-body h3 {
262
+ font-weight: 600;
263
+ font-size: 1.25em;
264
+ }
265
+ .markdown-body h4 {
266
+ font-weight: 600;
267
+ font-size: 1em;
268
+ }
269
+ .markdown-body h5 {
270
+ font-weight: 600;
271
+ font-size: .875em;
272
+ }
273
+ .markdown-body h6 {
274
+ font-weight: 600;
275
+ font-size: .85em;
276
+ color: #656d76;
277
+ }
278
+ .markdown-body p {
279
+ margin-top: 0;
280
+ margin-bottom: 10px;
281
+ }
282
+ .markdown-body blockquote {
283
+ margin: 0;
284
+ padding: 0 1em;
285
+ color: #656d76;
286
+ border-left: .25em solid #d0d7de;
287
+ }
288
+ .markdown-body ul,
289
+ .markdown-body ol {
290
+ margin-top: 0;
291
+ margin-bottom: 0;
292
+ padding-left: 2em;
293
+ }
294
+ .markdown-body ol ol,
295
+ .markdown-body ul ol {
296
+ list-style-type: lower-roman;
297
+ }
298
+ .markdown-body ul ul ol,
299
+ .markdown-body ul ol ol,
300
+ .markdown-body ol ul ol,
301
+ .markdown-body ol ol ol {
302
+ list-style-type: lower-alpha;
303
+ }
304
+ .markdown-body dd {
305
+ margin-left: 0;
306
+ }
307
+ .markdown-body tt,
308
+ .markdown-body code,
309
+ .markdown-body samp {
310
+ font-family:
311
+ ui-monospace,
312
+ SFMono-Regular,
313
+ SF Mono,
314
+ Menlo,
315
+ Consolas,
316
+ Liberation Mono,
317
+ monospace;
318
+ font-size: 12px;
319
+ }
320
+ .markdown-body pre {
321
+ margin-top: 0;
322
+ margin-bottom: 0;
323
+ font-family:
324
+ ui-monospace,
325
+ SFMono-Regular,
326
+ SF Mono,
327
+ Menlo,
328
+ Consolas,
329
+ Liberation Mono,
330
+ monospace;
331
+ font-size: 12px;
332
+ word-wrap: normal;
333
+ }
334
+ .markdown-body .octicon {
335
+ display: inline-block;
336
+ overflow: visible !important;
337
+ vertical-align: text-bottom;
338
+ fill: currentColor;
339
+ }
340
+ .markdown-body input::-webkit-outer-spin-button,
341
+ .markdown-body input::-webkit-inner-spin-button {
342
+ margin: 0;
343
+ -webkit-appearance: none;
344
+ appearance: none;
345
+ }
346
+ .markdown-body .mr-2 {
347
+ margin-right: 8px !important;
348
+ }
349
+ .markdown-body::before {
350
+ display: table;
351
+ content: "";
352
+ }
353
+ .markdown-body::after {
354
+ display: table;
355
+ clear: both;
356
+ content: "";
357
+ }
358
+ .markdown-body > *:first-child {
359
+ margin-top: 0 !important;
360
+ }
361
+ .markdown-body > *:last-child {
362
+ margin-bottom: 0 !important;
363
+ }
364
+ .markdown-body a:not([href]) {
365
+ color: inherit;
366
+ text-decoration: none;
367
+ }
368
+ .markdown-body .absent {
369
+ color: #d1242f;
370
+ }
371
+ .markdown-body .anchor {
372
+ float: left;
373
+ padding-right: 4px;
374
+ margin-left: -20px;
375
+ line-height: 1;
376
+ }
377
+ .markdown-body .anchor:focus {
378
+ outline: none;
379
+ }
380
+ .markdown-body p,
381
+ .markdown-body blockquote,
382
+ .markdown-body ul,
383
+ .markdown-body ol,
384
+ .markdown-body dl,
385
+ .markdown-body table,
386
+ .markdown-body pre,
387
+ .markdown-body details {
388
+ margin-top: 0;
389
+ margin-bottom: 16px;
390
+ }
391
+ .markdown-body blockquote > :first-child {
392
+ margin-top: 0;
393
+ }
394
+ .markdown-body blockquote > :last-child {
395
+ margin-bottom: 0;
396
+ }
397
+ .markdown-body h1 .octicon-link,
398
+ .markdown-body h2 .octicon-link,
399
+ .markdown-body h3 .octicon-link,
400
+ .markdown-body h4 .octicon-link,
401
+ .markdown-body h5 .octicon-link,
402
+ .markdown-body h6 .octicon-link {
403
+ color: #1F2328;
404
+ vertical-align: middle;
405
+ visibility: hidden;
406
+ }
407
+ .markdown-body h1:hover .anchor,
408
+ .markdown-body h2:hover .anchor,
409
+ .markdown-body h3:hover .anchor,
410
+ .markdown-body h4:hover .anchor,
411
+ .markdown-body h5:hover .anchor,
412
+ .markdown-body h6:hover .anchor {
413
+ text-decoration: none;
414
+ }
415
+ .markdown-body h1:hover .anchor .octicon-link,
416
+ .markdown-body h2:hover .anchor .octicon-link,
417
+ .markdown-body h3:hover .anchor .octicon-link,
418
+ .markdown-body h4:hover .anchor .octicon-link,
419
+ .markdown-body h5:hover .anchor .octicon-link,
420
+ .markdown-body h6:hover .anchor .octicon-link {
421
+ visibility: visible;
422
+ }
423
+ .markdown-body h1 tt,
424
+ .markdown-body h1 code,
425
+ .markdown-body h2 tt,
426
+ .markdown-body h2 code,
427
+ .markdown-body h3 tt,
428
+ .markdown-body h3 code,
429
+ .markdown-body h4 tt,
430
+ .markdown-body h4 code,
431
+ .markdown-body h5 tt,
432
+ .markdown-body h5 code,
433
+ .markdown-body h6 tt,
434
+ .markdown-body h6 code {
435
+ padding: 0 .2em;
436
+ font-size: inherit;
437
+ }
438
+ .markdown-body summary h1,
439
+ .markdown-body summary h2,
440
+ .markdown-body summary h3,
441
+ .markdown-body summary h4,
442
+ .markdown-body summary h5,
443
+ .markdown-body summary h6 {
444
+ display: inline-block;
445
+ }
446
+ .markdown-body summary h1 .anchor,
447
+ .markdown-body summary h2 .anchor,
448
+ .markdown-body summary h3 .anchor,
449
+ .markdown-body summary h4 .anchor,
450
+ .markdown-body summary h5 .anchor,
451
+ .markdown-body summary h6 .anchor {
452
+ margin-left: -40px;
453
+ }
454
+ .markdown-body summary h1,
455
+ .markdown-body summary h2 {
456
+ padding-bottom: 0;
457
+ border-bottom: 0;
458
+ }
459
+ .markdown-body ul.no-list,
460
+ .markdown-body ol.no-list {
461
+ padding: 0;
462
+ list-style-type: none;
463
+ }
464
+ .markdown-body ol[type="a s"] {
465
+ list-style-type: lower-alpha;
466
+ }
467
+ .markdown-body ol[type="A s"] {
468
+ list-style-type: upper-alpha;
469
+ }
470
+ .markdown-body ol[type="i s"] {
471
+ list-style-type: lower-roman;
472
+ }
473
+ .markdown-body ol[type="I s"] {
474
+ list-style-type: upper-roman;
475
+ }
476
+ .markdown-body ol[type="1"] {
477
+ list-style-type: decimal;
478
+ }
479
+ .markdown-body div > ol:not([type]) {
480
+ list-style-type: decimal;
481
+ }
482
+ .markdown-body ul ul,
483
+ .markdown-body ul ol,
484
+ .markdown-body ol ol,
485
+ .markdown-body ol ul {
486
+ margin-top: 0;
487
+ margin-bottom: 0;
488
+ }
489
+ .markdown-body li > p {
490
+ margin-top: 16px;
491
+ }
492
+ .markdown-body li + li {
493
+ margin-top: .25em;
494
+ }
495
+ .markdown-body dl {
496
+ padding: 0;
497
+ }
498
+ .markdown-body dl dt {
499
+ padding: 0;
500
+ margin-top: 16px;
501
+ font-size: 1em;
502
+ font-style: italic;
503
+ font-weight: 600;
504
+ }
505
+ .markdown-body dl dd {
506
+ padding: 0 16px;
507
+ margin-bottom: 16px;
508
+ }
509
+ .markdown-body table th {
510
+ font-weight: 600;
511
+ }
512
+ .markdown-body table th,
513
+ .markdown-body table td {
514
+ padding: 6px 13px;
515
+ border: 1px solid #d0d7de;
516
+ }
517
+ .markdown-body table td > :last-child {
518
+ margin-bottom: 0;
519
+ }
520
+ .markdown-body table tr {
521
+ background-color: #ffffff;
522
+ border-top: 1px solid hsla(210, 18%, 87%, 1);
523
+ }
524
+ .markdown-body table tr:nth-child(2n) {
525
+ background-color: #f6f8fa;
526
+ }
527
+ .markdown-body table img {
528
+ background-color: transparent;
529
+ }
530
+ .markdown-body img[align=right] {
531
+ padding-left: 20px;
532
+ }
533
+ .markdown-body img[align=left] {
534
+ padding-right: 20px;
535
+ }
536
+ .markdown-body .emoji {
537
+ max-width: none;
538
+ vertical-align: text-top;
539
+ background-color: transparent;
540
+ }
541
+ .markdown-body span.frame {
542
+ display: block;
543
+ overflow: hidden;
544
+ }
545
+ .markdown-body span.frame > span {
546
+ display: block;
547
+ float: left;
548
+ width: auto;
549
+ padding: 7px;
550
+ margin: 13px 0 0;
551
+ overflow: hidden;
552
+ border: 1px solid #d0d7de;
553
+ }
554
+ .markdown-body span.frame span img {
555
+ display: block;
556
+ float: left;
557
+ }
558
+ .markdown-body span.frame span span {
559
+ display: block;
560
+ padding: 5px 0 0;
561
+ clear: both;
562
+ color: #1F2328;
563
+ }
564
+ .markdown-body span.align-center {
565
+ display: block;
566
+ overflow: hidden;
567
+ clear: both;
568
+ }
569
+ .markdown-body span.align-center > span {
570
+ display: block;
571
+ margin: 13px auto 0;
572
+ overflow: hidden;
573
+ text-align: center;
574
+ }
575
+ .markdown-body span.align-center span img {
576
+ margin: 0 auto;
577
+ text-align: center;
578
+ }
579
+ .markdown-body span.align-right {
580
+ display: block;
581
+ overflow: hidden;
582
+ clear: both;
583
+ }
584
+ .markdown-body span.align-right > span {
585
+ display: block;
586
+ margin: 13px 0 0;
587
+ overflow: hidden;
588
+ text-align: right;
589
+ }
590
+ .markdown-body span.align-right span img {
591
+ margin: 0;
592
+ text-align: right;
593
+ }
594
+ .markdown-body span.float-left {
595
+ display: block;
596
+ float: left;
597
+ margin-right: 13px;
598
+ overflow: hidden;
599
+ }
600
+ .markdown-body span.float-left span {
601
+ margin: 13px 0 0;
602
+ }
603
+ .markdown-body span.float-right {
604
+ display: block;
605
+ float: right;
606
+ margin-left: 13px;
607
+ overflow: hidden;
608
+ }
609
+ .markdown-body span.float-right > span {
610
+ display: block;
611
+ margin: 13px auto 0;
612
+ overflow: hidden;
613
+ text-align: right;
614
+ }
615
+ .markdown-body code,
616
+ .markdown-body tt {
617
+ padding: .2em .4em;
618
+ margin: 0;
619
+ font-size: 85%;
620
+ white-space: break-spaces;
621
+ background-color: rgba(175, 184, 193, 0.2);
622
+ border-radius: 6px;
623
+ }
624
+ .markdown-body code br,
625
+ .markdown-body tt br {
626
+ display: none;
627
+ }
628
+ .markdown-body del code {
629
+ text-decoration: inherit;
630
+ }
631
+ .markdown-body samp {
632
+ font-size: 85%;
633
+ }
634
+ .markdown-body pre code {
635
+ font-size: 100%;
636
+ }
637
+ .markdown-body pre > code {
638
+ padding: 0;
639
+ margin: 0;
640
+ word-break: normal;
641
+ white-space: pre;
642
+ background: transparent;
643
+ border: 0;
644
+ }
645
+ .markdown-body .highlight {
646
+ margin-bottom: 16px;
647
+ }
648
+ .markdown-body .highlight pre {
649
+ margin-bottom: 0;
650
+ word-break: normal;
651
+ }
652
+ .markdown-body .highlight pre,
653
+ .markdown-body pre {
654
+ padding: 16px;
655
+ overflow: auto;
656
+ font-size: 85%;
657
+ line-height: 1.45;
658
+ color: #1F2328;
659
+ background-color: #f6f8fa;
660
+ border-radius: 6px;
661
+ }
662
+ .markdown-body pre code,
663
+ .markdown-body pre tt {
664
+ display: inline;
665
+ max-width: auto;
666
+ padding: 0;
667
+ margin: 0;
668
+ overflow: visible;
669
+ line-height: inherit;
670
+ word-wrap: normal;
671
+ background-color: transparent;
672
+ border: 0;
673
+ }
674
+ .markdown-body .csv-data td,
675
+ .markdown-body .csv-data th {
676
+ padding: 5px;
677
+ overflow: hidden;
678
+ font-size: 12px;
679
+ line-height: 1;
680
+ text-align: left;
681
+ white-space: nowrap;
682
+ }
683
+ .markdown-body .csv-data .blob-num {
684
+ padding: 10px 8px 9px;
685
+ text-align: right;
686
+ background: #ffffff;
687
+ border: 0;
688
+ }
689
+ .markdown-body .csv-data tr {
690
+ border-top: 0;
691
+ }
692
+ .markdown-body .csv-data th {
693
+ font-weight: 600;
694
+ background: #f6f8fa;
695
+ border-top: 0;
696
+ }
697
+ .markdown-body [data-footnote-ref]::before {
698
+ content: "[";
699
+ }
700
+ .markdown-body [data-footnote-ref]::after {
701
+ content: "]";
702
+ }
703
+ .markdown-body .footnotes {
704
+ font-size: 12px;
705
+ color: #656d76;
706
+ border-top: 1px solid #d0d7de;
707
+ }
708
+ .markdown-body .footnotes ol {
709
+ padding-left: 16px;
710
+ }
711
+ .markdown-body .footnotes ol ul {
712
+ display: inline-block;
713
+ padding-left: 16px;
714
+ margin-top: 16px;
715
+ }
716
+ .markdown-body .footnotes li {
717
+ position: relative;
718
+ }
719
+ .markdown-body .footnotes li:target::before {
720
+ position: absolute;
721
+ top: -8px;
722
+ right: -8px;
723
+ bottom: -8px;
724
+ left: -24px;
725
+ pointer-events: none;
726
+ content: "";
727
+ border: 2px solid #0969da;
728
+ border-radius: 6px;
729
+ }
730
+ .markdown-body .footnotes li:target {
731
+ color: #1F2328;
732
+ }
733
+ .markdown-body .footnotes .data-footnote-backref g-emoji {
734
+ font-family: monospace;
735
+ }
736
+ .markdown-body .pl-c {
737
+ color: #57606a;
738
+ }
739
+ .markdown-body .pl-c1,
740
+ .markdown-body .pl-s .pl-v {
741
+ color: #0550ae;
742
+ }
743
+ .markdown-body .pl-e,
744
+ .markdown-body .pl-en {
745
+ color: #6639ba;
746
+ }
747
+ .markdown-body .pl-smi,
748
+ .markdown-body .pl-s .pl-s1 {
749
+ color: #24292f;
750
+ }
751
+ .markdown-body .pl-ent {
752
+ color: #116329;
753
+ }
754
+ .markdown-body .pl-k {
755
+ color: #cf222e;
756
+ }
757
+ .markdown-body .pl-s,
758
+ .markdown-body .pl-pds,
759
+ .markdown-body .pl-s .pl-pse .pl-s1,
760
+ .markdown-body .pl-sr,
761
+ .markdown-body .pl-sr .pl-cce,
762
+ .markdown-body .pl-sr .pl-sre,
763
+ .markdown-body .pl-sr .pl-sra {
764
+ color: #0a3069;
765
+ }
766
+ .markdown-body .pl-v,
767
+ .markdown-body .pl-smw {
768
+ color: #953800;
769
+ }
770
+ .markdown-body .pl-bu {
771
+ color: #82071e;
772
+ }
773
+ .markdown-body .pl-ii {
774
+ color: #f6f8fa;
775
+ background-color: #82071e;
776
+ }
777
+ .markdown-body .pl-c2 {
778
+ color: #f6f8fa;
779
+ background-color: #cf222e;
780
+ }
781
+ .markdown-body .pl-sr .pl-cce {
782
+ font-weight: bold;
783
+ color: #116329;
784
+ }
785
+ .markdown-body .pl-ml {
786
+ color: #3b2300;
787
+ }
788
+ .markdown-body .pl-mh,
789
+ .markdown-body .pl-mh .pl-en,
790
+ .markdown-body .pl-ms {
791
+ font-weight: bold;
792
+ color: #0550ae;
793
+ }
794
+ .markdown-body .pl-mi {
795
+ font-style: italic;
796
+ color: #24292f;
797
+ }
798
+ .markdown-body .pl-mb {
799
+ font-weight: bold;
800
+ color: #24292f;
801
+ }
802
+ .markdown-body .pl-md {
803
+ color: #82071e;
804
+ background-color: #ffebe9;
805
+ }
806
+ .markdown-body .pl-mi1 {
807
+ color: #116329;
808
+ background-color: #dafbe1;
809
+ }
810
+ .markdown-body .pl-mc {
811
+ color: #953800;
812
+ background-color: #ffd8b5;
813
+ }
814
+ .markdown-body .pl-mi2 {
815
+ color: #eaeef2;
816
+ background-color: #0550ae;
817
+ }
818
+ .markdown-body .pl-mdr {
819
+ font-weight: bold;
820
+ color: #8250df;
821
+ }
822
+ .markdown-body .pl-ba {
823
+ color: #57606a;
824
+ }
825
+ .markdown-body .pl-sg {
826
+ color: #8c959f;
827
+ }
828
+ .markdown-body .pl-corl {
829
+ text-decoration: underline;
830
+ color: #0a3069;
831
+ }
832
+ .markdown-body g-emoji {
833
+ display: inline-block;
834
+ min-width: 1ch;
835
+ font-family:
836
+ "Apple Color Emoji",
837
+ "Segoe UI Emoji",
838
+ "Segoe UI Symbol";
839
+ font-size: 1em;
840
+ font-style: normal !important;
841
+ font-weight: 400;
842
+ line-height: 1;
843
+ vertical-align: -0.075em;
844
+ }
845
+ .markdown-body g-emoji img {
846
+ width: 1em;
847
+ height: 1em;
848
+ }
849
+ .markdown-body .task-list-item {
850
+ list-style-type: none;
851
+ }
852
+ .markdown-body .task-list-item label {
853
+ font-weight: 400;
854
+ }
855
+ .markdown-body .task-list-item.enabled label {
856
+ cursor: pointer;
857
+ }
858
+ .markdown-body .task-list-item + .task-list-item {
859
+ margin-top: 4px;
860
+ }
861
+ .markdown-body .task-list-item .handle {
862
+ display: none;
863
+ }
864
+ .markdown-body .task-list-item-checkbox {
865
+ margin: 0 .2em .25em -1.4em;
866
+ vertical-align: middle;
867
+ }
868
+ .markdown-body .contains-task-list:dir(rtl) .task-list-item-checkbox {
869
+ margin: 0 -1.6em .25em .2em;
870
+ }
871
+ .markdown-body .contains-task-list {
872
+ position: relative;
873
+ }
874
+ .markdown-body .contains-task-list:hover .task-list-item-convert-container,
875
+ .markdown-body .contains-task-list:focus-within .task-list-item-convert-container {
876
+ display: block;
877
+ width: auto;
878
+ height: 24px;
879
+ overflow: visible;
880
+ clip: auto;
881
+ }
882
+ .markdown-body ::-webkit-calendar-picker-indicator {
883
+ filter: invert(50%);
884
+ }
885
+ .markdown-body .markdown-alert {
886
+ padding: 8px 16px;
887
+ margin-bottom: 16px;
888
+ color: inherit;
889
+ border-left: .25em solid #d0d7de;
890
+ }
891
+ .markdown-body .markdown-alert > :first-child {
892
+ margin-top: 0;
893
+ }
894
+ .markdown-body .markdown-alert > :last-child {
895
+ margin-bottom: 0;
896
+ }
897
+ .markdown-body .markdown-alert .markdown-alert-title {
898
+ display: flex;
899
+ font-weight: 500;
900
+ align-items: center;
901
+ line-height: 1;
902
+ }
903
+ .markdown-body .markdown-alert.markdown-alert-note {
904
+ border-left-color: #0969da;
905
+ }
906
+ .markdown-body .markdown-alert.markdown-alert-note .markdown-alert-title {
907
+ color: #0969da;
908
+ }
909
+ .markdown-body .markdown-alert.markdown-alert-important {
910
+ border-left-color: #8250df;
911
+ }
912
+ .markdown-body .markdown-alert.markdown-alert-important .markdown-alert-title {
913
+ color: #8250df;
914
+ }
915
+ .markdown-body .markdown-alert.markdown-alert-warning {
916
+ border-left-color: #9a6700;
917
+ }
918
+ .markdown-body .markdown-alert.markdown-alert-warning .markdown-alert-title {
919
+ color: #9a6700;
920
+ }
921
+ .markdown-body .markdown-alert.markdown-alert-tip {
922
+ border-left-color: #1f883d;
923
+ }
924
+ .markdown-body .markdown-alert.markdown-alert-tip .markdown-alert-title {
925
+ color: #1a7f37;
926
+ }
927
+ .markdown-body .markdown-alert.markdown-alert-caution {
928
+ border-left-color: #cf222e;
929
+ }
930
+ .markdown-body .markdown-alert.markdown-alert-caution .markdown-alert-title {
931
+ color: #d1242f;
932
+ }
@@ -0,0 +1,23 @@
1
+ var __getOwnPropNames = Object.getOwnPropertyNames;
2
+ var __commonJS = (cb, mod) => function __require() {
3
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
4
+ };
5
+
6
+ // ../node_modules/.pnpm/github-markdown-css@5.5.0/node_modules/github-markdown-css/github-markdown-light.css
7
+ var require_github_markdown_light = __commonJS({
8
+ "../node_modules/.pnpm/github-markdown-css@5.5.0/node_modules/github-markdown-css/github-markdown-light.css"(exports, module) {
9
+ module.exports = {};
10
+ }
11
+ });
12
+
13
+ // markdown:../readme.md
14
+ var require_readme = __commonJS({
15
+ "markdown:../readme.md"(exports, module) {
16
+ module.exports = { html: '<h1>SmartDesign - Elements</h1>\n<p>A shared library of Web Components used by both the SmartDesign Web Client and SmartDesign Integrated Web Applications.</p>\n<h1>Prerequisites</h1>\n<p>The project setup and build configuration requires the followings to be installed.</p>\n<ul>\n<li>node 16.x <a href="https://nodejs.org/en/download/">download</a></li>\n<li>pnpm 7.x <a href="https://pnpm.io/installation/">download</a></li>\n</ul>\n<h1>Install project dependencies</h1>\n<ul>\n<li>configure nexus credentials for nexus.cas.de</li>\n<li>step into project root</li>\n<li>execute pnpm <code>$&gt; pnpm i</code><ul>\n<li>this installs dependencies across the workspace</li>\n</ul>\n</li>\n</ul>\n<h1>Linters / formatters</h1>\n<p>The project has certain linting / formatting rules defined via stylelint and eslint and prettier.</p>\n<p>The linters can be executed via <code>pnpm lint:check</code>, the formatter can be executed via <code>pnpm format:check</code>.\nBoth of these have a <code>fix</code> variant as well (<code>pnpm lint:fix</code> and <code>pnpm format:fix</code>), which also tries to automatically fix the linting/formatting errors.</p>\n<p>It is advised to configure the necessary extensions for the IDE for automatic linting and formatting.</p>\n<p>Note that the CI build is configured to fail if there are linting or formatting errors.</p>\n<p>For a faster feedback, the linting / formatting can be executed automatically in a pre-commit hook.\nThis can be installed via <code>pnpm prepare-hooks</code>.</p>\n<h2>Building individual packages</h2>\n<p><strong>There is no project wide build configuration at the moment</strong></p>\n<ul>\n<li>open terminal in the desired package</li>\n<li>execute the build script via <code>$&gt; pnpm build</code></li>\n<li>during development time one can (and should) use <code>$&gt; pnpm dev</code> which starts a webpack-dev-server instance<ul>\n<li>the es5 can be set as a target environment with --env es5 like <code>$&gt; pnpm dev --env es5=true</code> which makes it possible to test the elements for example also in IE 11</li>\n</ul>\n</li>\n</ul>\n<h2>Cross project dependencies</h2>\n<ul>\n<li>one may configure a dependency from within the workspace without any additional configuration<ul>\n<li>e.g. sd-z-layout -&gt; sd-custom-element-loader</li>\n</ul>\n</li>\n</ul>\n<h2>Publishing</h2>\n<p><strong>Publishing is handled automatically by the build pipeline, do not manually publish unless absolutely necessary</strong></p>\n<p>The .npmrc contains an auth token for the @cas-smartdesign scope, thus <code>pnpm publish</code> works by default.</p>\n<p>Note that pnpm checks if the current branch is your publish branch (<code>main</code>), clean, and up-to-date.</p>\n<p>If you don&#39;t have the <code>main</code> branch tracked, do it via <code>$&gt; git checkout -t origin/main</code>, otherwise\nuse <code>$&gt; git checkout main &amp;&amp; git pull</code> to check out and update your local branch.</p>\n<h2>Releasing versions</h2>\n<p>Release versions should be prepared using the <code>npm version major|minor|patch --no-git-tag-version</code> command.\nIf a change affects all packages one might run <code>pnpm --recursive exec npm --no-git-tag-version version patch</code> to prepare a new version for all packages.</p>\n<p>Releases are done by CI when the build pipeline succeeds on the main branch for all packages in the monorepo.</p>\n<h2>Testing</h2>\n<ul>\n<li><p>Cypress</p>\n<ul>\n<li>For UI testing we recommend Cypress, for an example on how to setup for a package, see the radio-button package.</li>\n<li>Note that if you want to use TypeScript and add a custom command, currently you have to add your command into the global cypress config (located inside the cypress folder in the root directory) and type it manually in the types.ts file.</li>\n</ul>\n</li>\n<li><p>Jest</p>\n<ul>\n<li>For unit testing we recommend Jest, visit the web-api package to see an example how to use it.</li>\n</ul>\n</li>\n</ul>\n', raw: "# SmartDesign - Elements\r\n\r\nA shared library of Web Components used by both the SmartDesign Web Client and SmartDesign Integrated Web Applications.\r\n\r\n# Prerequisites\r\n\r\nThe project setup and build configuration requires the followings to be installed.\r\n\r\n- node 16.x [download](https://nodejs.org/en/download/)\r\n- pnpm 7.x [download](https://pnpm.io/installation/)\r\n\r\n# Install project dependencies\r\n\r\n- configure nexus credentials for nexus.cas.de\r\n- step into project root\r\n- execute pnpm `$> pnpm i`\r\n - this installs dependencies across the workspace\r\n\r\n# Linters / formatters\r\n\r\nThe project has certain linting / formatting rules defined via stylelint and eslint and prettier.\r\n\r\nThe linters can be executed via `pnpm lint:check`, the formatter can be executed via `pnpm format:check`.\r\nBoth of these have a `fix` variant as well (`pnpm lint:fix` and `pnpm format:fix`), which also tries to automatically fix the linting/formatting errors.\r\n\r\nIt is advised to configure the necessary extensions for the IDE for automatic linting and formatting.\r\n\r\nNote that the CI build is configured to fail if there are linting or formatting errors.\r\n\r\nFor a faster feedback, the linting / formatting can be executed automatically in a pre-commit hook.\r\nThis can be installed via `pnpm prepare-hooks`.\r\n\r\n## Building individual packages\r\n\r\n**There is no project wide build configuration at the moment**\r\n\r\n- open terminal in the desired package\r\n- execute the build script via `$> pnpm build`\r\n- during development time one can (and should) use `$> pnpm dev` which starts a webpack-dev-server instance\r\n - the es5 can be set as a target environment with --env es5 like `$> pnpm dev --env es5=true` which makes it possible to test the elements for example also in IE 11\r\n\r\n## Cross project dependencies\r\n\r\n- one may configure a dependency from within the workspace without any additional configuration\r\n - e.g. sd-z-layout -> sd-custom-element-loader\r\n\r\n## Publishing\r\n\r\n**Publishing is handled automatically by the build pipeline, do not manually publish unless absolutely necessary**\r\n\r\nThe .npmrc contains an auth token for the @cas-smartdesign scope, thus `pnpm publish` works by default.\r\n\r\nNote that pnpm checks if the current branch is your publish branch (`main`), clean, and up-to-date.\r\n\r\nIf you don't have the `main` branch tracked, do it via `$> git checkout -t origin/main`, otherwise\r\nuse `$> git checkout main && git pull` to check out and update your local branch.\r\n\r\n## Releasing versions\r\n\r\nRelease versions should be prepared using the `npm version major|minor|patch --no-git-tag-version` command.\r\nIf a change affects all packages one might run `pnpm --recursive exec npm --no-git-tag-version version patch` to prepare a new version for all packages.\r\n\r\nReleases are done by CI when the build pipeline succeeds on the main branch for all packages in the monorepo.\r\n\r\n## Testing\r\n\r\n- Cypress\r\n\r\n - For UI testing we recommend Cypress, for an example on how to setup for a package, see the radio-button package.\r\n - Note that if you want to use TypeScript and add a custom command, currently you have to add your command into the global cypress config (located inside the cypress folder in the root directory) and type it manually in the types.ts file.\r\n\r\n- Jest\r\n - For unit testing we recommend Jest, visit the web-api package to see an example how to use it.\r\n", filename: "readme.md" };
17
+ }
18
+ });
19
+
20
+ // docs/doc.ts
21
+ require_github_markdown_light();
22
+ var readme = require_readme().html;
23
+ document.querySelector("#markdown-container").innerHTML = readme;
@@ -0,0 +1,26 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta http-equiv="X-UA-Compatible" content="IE=edge" />
6
+ <title>License generator</title>
7
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
8
+ <style>
9
+ .markdown-body {
10
+ box-sizing: border-box;
11
+ min-width: 200px;
12
+ max-width: 980px;
13
+ margin: 0 auto !important;
14
+ padding-bottom: 45px;
15
+ }
16
+ </style>
17
+ <link href="doc.css" rel="stylesheet" />
18
+ </head>
19
+
20
+ <body>
21
+ <div class="markdown-body">
22
+ <div id="markdown-container"></div>
23
+ </div>
24
+ <script type="module" src="./doc.mjs"></script>
25
+ </body>
26
+ </html>
@@ -0,0 +1,37 @@
1
+ {
2
+ "@vitest/coverage-v8@1.1.1": {
3
+ "licenses": "MIT",
4
+ "repository": "https://github.com/vitest-dev/vitest",
5
+ "licenseUrl": "https://github.com/vitest-dev/vitest/raw/HEAD/LICENSE"
6
+ },
7
+ "@vitest/ui@1.1.1": {
8
+ "licenses": "MIT",
9
+ "repository": "https://github.com/vitest-dev/vitest",
10
+ "licenseUrl": "https://github.com/vitest-dev/vitest/raw/HEAD/LICENSE"
11
+ },
12
+ "resolve-pkg@2.0.0": {
13
+ "licenses": "MIT",
14
+ "repository": "https://github.com/sindresorhus/resolve-pkg",
15
+ "licenseUrl": "https://github.com/sindresorhus/resolve-pkg/raw/HEAD/license"
16
+ },
17
+ "tsup@8.0.1": {
18
+ "licenses": "MIT",
19
+ "repository": "https://github.com/egoist/tsup",
20
+ "licenseUrl": "https://github.com/egoist/tsup/raw/HEAD/LICENSE"
21
+ },
22
+ "typescript@5.3.3": {
23
+ "licenses": "Apache-2.0",
24
+ "repository": "https://github.com/Microsoft/TypeScript",
25
+ "licenseUrl": "https://github.com/Microsoft/TypeScript/raw/HEAD/LICENSE.txt"
26
+ },
27
+ "vitest@1.1.1": {
28
+ "licenses": "MIT",
29
+ "repository": "https://github.com/vitest-dev/vitest",
30
+ "licenseUrl": "https://github.com/vitest-dev/vitest/raw/HEAD/LICENSE.md"
31
+ },
32
+ "yargs@17.7.2": {
33
+ "licenses": "MIT",
34
+ "repository": "https://github.com/yargs/yargs",
35
+ "licenseUrl": "https://github.com/yargs/yargs/raw/HEAD/LICENSE"
36
+ }
37
+ }
package/package.json ADDED
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "@cas-smartdesign/license-generator",
3
+ "version": "1.6.1",
4
+ "description": "A CLI tool to collect licenses from third party libraries",
5
+ "license": "SEE LICENSE IN LICENSE",
6
+ "bin": {
7
+ "sd-license-generator": "./bin/index.js"
8
+ },
9
+ "dependencies": {
10
+ "resolve-pkg": "^2.0.0",
11
+ "yargs": "^17.7.2"
12
+ },
13
+ "devDependencies": {
14
+ "@vitest/coverage-v8": "^1.1.1",
15
+ "@vitest/ui": "^1.1.1",
16
+ "tsup": "^8.0.1",
17
+ "typescript": "^5.3.3",
18
+ "vitest": "^1.1.1"
19
+ },
20
+ "files": [
21
+ "bin",
22
+ "dist",
23
+ "npm-third-party-licenses.json"
24
+ ],
25
+ "publishConfig": {
26
+ "registry": "https://registry.npmjs.org/",
27
+ "access": "public"
28
+ },
29
+ "scripts": {
30
+ "version": "pnpm version",
31
+ "build:no-license": "tsc --noEmit && tsup",
32
+ "build": "pnpm build:no-license && pnpm generate-license",
33
+ "test": "vitest --coverage --run",
34
+ "test:watch": "vitest --coverage --ui",
35
+ "generate-license": "node ./bin/index.js --es --r ../"
36
+ }
37
+ }
package/readme.md ADDED
@@ -0,0 +1,14 @@
1
+ # @cas-smartdesign/license-generator
2
+
3
+ A CLI tool to collect licenses from third party libraries of NPM packages.
4
+
5
+ ## Options:
6
+
7
+ Start with `-h` or `--help` to list the possible options.
8
+
9
+ # Disclaimer:
10
+
11
+ > The tool is made for internal use, it's API is not final and might not be
12
+ > suitable for legal purposes on it's own.
13
+ >
14
+ > Please keep this in mind when using it.