lupine.press 1.0.0
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/README.md +79 -0
- package/package.json +18 -0
- package/src/components/index.ts +7 -0
- package/src/components/lang-switcher.tsx +38 -0
- package/src/components/press-content.tsx +146 -0
- package/src/components/press-header.tsx +80 -0
- package/src/components/press-heading.tsx +46 -0
- package/src/components/press-home.tsx +109 -0
- package/src/components/press-layout.tsx +46 -0
- package/src/components/press-sidemenu.tsx +74 -0
- package/src/frames/index.ts +1 -0
- package/src/frames/press-frame.tsx +163 -0
- package/src/index.ts +7 -0
- package/src/page/index.ts +1 -0
- package/src/page/press-page.tsx +73 -0
- package/src/services/cache.ts +18 -0
- package/src/services/index.ts +3 -0
- package/src/services/markdown.ts +18 -0
- package/src/services/press-load.ts +17 -0
- package/src/styles/github.svg +3 -0
- package/src/styles/global.css +496 -0
- package/src/styles/lang.svg +3 -0
- package/src/styles/menu.svg +3 -0
- package/src/styles/press-themes.ts +14 -0
- package/src/styles/theme.svg +9 -0
- package/tsconfig.json +113 -0
|
@@ -0,0 +1,496 @@
|
|
|
1
|
+
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
|
|
2
|
+
html,
|
|
3
|
+
body,
|
|
4
|
+
div,
|
|
5
|
+
span,
|
|
6
|
+
iframe,
|
|
7
|
+
h1,
|
|
8
|
+
h2,
|
|
9
|
+
h3,
|
|
10
|
+
h4,
|
|
11
|
+
h5,
|
|
12
|
+
h6,
|
|
13
|
+
p,
|
|
14
|
+
pre,
|
|
15
|
+
a,
|
|
16
|
+
img,
|
|
17
|
+
b,
|
|
18
|
+
u,
|
|
19
|
+
i,
|
|
20
|
+
center,
|
|
21
|
+
dl,
|
|
22
|
+
dt,
|
|
23
|
+
dd,
|
|
24
|
+
ol,
|
|
25
|
+
ul,
|
|
26
|
+
li,
|
|
27
|
+
fieldset,
|
|
28
|
+
form,
|
|
29
|
+
label,
|
|
30
|
+
legend,
|
|
31
|
+
table,
|
|
32
|
+
caption,
|
|
33
|
+
tbody,
|
|
34
|
+
tfoot,
|
|
35
|
+
thead,
|
|
36
|
+
tr,
|
|
37
|
+
th,
|
|
38
|
+
td {
|
|
39
|
+
margin: 0;
|
|
40
|
+
padding: 0;
|
|
41
|
+
border: 0;
|
|
42
|
+
font-size: 100%;
|
|
43
|
+
font: inherit;
|
|
44
|
+
vertical-align: baseline;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
applet,
|
|
48
|
+
object,
|
|
49
|
+
article,
|
|
50
|
+
aside,
|
|
51
|
+
canvas,
|
|
52
|
+
details,
|
|
53
|
+
embed,
|
|
54
|
+
figure,
|
|
55
|
+
figcaption,
|
|
56
|
+
footer,
|
|
57
|
+
header,
|
|
58
|
+
hgroup,
|
|
59
|
+
blockquote,
|
|
60
|
+
menu,
|
|
61
|
+
nav,
|
|
62
|
+
output,
|
|
63
|
+
ruby,
|
|
64
|
+
section,
|
|
65
|
+
summary,
|
|
66
|
+
time,
|
|
67
|
+
mark,
|
|
68
|
+
audio,
|
|
69
|
+
video,
|
|
70
|
+
abbr,
|
|
71
|
+
acronym,
|
|
72
|
+
address,
|
|
73
|
+
big,
|
|
74
|
+
cite,
|
|
75
|
+
code,
|
|
76
|
+
del,
|
|
77
|
+
dfn,
|
|
78
|
+
em,
|
|
79
|
+
ins,
|
|
80
|
+
kbd,
|
|
81
|
+
q,
|
|
82
|
+
s,
|
|
83
|
+
samp,
|
|
84
|
+
small,
|
|
85
|
+
strike,
|
|
86
|
+
strong,
|
|
87
|
+
sub,
|
|
88
|
+
sup,
|
|
89
|
+
tt,
|
|
90
|
+
var {
|
|
91
|
+
margin: 0;
|
|
92
|
+
padding: 0;
|
|
93
|
+
border: 0;
|
|
94
|
+
font-size: 100%;
|
|
95
|
+
font: inherit;
|
|
96
|
+
vertical-align: baseline;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/* HTML5 display-role reset for older browsers */
|
|
100
|
+
article,
|
|
101
|
+
aside,
|
|
102
|
+
details,
|
|
103
|
+
figcaption,
|
|
104
|
+
figure,
|
|
105
|
+
footer,
|
|
106
|
+
header,
|
|
107
|
+
hgroup,
|
|
108
|
+
menu,
|
|
109
|
+
nav,
|
|
110
|
+
section {
|
|
111
|
+
display: block;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* 1. Correct the line height in all browsers.
|
|
116
|
+
* 2. Prevent adjustments of font size after orientation changes in iOS.
|
|
117
|
+
*/
|
|
118
|
+
|
|
119
|
+
html {
|
|
120
|
+
line-height: 115%;
|
|
121
|
+
/* 1 */
|
|
122
|
+
-webkit-text-size-adjust: 100%;
|
|
123
|
+
/* 2 */
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/* line-height=1 means the line-height is the same as the font-size.
|
|
127
|
+
This causes the font to slightly overflow the line (scroll showing).
|
|
128
|
+
*/
|
|
129
|
+
/* body {
|
|
130
|
+
line-height: 115%;
|
|
131
|
+
} */
|
|
132
|
+
|
|
133
|
+
ol,
|
|
134
|
+
ul {
|
|
135
|
+
list-style: none;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
blockquote,
|
|
139
|
+
q {
|
|
140
|
+
quotes: none;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
blockquote:before,
|
|
144
|
+
blockquote:after,
|
|
145
|
+
q:before,
|
|
146
|
+
q:after {
|
|
147
|
+
content: '';
|
|
148
|
+
content: none;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
table {
|
|
152
|
+
border-collapse: collapse;
|
|
153
|
+
border-spacing: 0;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
*,
|
|
157
|
+
*:before,
|
|
158
|
+
*:after {
|
|
159
|
+
box-sizing: border-box;
|
|
160
|
+
/* default is content-box */
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
html,
|
|
164
|
+
body {
|
|
165
|
+
width: 100%;
|
|
166
|
+
height: 100%;
|
|
167
|
+
margin: 0;
|
|
168
|
+
padding: 0;
|
|
169
|
+
touch-action: none;
|
|
170
|
+
overflow: hidden;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/* h1 {
|
|
174
|
+
font-size: 2.5rem;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
h2 {
|
|
178
|
+
font-size: 2rem;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
h3 {
|
|
182
|
+
font-size: 1.375rem;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
h4 {
|
|
186
|
+
font-size: 1.125rem;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
h5 {
|
|
190
|
+
font-size: 1rem;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
h6 {
|
|
194
|
+
font-size: 0.875rem;
|
|
195
|
+
} */
|
|
196
|
+
|
|
197
|
+
/* Grouping content
|
|
198
|
+
========================================================================== */
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* 1. Add the correct box sizing in Firefox.
|
|
202
|
+
* 2. Show the overflow in Edge and IE.
|
|
203
|
+
*/
|
|
204
|
+
|
|
205
|
+
hr {
|
|
206
|
+
box-sizing: content-box;
|
|
207
|
+
/* 1 */
|
|
208
|
+
height: 0;
|
|
209
|
+
/* 1 */
|
|
210
|
+
overflow: visible;
|
|
211
|
+
/* 2 */
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* 1. Correct the inheritance and scaling of font size in all browsers.
|
|
216
|
+
* 2. Correct the odd `em` font sizing in all browsers.
|
|
217
|
+
*/
|
|
218
|
+
|
|
219
|
+
pre {
|
|
220
|
+
font-family: monospace, monospace;
|
|
221
|
+
/* 1 */
|
|
222
|
+
font-size: 1em;
|
|
223
|
+
/* 2 */
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
/* Text-level semantics
|
|
227
|
+
========================================================================== */
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* 1. Remove the bottom border in Chrome 57-
|
|
231
|
+
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
|
232
|
+
*/
|
|
233
|
+
|
|
234
|
+
abbr[title] {
|
|
235
|
+
border-bottom: none;
|
|
236
|
+
/* 1 */
|
|
237
|
+
text-decoration: underline;
|
|
238
|
+
/* 2 */
|
|
239
|
+
text-decoration: underline dotted;
|
|
240
|
+
/* 2 */
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* Add the correct font weight in Chrome, Edge, and Safari.
|
|
245
|
+
*/
|
|
246
|
+
|
|
247
|
+
b,
|
|
248
|
+
strong {
|
|
249
|
+
font-weight: bolder;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* 1. Correct the inheritance and scaling of font size in all browsers.
|
|
254
|
+
* 2. Correct the odd `em` font sizing in all browsers.
|
|
255
|
+
*/
|
|
256
|
+
|
|
257
|
+
code,
|
|
258
|
+
kbd,
|
|
259
|
+
samp {
|
|
260
|
+
font-family: monospace, monospace;
|
|
261
|
+
/* 1 */
|
|
262
|
+
font-size: 1em;
|
|
263
|
+
/* 2 */
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Add the correct font size in all browsers.
|
|
268
|
+
*/
|
|
269
|
+
|
|
270
|
+
small {
|
|
271
|
+
font-size: 80%;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Prevent `sub` and `sup` elements from affecting the line height in
|
|
276
|
+
* all browsers.
|
|
277
|
+
*/
|
|
278
|
+
|
|
279
|
+
sub,
|
|
280
|
+
sup {
|
|
281
|
+
font-size: 75%;
|
|
282
|
+
line-height: 0;
|
|
283
|
+
position: relative;
|
|
284
|
+
vertical-align: baseline;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
sub {
|
|
288
|
+
bottom: -0.25em;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
sup {
|
|
292
|
+
top: -0.5em;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
/* Embedded content
|
|
296
|
+
========================================================================== */
|
|
297
|
+
|
|
298
|
+
/* Forms
|
|
299
|
+
========================================================================== */
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* 1. Change the font styles in all browsers.
|
|
303
|
+
* 2. Remove the margin in Firefox and Safari.
|
|
304
|
+
*/
|
|
305
|
+
|
|
306
|
+
button,
|
|
307
|
+
input,
|
|
308
|
+
optgroup,
|
|
309
|
+
select,
|
|
310
|
+
textarea {
|
|
311
|
+
font-family: inherit;
|
|
312
|
+
/* 1 */
|
|
313
|
+
font-size: 100%;
|
|
314
|
+
/* 1 */
|
|
315
|
+
line-height: 1.15;
|
|
316
|
+
/* 1 */
|
|
317
|
+
margin: 0;
|
|
318
|
+
/* 2 */
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* Show the overflow in Edge.
|
|
323
|
+
*/
|
|
324
|
+
|
|
325
|
+
button,
|
|
326
|
+
input {
|
|
327
|
+
overflow: visible;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* Remove the inheritance of text transform in Edge, Firefox, and IE.
|
|
332
|
+
* 1. Remove the inheritance of text transform in Firefox.
|
|
333
|
+
*/
|
|
334
|
+
|
|
335
|
+
button,
|
|
336
|
+
select {
|
|
337
|
+
/* 1 */
|
|
338
|
+
text-transform: none;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* Correct the inability to style clickable types in iOS and Safari.
|
|
343
|
+
*/
|
|
344
|
+
|
|
345
|
+
button,
|
|
346
|
+
[type='button'],
|
|
347
|
+
[type='reset'],
|
|
348
|
+
[type='submit'] {
|
|
349
|
+
-webkit-appearance: button;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* Remove the inner border and padding in Firefox.
|
|
354
|
+
*/
|
|
355
|
+
|
|
356
|
+
button::-moz-focus-inner,
|
|
357
|
+
[type='button']::-moz-focus-inner,
|
|
358
|
+
[type='reset']::-moz-focus-inner,
|
|
359
|
+
[type='submit']::-moz-focus-inner {
|
|
360
|
+
border-style: none;
|
|
361
|
+
padding: 0;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* Restore the focus styles unset by the previous rule.
|
|
366
|
+
*/
|
|
367
|
+
|
|
368
|
+
button:-moz-focusring,
|
|
369
|
+
[type='button']:-moz-focusring,
|
|
370
|
+
[type='reset']:-moz-focusring,
|
|
371
|
+
[type='submit']:-moz-focusring {
|
|
372
|
+
outline: 1px dotted ButtonText;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* Correct the padding in Firefox.
|
|
377
|
+
*/
|
|
378
|
+
|
|
379
|
+
fieldset {
|
|
380
|
+
padding: 0.35em 0.75em 0.625em;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* 1. Correct the text wrapping in Edge and IE.
|
|
385
|
+
* 2. Correct the color inheritance from `fieldset` elements in IE.
|
|
386
|
+
* 3. Remove the padding so developers are not caught out when they zero out
|
|
387
|
+
* `fieldset` elements in all browsers.
|
|
388
|
+
*/
|
|
389
|
+
|
|
390
|
+
legend {
|
|
391
|
+
box-sizing: border-box;
|
|
392
|
+
/* 1 */
|
|
393
|
+
color: inherit;
|
|
394
|
+
/* 2 */
|
|
395
|
+
display: table;
|
|
396
|
+
/* 1 */
|
|
397
|
+
max-width: 100%;
|
|
398
|
+
/* 1 */
|
|
399
|
+
padding: 0;
|
|
400
|
+
/* 3 */
|
|
401
|
+
white-space: normal;
|
|
402
|
+
/* 1 */
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
|
407
|
+
*/
|
|
408
|
+
|
|
409
|
+
progress {
|
|
410
|
+
vertical-align: baseline;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* Correct the cursor style of increment and decrement buttons in Chrome.
|
|
415
|
+
*/
|
|
416
|
+
|
|
417
|
+
[type='number']::-webkit-inner-spin-button,
|
|
418
|
+
[type='number']::-webkit-outer-spin-button {
|
|
419
|
+
height: auto;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* 1. Correct the odd appearance in Chrome and Safari.
|
|
424
|
+
* 2. Correct the outline style in Safari.
|
|
425
|
+
*/
|
|
426
|
+
|
|
427
|
+
[type='search'] {
|
|
428
|
+
-webkit-appearance: textfield;
|
|
429
|
+
/* 1 */
|
|
430
|
+
outline-offset: -2px;
|
|
431
|
+
/* 2 */
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
/**
|
|
435
|
+
* Remove the inner padding in Chrome and Safari on macOS.
|
|
436
|
+
*/
|
|
437
|
+
|
|
438
|
+
[type='search']::-webkit-search-decoration {
|
|
439
|
+
-webkit-appearance: none;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
/**
|
|
443
|
+
* 1. Correct the inability to style clickable types in iOS and Safari.
|
|
444
|
+
* 2. Change font properties to `inherit` in Safari.
|
|
445
|
+
*/
|
|
446
|
+
|
|
447
|
+
::-webkit-file-upload-button {
|
|
448
|
+
-webkit-appearance: button;
|
|
449
|
+
/* 1 */
|
|
450
|
+
font: inherit;
|
|
451
|
+
/* 2 */
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
/* lupine.web system */
|
|
455
|
+
.lupine-root {
|
|
456
|
+
width: 100%;
|
|
457
|
+
height: 100%;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
::-webkit-scrollbar {
|
|
461
|
+
background-color: var(--scrollbar-bg);
|
|
462
|
+
width: 12px;
|
|
463
|
+
height: 12px;
|
|
464
|
+
border-radius: 6px;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
::-webkit-scrollbar-track {
|
|
468
|
+
background-color: transparent;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
::-webkit-scrollbar-thumb {
|
|
472
|
+
background-color: var(--scrollbar-thumb-bg);
|
|
473
|
+
-webkit-border-radius: 6px;
|
|
474
|
+
background-clip: padding-box;
|
|
475
|
+
border: 2px solid transparent;
|
|
476
|
+
border-width: 3px 3px 3px 2px;
|
|
477
|
+
/* min-height: 45px; */
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
::-webkit-scrollbar-thumb:hover,
|
|
481
|
+
::-webkit-scrollbar-thumb:active {
|
|
482
|
+
background-color: var(--scrollbar-active-thumb-bg);
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
::-webkit-scrollbar-corner {
|
|
486
|
+
background: transparent;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
/* you need to set overflow to auto */
|
|
490
|
+
.no-scrollbar-container {
|
|
491
|
+
scrollbar-width: none;
|
|
492
|
+
-webkit-overflow-scrolling: touch;
|
|
493
|
+
}
|
|
494
|
+
.no-scrollbar-container::-webkit-scrollbar {
|
|
495
|
+
display: none;
|
|
496
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg viewBox='0 0 24 24' width='20' height='20' fill='currentColor'>
|
|
2
|
+
<path d='M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v2h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z' />
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { baseThemes } from 'lupine.components';
|
|
2
|
+
|
|
3
|
+
export const pressThemes = {
|
|
4
|
+
light: {
|
|
5
|
+
...baseThemes.light,
|
|
6
|
+
'--press-border-color': '#e2e2e3',
|
|
7
|
+
'--press-brand-color': '#3eaf7c',
|
|
8
|
+
},
|
|
9
|
+
dark: {
|
|
10
|
+
...baseThemes.dark,
|
|
11
|
+
'--press-border-color': '#2e2e32',
|
|
12
|
+
'--press-brand-color': '#3eaf7c',
|
|
13
|
+
},
|
|
14
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<svg viewBox='0 0 24 24' width='20' height='20' fill='currentColor'>
|
|
2
|
+
<!-- Sun (Top-Left): Unchanged -->
|
|
3
|
+
<path d="M7 3a4 4 0 1 0 0 8 4 4 0 0 0 0-8zM7 0h1v2.5H7zM7 11.5h1V14H7zM0 7h2.5v1H0zM11.5 7H14v1h-2.5zM2.05 2.05l1.768 1.768.707-.707L2.757 1.343zM10.243 10.243l1.768 1.768.707-.707-1.768-1.768zM2.05 12.95L1.343 12.243l1.768-1.768.707.707zM12.95 2.05l-1.768 1.768-.707-.707 1.768-1.768z" />
|
|
4
|
+
|
|
5
|
+
<!-- Moon (Bottom-Right): Rotated ~30 degrees CCW to 'hug' the sun -->
|
|
6
|
+
<g transform="rotate(-30, 16, 16)">
|
|
7
|
+
<path d="M23 16c0 3.866-3.134 7-7 7-3.866 0-7-3.134-7-7 0-.46.04-.92.1-1.36 1.1 3.2 4.1 5.5 7.4 5.5 1.9 0 3.6-.6 5-1.7 1-.9 1.5-2.1 1.5-3.44 0-1.8-1.1-3.3-2.6-3.9 1.6 1.5 2.6 3.6 2.6 5.9z" />
|
|
8
|
+
</g>
|
|
9
|
+
</svg>
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
{
|
|
2
|
+
// "compileOnSave": false,
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
/* Visit https://aka.ms/tsconfig to read more about this file */
|
|
5
|
+
|
|
6
|
+
/* Projects */
|
|
7
|
+
// "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
|
|
8
|
+
"composite": true /* Enable constraints that allow a TypeScript project to be used with project references. */,
|
|
9
|
+
// "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
|
|
10
|
+
// "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */
|
|
11
|
+
// "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
|
|
12
|
+
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
|
|
13
|
+
|
|
14
|
+
/* Language and Environment */
|
|
15
|
+
"target": "es2017" /* es2016, es6 Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
|
|
16
|
+
"lib": [
|
|
17
|
+
"es2016",
|
|
18
|
+
"es6",
|
|
19
|
+
"dom"
|
|
20
|
+
] /* Specify a set of bundled library declaration files that describe the target runtime environment. */,
|
|
21
|
+
"jsx": "react-jsx" /* Specify what JSX code is generated. */,
|
|
22
|
+
"experimentalDecorators": true /* Enable experimental support for TC39 stage 2 draft decorators. */,
|
|
23
|
+
"emitDecoratorMetadata": true /* Emit design-type metadata for decorated declarations in source files. */,
|
|
24
|
+
// "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
|
|
25
|
+
// "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
|
|
26
|
+
"jsxImportSource": "lupine.web" /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */,
|
|
27
|
+
// "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */
|
|
28
|
+
// "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
|
|
29
|
+
// "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
|
|
30
|
+
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
|
|
31
|
+
|
|
32
|
+
/* Modules */
|
|
33
|
+
// "module": "commonjs", amd, es2015 /* Specify what module code is generated. */,
|
|
34
|
+
"module": "amd" /* Specify what module code is generated. */,
|
|
35
|
+
// "rootDir": "./" /* Specify the root folder within your source files. */,
|
|
36
|
+
"moduleResolution": "node" /* Specify how TypeScript looks up a file from a given module specifier. */,
|
|
37
|
+
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
|
|
38
|
+
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
|
|
39
|
+
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
|
|
40
|
+
// "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
|
|
41
|
+
// "types": [], /* Specify type package names to be included without being referenced in a source file. */
|
|
42
|
+
"types": ["node", "lupine.web"],
|
|
43
|
+
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
|
|
44
|
+
// "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
|
|
45
|
+
// "resolveJsonModule": true /* Enable importing .json files. */,
|
|
46
|
+
// "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
|
|
47
|
+
|
|
48
|
+
/* JavaScript Support */
|
|
49
|
+
"allowJs": true /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */,
|
|
50
|
+
// "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
|
|
51
|
+
// "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
|
|
52
|
+
|
|
53
|
+
/* Emit */
|
|
54
|
+
"declaration": true /* Generate .d.ts files from TypeScript and JavaScript files in your project. */,
|
|
55
|
+
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
|
|
56
|
+
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
|
|
57
|
+
"sourceMap": true /* Create source map files for emitted JavaScript files. */,
|
|
58
|
+
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
|
|
59
|
+
"outFile": "./dist/build.js",
|
|
60
|
+
"outDir": "./dist" /* Specify an output folder for all emitted files. */,
|
|
61
|
+
// "removeComments": true, /* Disable emitting comments. */
|
|
62
|
+
// "noEmit": true, /* Disable emitting files from a compilation. */
|
|
63
|
+
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
|
|
64
|
+
// "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */
|
|
65
|
+
"downlevelIteration": true /* Emit more compliant, but verbose and less performant JavaScript for iteration. */,
|
|
66
|
+
// "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
|
|
67
|
+
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
|
|
68
|
+
// "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
|
|
69
|
+
// "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
|
|
70
|
+
// "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
|
|
71
|
+
// "newLine": "crlf", /* Set the newline character for emitting files. */
|
|
72
|
+
// "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */
|
|
73
|
+
// "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
|
|
74
|
+
// "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
|
|
75
|
+
// "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
|
|
76
|
+
// "declarationDir": "./", /* Specify the output directory for generated declaration files. */
|
|
77
|
+
// "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
|
|
78
|
+
|
|
79
|
+
/* Interop Constraints */
|
|
80
|
+
// "isolatedModules": true /* Ensure that each file can be safely transpiled without relying on other imports. */,
|
|
81
|
+
// "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
|
|
82
|
+
"esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */,
|
|
83
|
+
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
|
|
84
|
+
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
|
|
85
|
+
|
|
86
|
+
/* Type Checking */
|
|
87
|
+
"strict": true /* Enable all strict type-checking options. */,
|
|
88
|
+
// "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
|
|
89
|
+
// "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
|
|
90
|
+
// "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
|
|
91
|
+
// "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */
|
|
92
|
+
// "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
|
|
93
|
+
// "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
|
|
94
|
+
// "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
|
|
95
|
+
// "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
|
|
96
|
+
// "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
|
|
97
|
+
// "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
|
|
98
|
+
// "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
|
|
99
|
+
// "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
|
|
100
|
+
// "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
|
|
101
|
+
// "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */
|
|
102
|
+
// "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
|
|
103
|
+
// "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
|
|
104
|
+
// "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
|
|
105
|
+
// "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
|
|
106
|
+
|
|
107
|
+
/* Completeness */
|
|
108
|
+
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
|
|
109
|
+
"skipLibCheck": true /* Skip type checking all .d.ts files. */
|
|
110
|
+
},
|
|
111
|
+
"include": ["src/**/*.ts", "src/**/*.tsx"]
|
|
112
|
+
// "exclude": ["node_modules"]
|
|
113
|
+
}
|